Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Display a module based on product price

Display a module based on product price

Hello, it's possible to display a module only when the price of a Virtuemart product is equal to or greater than a certain value like this?

$vm = JomGenius("virtuemart");
if ( $vm->check( "product_price >= 50" ) ) return XXX;

Thanks

neviomaria
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Display a module based on product price

Hi,

sadly, not in the current implementation. I think the reason I didn't put it in originally is because it's a calculated thing (rather than being pulled from the same database table as the other attributes of a product) and there are actually lots of different prices it could be: including various discounts, taxes etc.

If it was possible for me to add this, which price would you want to base it on?

Thanks,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10727
Newest User:
solza2
Members Online:
0
Guests Online:
178

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked