News:

Support the VirtueMart project and become a member

Main Menu

Discount as image

Started by jesussuarez, February 06, 2015, 13:06:26 PM

Previous topic - Next topic

jesussuarez

Hi everyone.

I need any extension or hack for Virtuemart to allow me to do the next:

In my online store, I have a lot of variation discounts, and product image show that discount. Currently, what I do is modify the product picture and add the layer image of discount manually with Photoshop. You can see what I mean at: http://thebestpadel.com/images/stories/virtuemart/product/avant-carbon-fucsia.jpg
The black round with 35% is what I add manually each time there is a change in the discount ...

So I need some system to select the discount amount option in VM management, and automatically the 2nd picture appear above the product image

Do you know how can I get it, or any extension or hack ?

Thank's in advance
Best regards

GJC Web Design

something like get the discount from the product object .
if it exists then echo out the top layer image div with the image name having the value

e.g.
<?php  if($discount) { ?>

<div class="toplayer">
<img src="images/stories/virtuemart/product/lala_<?php echo $discount; ?>.jpg" />
</div>
<?php  }  ?>
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