Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Virtuemart Specific Item in Cart at...
Virtuemart Specific Item in Cart at checkout.index
Virtuemart Specific Item in Cart at checkout.index
This module is probably one of the most used modules on our site. I usually have found the magic recipe for whatever we needed in the past but this time, I am stumped. We need a recipe that will show a certain module (let's say module ID:769) on the checkout page of our site only when a specific product (id#4680)is in the cart. This should go specifically to checkout.index#2 but if it is too much of an issue any checkout page would work. This is what I have tried to set it up with:
$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "cart_product_ids = 4680" )
and $vm->check("pagetype = checkout.index" ) ) return 769;
Thanks in advance for any guidance.
A-
Re: Virtuemart Specific Item in Cart at checkout.index
Hi - you're very close. I think you just need to change "checkout.index" to "checkout.index#1" in the rule above. Because of the way that VM indicates its pages, I made the decision for JomGenius to refer to the checkout steps as:
checkout.index#1
checkout.index#2
checkout.index#3
checkout.index#4
checkout.thankyou
If you want to catch ALL the checkout steps then you could change to this instead:
$vm = JomGenius("virtuemart"); // need this at the start of every rule
if ( $vm->check( "cart_product_ids = 4680" )
and $vm->check("pagetype starts with checkout.index" ) ) return 769;
Hope that helps,
Stephen
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Virtuemart Specific Item in Cart at...
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5965
- Posts this week:
- 4
- User Info:
- Total Users:
- 8011
- Newest User:
- ignac84502
- Members Online:
- 0
- Guests Online:
- 273
- 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