Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    May 2007
    Posts
    31
    Plugin Contributions
    0

    Default Editing the 'Continue Shopping' button

    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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Editing the 'Continue Shopping' button

    in your custom tpl_shopping_cart_default.php file, to take it back to the "index" page, you would change this:
    Code:
    <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
    to this:
    Code:
    <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, for "All Products", use FILENAME_PRODUCTS_ALL
    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.

  3. #3
    Join Date
    Aug 2007
    Posts
    27
    Plugin Contributions
    0

    Default Re: Editing the 'Continue Shopping' button

    Thank you for helping me with this.

    I found I had to change the red code to this:

    Code:
    '<a href="' . zen_href_link(FILENAME_DEFAULT) . '">'
    otherwise it just echoed the code, not linked it.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Editing the 'Continue Shopping' button

    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.

  5. #5
    Join Date
    Jan 2007
    Posts
    226
    Plugin Contributions
    0

    Default Re: Editing the 'Continue Shopping' button

    Sweet ..... worked a treat!

  6. #6
    Join Date
    Nov 2007
    Posts
    33
    Plugin Contributions
    0

    Default Re: Editing the 'Continue Shopping' button

    Is there any way to direct this back to the category of the last item viewed?

  7. #7
    Join Date
    Apr 2008
    Location
    Calif
    Posts
    85
    Plugin Contributions
    0

    Default continue shopping button need help

    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

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: continue shopping button need help

    Any chance this can be done?
    Not impossible but not super easy as one would have to track the referrer page/category and change the code to reflect.

    And if there were items cross listed this could cause issues
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Jun 2006
    Posts
    123
    Plugin Contributions
    0

    Default Shopping cart page: knowing which previous page the user arrived from

    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!

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Shopping cart page: knowing which previous page the user arrived from

    You can google "referrer php code" and find several examples
    Zen-Venom Get Bitten

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Changing the code of the Continue Shopping button?
    By bungenstein in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Feb 2009, 02:42 PM
  2. Changing the Continue Shopping Button use.
    By bungenstein in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 11 Feb 2009, 05:43 PM
  3. Continue Shopping Button
    By cs_jono in forum General Questions
    Replies: 3
    Last Post: 21 Feb 2008, 04:16 PM
  4. Editing the 'Continue Shopping' button
    By roscoeh in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Oct 2007, 08:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR