5haun Posted November 22, 2013 Posted November 22, 2013 (edited) Hi all, How can I add an additional 'Checkout' button to the cart block?I would like to have them next to eachother except one button should say 'My cart'.Anyone know how to go about doing this? Thanks Edited November 22, 2013 by 5haun (see edit history) Share this post Link to post Share on other sites More sharing options...
Nishith Nesdiya Posted November 22, 2013 Posted November 22, 2013 (edited) you can change the blockcart.tpl file and also change the blockcart.css file in blockcart modules . Edited November 22, 2013 by Nishith (see edit history) Share this post Link to post Share on other sites More sharing options...
vekia Posted November 22, 2013 Posted November 22, 2013 hello it looks like you use some modification, or just totally non-default theme can you share some url? i will inspect code Share this post Link to post Share on other sites More sharing options...
5haun Posted November 22, 2013 Posted November 22, 2013 hello it looks like you use some modification, or just totally non-default theme can you share some url? i will inspect code Yes some modification to the default theme. www.saltshop.gourmetsalt.co.za/ Share this post Link to post Share on other sites More sharing options...
vekia Posted November 22, 2013 Posted November 22, 2013 thank you so much, it was very helpful in this case. in blockcart.tpl file instead of simple code: <p id="cart-buttons">z {if $order_process == 'order'}<a href="{$link->getPageLink("$order_process", true)|escape:'html'}" class="button_small" title="{l s='View my shopping cart' mod='blockcart'}" rel="nofollow">{l s='Cart' mod='blockcart'}</a>{/if} <a href="{$link->getPageLink("$order_process", true)|escape:'html'}" id="button_order_cart" class="exclusive{if $order_process == 'order-opc'}_large{/if}" title="{l s='Checkout' mod='blockcart'}" rel="nofollow"><span></span>{l s='Checkout' mod='blockcart'}</a> </p> use this one: <p id="cart-buttons"> <a style="margin-left:10px; float:left; position:inline-block; "href="{$link->getPageLink($order_process, true)|escape:'html'}" id="button_order_cart" class="exclusive" title="Checkout" rel="nofollow"><span></span>{l s='Cart'}</a> {if $order_process == 'order'}<a href="{$link->getPageLink("$order_process", true)|escape:'html'}" class="button_small" title="{l s='View my shopping cart' mod='blockcart'}" rel="nofollow">{l s='Cart' mod='blockcart'}</a>{/if} <a href="{$link->getPageLink("$order_process", true)|escape:'html'}" id="button_order_cart" class="exclusive{if $order_process == 'order-opc'}_large{/if}" title="{l s='Checkout' mod='blockcart'}" rel="nofollow"><span></span>{l s='Checkout' mod='blockcart'}</a> </p> effect: Share this post Link to post Share on other sites More sharing options...
5haun Posted November 22, 2013 Posted November 22, 2013 Awesome! Thank you vekia! Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now