Quick cart float change item link.

Hi to all, I’d like make a modification on float Quick Cart in right position.
When open it I see: the cart icon, number item in cart and text shopping cart.

If I click on icon or text or free space, it is open in overlay the cart and its content. But if I click on number Item, it is open the page of shopping cart.

I’d like that when I click on number item, I see the cart in overlay and not shopping cart page.

Please can you say me how make this change and the file that I must modify?

Thanks

Joso

2 answers

Profile photo of Saguaros 0.00 $tone July 14, 2014
Public

Hi Joso,

The idea of the number items here is that customer can easily navigate to the shopping cart. If you want to remove this feature, you can simply remove the link in the "# items" so wherever you click on, it will show the popup only and will not link to cart page.

Here are steps for your consideration:

-- Open the file: \app\design\frontend\default\jm_monsieurtemplate\ page\html\header.phtml
-- At approx line 102:

PHP Code:

<span><a class="gotocart" href="<?php echo Mage::getUrl("checkout/cart"); ?>">
    <?php if(Mage::getSingleton('checkout/session')->getQuote()->getSubtotal() > 0) { 
            echo 
Mage::getSingleton('checkout/session')->getQuote()->getItemsSummaryQty().' items';
        } else {
            echo 
$this->__('0 items');
        } 
?> 
    </a><?php echo $this->__("Shopping Cart"?>
</span>


change it to:

PHP Code:

<span>
    <?php if(Mage::getSingleton('checkout/session')->getQuote()->getSubtotal() > 0) { 
            echo 
Mage::getSingleton('checkout/session')->getQuote()->getItemsSummaryQty().' items';
        } else {
            echo 
$this->__('0 items');
        } 
?> 
    <?php echo $this->__("Shopping Cart"?>
</span>


Remember to flush magento cache once done.

Hope this helps.

#1
Profile photo of Giulio Orsi 0.00 $tone July 15, 2014
Public

Hi Joso,

The idea of the number items here is that customer can easily navigate to the shopping cart. If you want to remove this feature, you can simply remove the link in the "# items" so wherever you click on, it will show the popup only and will not link to cart page.

Hi Saguaros, thanks very much to help me. Your solution work well.

IMHO: I have navigated much time the monsieur theme, and I think if a new user goes on the site, and clicking on "number items" open the shopping cart every time, taking off time for browsing other pages.

I see that in overlay popup there are three button and the user can update the cart or can click to open shopping cart with that. And more, every time you add new product in the cart, magento open the shopping cart.

Well, for that, I think that for best usability of the site, the number items in the float quick cart must not open the shopping cart.

P.S.: sorry my bad english.

Joso

#2

This question is now closed

Written By

Comments