Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Breaks theme
(1 viewing) (1) Guest
Support forum for users using free edition of M-Turbo. These forums are for mutual help among users.

NOTE: Due to our capacity limitations, ARTIO does not monitor this forum category regularly. If you want direct support from ARTIO, please start a ticket at Support Dashboard. If you have no support ticket available, you need to purchase it.
  • Page:
  • 1

TOPIC: Breaks theme

Breaks theme 11 years, 6 months ago #33186

Hi. MTurbo breaks the theme. Instead of displaying the left call out pic in Magento, it displays a text link to shopping cart.
Is there a solution?
The topic has been locked.

Re: Breaks theme 11 years, 6 months ago #33230

  • jich
  • OFFLINE
  • Posts: 254
MTurbo replaces the all cart links to that text. You can either remove link from picture or comment this updating in JavaScript file skin/frontend/xxx/xxx/js/mturbo.js.

from

function updateCartLink() {
var re = new RegExp('checkout/cart/$');
var links = document.getElementsByTagName('a');
for (var i=0; i<links.length; i++) {
if (re.exec(links[i].href)) {
if (mturboloader.blocksContents['cartlink'])
links[i].innerHTML = mturboloader.blocksContents['cartlink'];
else {
setTimeout('updateCartLink()', 100);
return;
}
}
}
}


to

function updateCartLink() {
// var re = new RegExp('checkout/cart/$');
// var links = document.getElementsByTagName('a');
// for (var i=0; i<links.length; i++) {
// if (re.exec(links[i].href)) {
// if (mturboloader.blocksContents['cartlink'])
// links[i].innerHTML = mturboloader.blocksContents['cartlink'];
// else {
// setTimeout('updateCartLink()', 100);
// return;
// }
// }
// }
}
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
User Login Empty