Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Changing template in products page
Changing template in products page
Changing template in products page
Hello
I have some rules changing the template according to different categories, the problem appears when I go to check an specific product, there I am not getting any info on ancestor_category_ids I just can get product_parent_id, I need a recipe based on product_parent_id to get the ancestors categories of that parent and change the template based on this
Thank you for your help
Re: Changing template in products page
Re: Changing template in products page
ok, the GUI controls for the ancestor category ids should work, but you should be able to use the PHP box on the left to do this:
$vm = JomGenius("virtuemart");
$ids = $vm->info("ancestor_category_ids);
echo "ancestor ids: ";
print_r($ids);
Then view one of the products on the front end of the site and see what happens. It will probably make a mess of the HTML on your page (temporarily), but see if at the top of your page you see a list of the ancestor category ids for the product you are viewing. Does this come up with the right information? If so, we'll refine that to check for a specific ancestor and switch the template with that info.
Cheers,
Stephen
- Index
- » Chameleon / ChameleonLite
- » Chameleon
- » Changing template in products page
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5967
- Total Posts Today:
- 2
- User Info:
- Total Users:
- 8026
- Newest User:
- rivas48750
- Members Online:
- 1
- Guests Online:
- 95
- Online:
- rivas48750
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked