Author Topic: Label in product image with price discountin %  (Read 493 times)

psm

  • Jr. Member
  • **
  • Posts: 116
Label in product image with price discountin %
« on: November 06, 2018, 16:01:38 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8891
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Label in product image with price discountin %
« Reply #1 on: November 06, 2018, 16:13:03 pm »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

psm

  • Jr. Member
  • **
  • Posts: 116
Re: Label in product image with price discountin %
« Reply #2 on: November 06, 2018, 17:36:04 pm »
Please, where can I find price object?

And should I add it to this code?

Code: [Select]

<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

  • Jr. Member
  • **
  • Posts: 116
Re: Label in product image with price discountin %
« Reply #3 on: November 07, 2018, 11:03:45 am »
Can anybody help me?

Thanks,