When I ckick this at the moment it goes back to the last item I added to my cart. I would like it to return me to the shop index.
How can I change the hyperlink?
Ross
When I ckick this at the moment it goes back to the last item I added to my cart. I would like it to return me to the shop index.
How can I change the hyperlink?
Ross
in your custom tpl_shopping_cart_default.php file, to take it back to the "index" page, you would change this:to this:Code:<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>or, for "All Products", use FILENAME_PRODUCTS_ALLCode:<div class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT) . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
or whatever other fixed/static page you want to shove them to.
Last edited by DrByte; 6 Oct 2007 at 06:07 AM. Reason: updated code
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Thank you for helping me with this.
I found I had to change the red code to this:
otherwise it just echoed the code, not linked it.Code:'<a href="' . zen_href_link(FILENAME_DEFAULT) . '">'
Oops - yes, you're right. I fixed the above.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Sweet ..... worked a treat!
Is there any way to direct this back to the category of the last item viewed?
Hi, I want to know if it is possible to change where the "continue shopping" button takes you after a customer adds an item to cart. I would like it to return them to the catagory they were in, not the product page.
Any chance this can be done?
Thanks in advance
Cat
Not impossible but not super easy as one would have to track the referrer page/category and change the code to reflect.Any chance this can be done?
And if there were items cross listed this could cause issues
Zen-Venom Get Bitten
Hi,
I'm trying to somehow set up a custom php variable, which would be checked by tpl_shopping_cart_default.php . The idea is to be able to tell if:
1 - the user arrived at the "shopping cart" page from the "product listing" page
2 - the user arrived at the "shopping cart" page from the "product INFO" page, OR
3 - the user arrived at the "shopping cart" page from none of the above.
So.. which files would I need to edit in order to set up this variable? And how do I pass it to the Shopping Cart page?
(I tried setting something like "$iCameFromProductInfo" inside tpl_product_info_display, and checking it in tpl_shopping_cart_default, but this doesn't work)
I'm very much a novice when it comes to PHP so any help would be appreciated.
thanks!
You can google "referrer php code" and find several examples
Zen-Venom Get Bitten
Bookmarks