Hi. I've seen some post in the forum about how to get the crossed price effect. In the case of the "Quark" template, I have a question:
Exactly where you should add this code ?, in that line or code should be replaced ?, thanks, greetings ...
The files with this are:
/html/com_virtuemart/category/default.php
/html/com_virtuemart/productdetails/default.php
Here is the code You need to add over the price into /html/com_virtuemart/category/default.php
CODE: SELECT ALL
if ( $product->prices['basePrice'] != $product->prices['salesPrice']) {
echo '<span class="price-crossed" style="text-decoration: line-through;">' . $this->currency->createPriceDiv ('basePrice', '', $product->prices) . "</span>";
--------------------
For product page this code worked:
CODE: SELECT ALL
if ( $this->product->prices['basePrice'] != $this->product->prices['salesPrice']) {
echo '<span class="price-crossed" style="text-decoration: line-through;">' . $this->currency->createPriceDiv ('basePrice', '', $this->product->prices) . "</span>";
}