Jump to content

How to prevent customer to change price while it is variable ?


Recommended Posts

Hi
 

I am using the folowing sequence to make a sale:

Search table_prices.

 

Show price in order_page.php

Customer inserts name, address, etc,   press a button and go to order_done.php

Search database_prices (by ID)

Show price in order_done.php and insert order data in table_order.

I was considering passing $price as parameter using GET or POST,
but I imagine that somehow someone could modify $price still in order_page.php

 

Is there a solution for this case or do I have to keep this redundancy ?

 

The problem is that price discount has some calculations and I have to remember modify it always in both pages.
 

 

Moises
 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.