Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    339
    Plugin Contributions
    0

    cart error removing Go to Checkout Button on Shopping Cart page

    On my shopping Cart contents page I presently have the following Buttons: back to shopping, estimate shipping, go to checkout and check out with Paypal.

    I would like to remove the go to checkout button and ideally put it under the shopping Cart summary on my right side sidebox. If this is not possible then I'd like to just remove it.

    URL is: http://30408.vws.magma.ca/TTEZENCART

    I'm in my final stages of preparation of this site, i'm working on cosmetic touchups of which this is one.
    Thanks in advance for your help,
    Bob

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: removing Go to Checkout Button on Shopping Cart page

    Why you would not want "go to checkout" on the shopping cart page is an utter mystery to me - especially since the whole purpose of an eCommerce site is to coerce customers into doing just that!

    I have a solution for the sidebox and though it breaks a few rules (ie: it hard-codes into the PHP) it does the job.

    FTP a COPY of the following file to your hard drive:

    includes/templates/template_default/sideboxes/tpl_shopping_cart.php

    Open it for editing using a PLAIN TEXT EDITOR, such as EMERALD EDITOR

    Right at the bottom, find the following (last two lines)

    PHP Code:
      $content .= '</div>';
    ?> 
    Make the following edit

    PHP Code:
      $content .= '</div>';
      
    $content .= '<div id="checkoutButton"><center><a href="index.php?main_page=shopping_cart"><img src="includes/templates/template_default/buttons/english/button_edit_cart.gif" alt="Edit Cart" title=" Edit Cart " width="61" height="20" /></a>&nbsp;<a href="index.php?main_page=checkout_shipping"><img src="includes/templates/template_default/buttons/english/button_checkout_sm.gif" alt="Checkout" title=" Checkout " width="61" height="20" /></a></div>';
    ?> 
    As you can see, this also requires the creation of two small additional buttons that need to go into:

    includes/templates/template_default/buttons/english

    called:-
    button_edit_cart.gif
    button_checkout_sm.gif

    In my example, the dimensions of these buttons is 61px X 20px . You decide how wide they need to be - a decision influenced by your side-column width.

    NOTE: If you don't include the button images, you will just get the ALT text as the link

    When you have made the edit, SAVE the file on your hard drive, then FTP it to your CUSTOM TEMPLATE folder for sideboxes:

    includes/templates/YOUR_CUSTOM_TEMPLATE/sideboxes/

    If there is no folder for sideboxes in your custom template, create one...

    As I say, this method is bad protocol as it hard codes the php. Somewhere I do have the correct PHP version, but I haven't time to look for it right now.

    You will also see I have given it a style ID

    div id="checkoutButton"

    .. allowing you to add some styles if needed.
    20 years a Zencart User

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: removing Go to Checkout Button on Shopping Cart page

    You can "suspend" the appearance of the checkout button on the main page shopping cart by editing:

    includes/templates/template_default/templates/tpl_shopping_cart.php

    (Ftp a COPY to your hard drive, as you must also create an OVER-RIDE file in your own template later)

    Find this line:

    HTML Code:
    <div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>
    Using HTML COMMENT TAGS, disable the line as follows:

    HTML Code:
    <!-- <div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>-->
    DO NOT delete the line... comment it out as I have shown.

    SAVE the file on your hard drive.

    FTP it to:

    includes/templates/YOUR_CUSTOM_TEMLATE/templates/

    NOTE: This file - like the one in the sidebox - has the same name... tpl_shopping_cart.php

    They are NOT THE SAME FILE (content wise) and must not be confused with each other...
    20 years a Zencart User

  4. #4
    Join Date
    Nov 2009
    Posts
    339
    Plugin Contributions
    0

    cart error Re: removing Go to Checkout Button on Shopping Cart page

    Thanks for all the info, I'll work on it as soon as I have some additional time later this P.M.
    The reason for removing the go to checkout is the Paypal button on that page it saves buyers from having to go to the register page since Paypal doesn't need that information in order to accept payment. Anyways that's what I was told by the site owner.
    Again thanks for your help< i'll keep you apprised of my progress.

  5. #5
    Join Date
    Nov 2009
    Posts
    339
    Plugin Contributions
    0

    Default Re: removing Go to Checkout Button on Shopping Cart page

    Hi again schoolboy,
    Followed your instructions to a Tee, but nothing is happening or showing up, no image no text.
    It's just as if nothing was altered??

    Got any idea what it may be. The code change is obviously not affecting the site.
    Thanks,
    Bob

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: removing Go to Checkout Button on Shopping Cart page

    Doesn't look like you're using the core shopping cart sidebox... (or if you are, it's been modified quite a bit)

    You'll have to determine where this sidebox is and what it's called, then try adding my line of code to its TPL file...
    20 years a Zencart User

 

 

Similar Threads

  1. v154 blank page when clicking checkout or paypal button in shopping cart
    By DarkAngel in forum Upgrading to 1.5.x
    Replies: 10
    Last Post: 16 Jun 2015, 11:35 PM
  2. Change position of Confirm to Checkout button on Shopping Cart page
    By trinoz in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Sep 2011, 12:09 PM
  3. Remove PayPal checkout Button from Shopping Cart page
    By jld in forum PayPal Express Checkout support
    Replies: 14
    Last Post: 26 Feb 2011, 09:57 PM
  4. Replies: 12
    Last Post: 25 Jun 2010, 06:02 PM
  5. Shopping cart sidebox with checkout button BUT doesn't go to checkout
    By MeltDown in forum All Other Contributions/Addons
    Replies: 15
    Last Post: 27 Aug 2008, 04:56 PM

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