Results 1 to 10 of 10
  1. #1
    Join Date
    May 2005
    Posts
    51
    Plugin Contributions
    0

    Default Checkout Button in Shopping cart sidebox?

    Hi

    I would like to add checkout button in my shopping cart sidebox, so if they continue shopping they can go on checkout page any time, without first to click on shopping cart link.

    This mean one click less for potential customers. Can this be done?

    Regards, Zoreli

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,168
    Plugin Contributions
    11

    Default Re: Checkout Button in Shopping cart sidebox?

    Have you removed the upper navigation bar that automatically adds a "Checkout" link if there is anything in the cart?

  3. #3
    Join Date
    May 2005
    Posts
    51
    Plugin Contributions
    0

    Default Re: Checkout Button in Shopping cart sidebox?

    Yep, I delete it.

    However I would like to have the checkout button below of the items in the sidebox if possible.

    Regards, Zoreli

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,168
    Plugin Contributions
    11

    Default Re: Checkout Button in Shopping cart sidebox?

    Then I think you would find the code you removed and add it where you want it to be.

    I would need to see your site to see for sure what you are talking about.

  5. #5
    Join Date
    May 2005
    Posts
    51
    Plugin Contributions
    0

    Idea or Suggestion Re: Checkout Button in Shopping cart sidebox?

    I make it. For those who may be interested, here is the solution:

    Open the file:
    includes/templates/my_custom_template/templates/tpl_shopping cart_default.php

    where my_custom_template is the name of your custom template (if you use any)

    Copy this line: (in my file is line 133)



    <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>

    Then open the file:

    includes/templates/my_custom_template/sideboxes//tpl_shopping_cart.php

    modify the following part: (in my file this code start at line 45)

    if ($_SESSION['cart']->count_contents() > 0) {
    $content .= '<hr />';
    $content .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
    $content .= '<br class="clearBoth" />';
    }

    like this:

    if ($_SESSION['cart']->count_contents() > 0) {
    $content .= '<hr />';
    $content .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
    $content .= '<div class="buttonRow forward"><a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a></div>';
    $content .= '<br class="clearBoth" />';
    }


    Clarification:

    I modify the line:

    <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>

    Like this:

    $content .= '<div class="buttonRow forward"><a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a></div>';

    Note: Checkout button is not shown when cart is empty. I set up my shopping cart to be shown always, even when is empty. So now the checkout button is shown only when there is item in the cart, and customer can go at checkout page at any time with one click less. It works like a charm.


    Thanks for the help dbltoe

    Regards, Zoreli

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,168
    Plugin Contributions
    11

    Default Re: Checkout Button in Shopping cart sidebox?

    For others out there.....

    Please remember that ZenCart does have this in the upper navigation and it is not there till the customer has something in their cart.

    Most developers of e-commerce and consultants will tell you that navigation placement should be standardized just as ZenCart has done.

    Before everybody jumps, I agree that there are times when we must go against the norm. Base your decision on your customers.

    "If it ain't broke, don't fix it!"

  7. #7
    Join Date
    May 2005
    Posts
    51
    Plugin Contributions
    0

    Default Re: Checkout Button in Shopping cart sidebox?

    I absolulty agree. However, you can't argue with the customer...to do these things like this, is a part of the job.

    I post the solution just in case that someone else must do the same thing, so he can do it faster.

    Regards, Zoreli

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Checkout Button in Shopping cart sidebox?

    Thanks zoreli

    I am upgrading a site next week that already has this feature so although I knew in principle how I was going to do it, you've helpfully filled in the details, hopefully saving me a litlle time and my client a little money.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Oct 2006
    Location
    Toronto, Canada
    Posts
    3
    Plugin Contributions
    0

    Default Re: Checkout Button in Shopping cart sidebox?

    Thanks for this zoreli. It really helped me out a lot today.

  10. #10
    Join Date
    Jul 2010
    Posts
    11
    Plugin Contributions
    0

    Default Re: Checkout Button in Shopping cart sidebox?

    I tried this and followed Zorelis instructions exactly, but when I added a product to the cart, nothing happened.

    I really believe there should be links or images to the shopping cart and check out in other places than in the top and the shopping cart box headline.

    It took me a long time before I even discovered the links in the top. It was not a place I expected to find anything useful so I didnīt look there. I donīt want it to be like that for my customers.

    The link to the shopping cart in the headline in the shopping cart box is also confusing. Usually I click on links or images, not headlines.

    It would be better to have links or images to the shopping cart and checkout, at the bottom of the product listing. Thatīs where I expect to find them.

    If anyone has a solution to this, please speak out...

 

 

Similar Threads

  1. Replies: 12
    Last Post: 25 Jun 2010, 06:02 PM
  2. Checkout button below shopping cart sidebox?
    By navido in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Mar 2009, 05:11 PM
  3. 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
  4. shopping cart sidebox with checkout button only when cart is full
    By sunnydaydreame in forum Basic Configuration
    Replies: 0
    Last Post: 5 Feb 2008, 12:52 AM
  5. Shopping Cart with checkout button sidebox
    By metalarea in forum Basic Configuration
    Replies: 2
    Last Post: 11 Nov 2007, 10:39 AM

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