Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2010
    Posts
    125
    Plugin Contributions
    0

    Default Shopping Cart: Adding another button? [IMAGE]

    Okay, so to view your shopping cart now on my website you must click the title 'Shopping Cart'. I find this very poor as many user wouldnt know it was even a link.

    My aim is to add another button next to the one that says 'Checkout'. This is how it looks now, next to how i would like it to look:



    So,
    How can i achieve this?

    Thanks,
    Ambitions.
    http://www.clickpurchase.co.uk

  2. #2
    Join Date
    Apr 2010
    Posts
    125
    Plugin Contributions
    0

    Default Re: Shopping Cart: Adding another button? [IMAGE]

    No one has any idea how to do this?

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Shopping Cart: Adding another button? [IMAGE]

    That Checkout button is placed there either by a mod you've added or your template designer. Either way, it would be in includes/templates/YOUR_TEMPLATE/sideboxes/tpl_shopping_cart.php. You should be able to copy and edit that statement to add the other button linked to the shopping cart.

    I have to do exactly the same thing for a site I'm working on. I'll let you know when I get it done if you haven't figured it out by then.

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Shopping Cart: Adding another button? [IMAGE]

    I installed this mod http://www.zen-cart.com/index.php?ma...oducts_id=1175, which gave me the Checkout button, then I edited the file in that mod (includes/templates/MY_TEMPLATE/sideboxes/tpl_shopping_cart.php) by finding this line

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

    copying it and pasting it right below. Then I edited the copy to say this:

    $content .= '<div class="cartBoxCheckout"><a href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_VIEW_SMALL, BUTTON_VIEW_SMALL_ALT) . '</a></div>';

    so the whole thing looks like

    $content .= '<div class="cartBoxCheckout"><a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a></div>';
    $content .= '<div class="cartBoxCheckout"><a href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_VIEW_SMALL, BUTTON_VIEW_SMALL_ALT) . '</a></div>';

    You'll have to style the buttons. I left the class name the same for both, and did this in the stylesheet to get them side-by-side and spaced right. You'll have to fiddle with it to suit your site:

    .cartBoxCheckout {float:left; margin: .1em .2em 0 .2em;}

  5. #5
    Join Date
    Apr 2010
    Posts
    125
    Plugin Contributions
    0

    Default Re: Shopping Cart: Adding another button? [IMAGE]

    Your a genius thank you :)

 

 

Similar Threads

  1. v151 Shopping Cart Sidebox with Checkout Button (and image?)
    By MeltDown in forum Addon Sideboxes
    Replies: 2
    Last Post: 5 Apr 2013, 04:23 PM
  2. adding shopping cart image to shopping cart sidebox?
    By RobertG in forum Addon Sideboxes
    Replies: 13
    Last Post: 26 Oct 2011, 06:24 AM
  3. Adding product to shopping cart from another website
    By badarac in forum General Questions
    Replies: 2
    Last Post: 19 Aug 2010, 04:11 PM
  4. Shopping Cart with CheckOut Button--change image
    By carol2848 in forum Addon Sideboxes
    Replies: 7
    Last Post: 24 Jun 2010, 01:18 PM
  5. shopping cart with checkout button and product image
    By metalarea in forum Addon Sideboxes
    Replies: 5
    Last Post: 22 Dec 2008, 07:29 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