Jump to content

message AFTER the UPDATE


phppup

Recommended Posts

Along the same lines as a "Thank you for you submission" message, is there a simple way to echo the CHANGES made to a record AFTER it has been UPDATED.

 

For example: You have added 2 skirts and 1 shirt to your order

OR      You're order has been reduced by 2 pair of socks.

 

This would compare what was stored with the change.

 

Alternately, is there a way to show a message that ONLY addresses the values that have CHANGED as a result of the UPDATE.

Example:  You have altered the quantity of the following items: dresses, hats, gloves.

 

Link to comment
Share on other sites

I am no expert but I don't think there is simple way to accomplish something like that with php alone. I would say that the easiest method would be to use AJAX to send the request, compare the results to the current information in the cart, then update it. Something along those lines. If you post an example code with some kind of pre-defined logic, I can probably help you further.

Link to comment
Share on other sites

Never used AJAX (except in the sink!)

 

It's not THAT important, was just thinking out loud.

 

There's probably something burried in my Javascripting that'd do it too, but I'm trying to learn/experiment with PHP and database usage.

Link to comment
Share on other sites

Never used AJAX (except in the sink!)

 

lol, haven't heard that one before...

 

Nways, I understand. Look into the PHP Session function, you can most likely accomplish what you want by using sessions and good php logic. If you are not familiar with sessions, here's a good intro: http://www.youtube.com/watch?v=hPX_g_hcuH8&feature=relmfu

Link to comment
Share on other sites

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.