News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Label in product image with price discountin %

Started by psm, November 06, 2018, 16:01:38 PM

Previous topic - Next topic

psm

Dear all,
please is it possible to do label with price discount in % and stick it to image.

I would like to do it automatically for all products which have discount (with usage of 0% VAT).

I am suprised that there is not any extension for this with using of default template.

Thank you very much

GJC Web Design

in the image template use the product price object to test for a discount
if there is a discount just show an absolute positioned div with the % from above in it
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

psm

Please, where can I find price object?

And should I add it to this code?


<div class="main-image">
<div class="product-details-image-handler">
<?php
echo $image->displayMediaFull("",true,"rel='vm-additional-images'");
?>

</div>
<div class="clear"></div>
</div>


Thank you

psm