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.

 

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-

redlinesuperstore
Guest
useravatar
Offline
Administrator has disabled public posting

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

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
3312 Posts
User info in posts
Administrator has disabled public posting

Re: Virtuemart Specific Item in Cart at checkout.index

Worked perfectly! Thanks again for your quick and easy answer and swift response!

redlinesuperstore
Guest
useravatar
Offline
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1666
Total Polls:
6
Total Posts:
5909
Dormant:
User Info:
 
Total Users:
10091
Newest User:
lamanaudio
Members Online:
3
Guests Online:
220


Forum Legend:

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