If you are using yoo_planet template and you are getting an error in your Firefox Error Console (CTRL + SHIFT + J) which includes "YtSettings ... color: default ..." or similar, this error is caused by wrong file encoding caused by Mac end lines (0d). To fix this you might want to edit this file:
\templates\yoo_planet\lib\php\template.php
- Code: Select all
...
function getJavaScript() {
$script = '';
$separator = false;
$params = array('tplurl' => "'$this->url'");
if ($color = $this->document->params->get('color')) {
$color = trim($color);
$params['color'] = "'$color'";
}
....
The line with trim php command
- Code: Select all
$color = trim($color);
was added to trim any end line characters which lead to javascript malfunction on this template.
Our component by default detects a continue link to the checkout page which is hidden as it is not necessary. In yagendoo due to different styling we recommend to wrap it with a new class as follows in this file:
\components\com_virtuemart\themes\yagendoo_VaMazing\templates\pages\shop.cart.tpl.php
- Code: Select all
...
<?php if($cart["idx"]): ?>
<div class="link_wrapper">
<div class="yagendoo_vm_cart_links">
...
this line was added:
- Code: Select all
<div class="link_wrapper">
and almost at the end of this file add another closing div before endif:
- Code: Select all
...
</div>
</div>
<?php endif; ?>
</div>
Now you can choose "link_wrapper" as the class to hide at the display tab. We also recommend to turn on "load checkout instantly" if you get no additional javascript errors. Since version 1.2.300 we included a new template which is fully compatible with styling of yagendoo vamazing + yoo_planet.