Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding "Success" message when product added to cart


1Putts

Recommended Posts

If "Display Cart After Adding Product" is set to "false" in the Admin, when a customer adds a product, it just sort of silently adds it. I'm trying to use the $messageStack to show a message that the product was added successfully but so far I haven't had any luck.

 

The parts where product is added to the cart is located in includes/application_top.php in both case 'add_product' and 'case buy_now'. The $messageStack is initialized in application_top.php but it seems to crap out when I try to slip a message in there.

 

Any ideas would be appreciated.

Link to comment
Share on other sites

If "Display Cart After Adding Product" is set to "false" in the Admin, when a customer adds a product, it just sort of silently adds it. I'm trying to use the $messageStack to show a message that the product was added successfully but so far I haven't had any luck.

 

The parts where product is added to the cart is located in includes/application_top.php in both case 'add_product' and 'case buy_now'. The $messageStack is initialized in application_top.php but it seems to crap out when I try to slip a message in there.

 

Any ideas would be appreciated.

Here is an idea. Although you may think that displaying a msg every time customer adds something to their cart is the next best thing, I would urge you to think twice. Just put your self in the customers’ shoes. Would you really like to be annoyed and slowed down with unnecessary messages? Why don't you improve the shopping cart box instead? Let it stand out and make it show the number of items in cart and the total price.

 

Personally I haven't seen a professional e-commerce site that would do what you're asking. It is the same as if you were shopping in real life and every time you put something into your shopping basket, some shop employee would approach you and shake your hand.

Link to comment
Share on other sites

Here is an idea. Although you may think that displaying a msg every time customer adds something to their cart is the next best thing, I would urge you to think twice. Just put your self in the customers’ shoes. Would you really like to be annoyed and slowed down with unnecessary messages? Why don't you improve the shopping cart box instead? Let it stand out and make it show the number of items in cart and the total price.

 

Personally I haven't seen a professional e-commerce site that would do what you're asking. It is the same as if you were shopping in real life and every time you put something into your shopping basket, some shop employee would approach you and shake your hand.

 

Thanks for your input. There are many good reasons why I want to do this.

 

Ideas still welcomed...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...