Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2008
    Posts
    15
    Plugin Contributions
    0

    Default Back button in checkout process

    Hi,

    I did a search in the forums & FAQs but couldnt come up with an answer for this. Is there a simple way to add a 'back' button in the checkout process? So someone can go back to the previous step if they want?

    Using ZenCart 1.3.8a, on linux server, PHP 5.2.6, MySQL.

    Thanks for your help,

    Raina

  2. #2
    Join Date
    Oct 2009
    Location
    Netherlands - NB
    Posts
    146
    Plugin Contributions
    0

    Default Re: Back button in checkout process

    Same request here, any help is apprciated.

  3. #3
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: Back button in checkout process

    i haven't tried this myself (in the shopping cart), however i don't think there's any reason why this shouldn't work.

    you could try placing the following php in the location you wish the button to appear...

    <?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?>

    andy

    ps: don't put the word andy there, it just won't work : )

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Back button in checkout process

    Silly question - Why do you think you should have a back button during checkout?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Nov 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Back button in checkout process

    I don't think I should have one, in fact I've tried to convince the client that we don't need one, but they insist on it .. unfortunately.

    Thanks for the help Andy, I will try that today,

    Cheers
    Raina

  6. #6
    Join Date
    Nov 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: Back button in checkout process

    Andy that sort of works ... but takes me back to the index page instead of the previous page ... any idea how to fix?

    Thanks again,
    Raina

  7. #7
    Join Date
    Jun 2009
    Location
    Brisbane, QLD AUS
    Posts
    210
    Plugin Contributions
    0

    Default Re: Back button in checkout process

    nice point kim. why drive them away!

    i haven't looked at the code that drives this function, but the back button does present odd results when used in places it wasn't designed for.

    my only other suggestion (sorry, bit short on time!) is to use the good old js method:

    <a href="javascript:history.go(number)">YOUR_BUTTON_OR_TEXT_HERE</a>

    where number is the number of pages you wish to traverse...

    e.g. <a href="javascript:history.go(-1)">YOUR_BUTTON_OR_TEXT_HERE</a> //Goes back 1 page
    e.g. <a href="javascript:history.go(2)">YOUR_BUTTON_OR_TEXT_HERE</a> //Goes forward 2 pages

    there are many more uses, check out this link to see what else is possible: http://www.bloggingdeveloper.com/pos...roperties.aspx

    cheers
    andy

  8. #8
    Join Date
    Oct 2009
    Location
    Netherlands - NB
    Posts
    146
    Plugin Contributions
    0

    Default Re: Back button in checkout process

    cool, thanks!

 

 

Similar Threads

  1. No 'Go To Checkout" or 'Back To Shopping' Button
    By missTish! in forum Customization from the Admin
    Replies: 4
    Last Post: 3 May 2011, 06:36 AM
  2. Shopping Cart or Checkout 'Back' Button
    By johnfripp in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Oct 2010, 09:50 PM
  3. Adding a cancel button to checkout process?
    By khanse44 in forum General Questions
    Replies: 2
    Last Post: 9 Mar 2010, 04:02 AM
  4. Add a back button in checkout process
    By soki in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Mar 2009, 07:10 AM

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