![]() |
Redirect customer to cart question
When I disable "Redirect customer to cart" in general settings and a customer clicks add to cart they are no longer sent to the cart each ime they add a product which is fine and what I want but the problem i am having is when they add an item to their cart they do not get a message or acknowledgment that their item has been added to the cart except for the mini cart cart item number which could be off screen. Is this normal for 4.0.16 or should they be seeing something near the add to cart button letting them know that the item was added?
|
That is normal, although not ideal :)
|
Quote:
Thanks for the validation. Looks like I will be hopping over to the 4.1 beta thread to make a request :) |
We do have a solution built for this. It tells them a product has been added, upsells them products, and provides a link to return to the category or checkout.
http://www.websitecm.com/customer/product.php?productid=84 |
I thought I'd seen a mod for this somewhere - if you are not redirecting to the cart, without this, customers are going to get pretty confused, not knowing if they have chosen a product or not.
|
Quote:
|
Checked it out and it doesn't do what I am looking for.
I want the customer to stay on the product page and just a message to appear near the add to cart button that says your product has been added. I don't want the customer sent to an added page or to the cart page and I also don't want a javascript message with an ok button as that is too invasive. Can this be done with an if statement? What could I check to trigger the showing of the text? |
It would take a bit of modification. You'd have to edit your cart.php to attach a variable to the redirect, and read the variable in your skin1/customer/main/product.tpl to display the message. We could create this mod for you relatively inexpensively if you are unsure how to do it - just PM me.
|
Quote:
Thanks for the offer :) I am going to poke at it for a bit on my own. If I get stuck I might contact you about making a mod for me. |
No prob of course :D
If you append &addedtocart=1 to the redirect in cart.php you can use this code in your product.tpl {if $smarty.get.addedtocart eq "1"} Show Message {/if} |
Quote:
Thanks! :D |
It works! :)
Here is the code: in cart.php Code:
Change this in the redirect section: In customer/product.tpl I added this code from Jon after the add to cart button code: Code:
{if $smarty.get.addedtocart eq "1"} I just use text but it could have been a language var like Code:
{if $smarty.get.addedtocart eq "1"} |
All times are GMT -8. The time now is 02:33 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.