Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Shopping Cart: Adding another button? [IMAGE]

Shopping Cart: Adding another button? [IMAGE]

Locked

Views: 648

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
3 Jun 2010, 11:25 PM
#1
ambitions avatar

ambitions

Zen Follower

Join Date:
Apr 2010
Posts:
125
Plugin Contributions:
0

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

6 Jun 2010, 4:40 PM
#2
ambitions avatar

ambitions

Zen Follower

Join Date:
Apr 2010
Posts:
125
Plugin Contributions:
0

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

No one has any idea how to do this?

6 Jun 2010, 5:25 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

6 Jun 2010, 6:42 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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

I installed this mod http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_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;}

10 Jun 2010, 9:41 PM
#5
ambitions avatar

ambitions

Zen Follower

Join Date:
Apr 2010
Posts:
125
Plugin Contributions:
0

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

Your a genius thank you :)