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
https://forums.phpfreaks.com/topic/258072-message-after-the-update/
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.

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.