triplei Posted August 12, 2013 Share Posted August 12, 2013 I hover over the cart button on the upper right-hand side of my template. It drops down the menu...etc. good! But how would I add a LINK to the cart-block BUTTON to go to the cart... Thank you. Link to comment Share on other sites More sharing options...
triplei Posted August 12, 2013 Author Share Posted August 12, 2013 (edited) I figured it out! old code looks like this: <!-- MODULE Block cart --> <div id="cart_block"> <!-- Cart heading --><div class="cart-heading"><span class="ajax_cart_quantity">{$cart_qties}</span></div> <div class="block_content"> <div class="content-arrow"></div> <!-- block list of products --> New code looks like this: <!-- MODULE Block cart --> <a href="index.php?controller=order"> <div id="cart_block"> <!-- Cart heading --><div class="cart-heading"><span class="ajax_cart_quantity">{$cart_qties}</span></div> <div class="block_content"> <div class="content-arrow"></div></a> <!-- block list of products --> Edited August 12, 2013 by triplei (see edit history) Link to comment Share on other sites More sharing options...
triplei Posted August 12, 2013 Author Share Posted August 12, 2013 I know its a rookie thing, but I am really proud of myself for figuring this out. I just wanted to share..I am surprised more people don't want their cart icon to actually lead to the cart. Especially when you think about your website being used on a tablet or smartphone. Link to comment Share on other sites More sharing options...
vekia Posted August 12, 2013 Share Posted August 12, 2013 thanks for your share you can also try with this: {$link->getPageLink("$order_process.php", true)} it's similar solution and it generate always proper url (with friedndly urls / without friendly urls etc.) Link to comment Share on other sites More sharing options...
Recommended Posts