Hi,
1- To have the same "Slider" that we have on the homepage of SportMart Live Demo; use this module: "VirtueMart Products" (that is the official Virtuemart Product module that comes with Virtuemart AIO component)
don't make the VM - Frontpage as your Joomla homepage; instead use a blank article for the Joomla Homepage, then publish "VM Products" module on homepage (you can publish multiple VM Product modules, just like we did. I.e: "Best Seller" & "Latest Products" modules)
2- Apparently "hide/show SALE badge" is broken on VM - Frontpage (ROOT/index.php?option=com_virtuemart), to fix this problem; open this PHP file:
/templates/flexible_sportmart/html/com_virtuemart/virtuemart/default_products.php
find these lines:
$DiscountTEXT = $this->currency->createPriceDiv('discountAmount',0,$product->prices);
if (preg_match("/none/i", $DiscountTEXT)) {
$DiscountORnot = "";
} else {
if (!(empty($DiscountTEXT))) {
$DiscountORnot = "FlexibleDiscount";
}
}
and replace them with these:
$DiscountORnot = "";
if ($product->prices['discountAmount']) {
$DiscountORnot = "FlexibleDiscount";
}
and everything will be good to go. SALE badge will be displayed correctly on VM - Frontpage
3- To change the Х% OFF to - X%, open this PHP file:
/templates/flexible_sportmart/html/com_virtuemart/sublayouts/prices.php
find this line:
echo '<span class="FlexiblePercentage">'.$discountPercentage.'% OFF </span>';
replace it with this:
echo '<span class="FlexiblePercentage"> - '.$discountPercentage.'% </span>';
and you will be good to go.
If you like SportMArt and satisfied with the suppose you receive; can you please “Write a Review” on the URL below?
www.flexiblewebdesign.com/Joomla-Virtuemart-Templates/SportMart (this is our website, you don’t need to register to write review, you can use your existing account with us)
Rate the SportMart and write couple of sentences to share your experience with the support-team. Just 2-3 sentences would be enough ;) It might sound simple to you, but it is extremely important. Potential customers care about product reviews very much.
Thanks in advance!
Regards,
Support