News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[ SOLVED ] Get category id of VM

Started by El_Loboo, March 29, 2013, 18:33:17 PM

Previous topic - Next topic

El_Loboo

Hi

I published the products VM module so that customers can see the best selling items in each category. I would like to put a different background image in depending of VM category.

I have been testing in modules\mod_virtuemart_product\tmpl\default.php file but i canĀ“t get the category id of VM to concatenate with the class 'vmproduct'. Something like this:

<ul class="vmproduct<?php echo $category->virtuemart_category_id?>">

but not works... $category->virtuemart_category_id is empty.

Anybody can help me?

Regards


El_Loboo

Thank you PRO.

Finally concatenated module ID by the following way:

<div class="vmgroup<?php echo $params->get( 'moduleclass_sfx' ) . $module->id; ?>">

Regards.

PRO

i thought u wanted the category id

El_Loboo

Yes PRO, but then I thought to use different modules for each category and finally I did it that way.

Your reply was very useful, i'm glad you.

Regards.

PRO

Quote from: El_Loboo on April 02, 2013, 17:01:23 PM
Yes PRO, but then I thought to use different modules for each category and finally I did it that way.

Your reply was very useful, i'm glad you.

Regards.

http://www.kaizenmediaworks.com/virtuemart-template-and-module-control