How to translate shopping cart (0 item) etc?

How to translate shopping cart (0 item)  etc? I managed to translate the shopping cart part with the translate inline but not the item part.

9 answers

Profile photo of Ziven Staff 100720.00 $tone January 7, 2015
Public

Hi Kalle,
I am not entirely sure about the issue you mentioned. I would be best if you could send me your site url and illustration screenshort. I will help to debug.
Please attach this link to PM.
Best Regards,
Ziven.

#1
Profile photo of Ziven Staff 100720.00 $tone January 14, 2015
Public

Hi Kalle,
Please try change to the code

Mage::getSingleton('checkout/session')->getQuote()->getItemsSummaryQty().' '.$this->__('items');
} else {
echo '('.Mage::getSingleton('checkout/session')->getQuote()->getItemsSummaryQty().' '.$this->__('item');
}

and add the translate to the file csv in \app\design\frontend\default\jm_book\locate
 
Best Regard,
Ziven.
 
 

#3
Profile photo of Kalle Hakkola 50.00 $tone January 14, 2015
Public

I accidentally didn’t post the code properly. They are in link elements. I tried what you suggested and it broke the toolbar. Here is the code:

 echo '(<a class="gotocart" href="'.Mage::getUrl("checkout/cart").'">'.Mage::getSingleton('checkout/session')->getQuote()->getItemsSummaryQty().' Items</a>)';
} else {
echo '(<a class="gotocart" href="'.Mage::getUrl("checkout/cart").'">'.Mage::getSingleton('checkout/session')->getQuote()->getItemsSummaryQty().' Item</a>)';
} ?>
#4
Profile photo of Ziven Staff 100720.00 $tone January 15, 2015
Public

Hi Kalle,
The site http://sarjakuvakeskus.fi/kauppa/ right?
I can’t go to the FTP for try fix it.
Please resend to me.
Best Regards,
Ziven.

#5

Please login or Register to Submit Answer

Written By

Comments