hello
I want create a text for link to one category. i try use this code:
JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$category->virtuemart_category_id);
but not working
Sorry for English language weak
please help me
And what doesn't work about it? What url does it produce?
Thank you for the answer
url: domain/index.php?option=com_virtuemart&view=category&virtuemart_category_id=
Does not produce any id number for category
if type
<?php echo $category->virtuemart_category_id; ?>
Does not show anything
assume from the post title it is in this module?
mod_sot_vm_thumbnail-slider
this knows nothing about VM so of course $category->virtuemart_category_id is meaningless
you have to include all the VM base files etc so the $category var means something via the model
wouldn't it be far simpler to make a manual config of the catids in the module xml?
You are right
I do not know how I should connect the slider variables to the variables based virtuemart
I found the answer and put in this post
Thank you
There are this field in mod_sot_vm_thumbnail_slide.xml file
<field name="virtuemart_category_id" type="vmcategories" value_field="category_name" label="Virtuemart Category" description="Select Category" />
How should I use virtuemart_category_id that is Available at this file?
you have to ask who ever made the module - normally it's a comma separated list of catids (that's how I would do it)
I have 4 module " mod_sot_vm_thumbnail-slider " that Each of modules showing product of one category. now I want create link " show all product " in each module.
How do I it?
Sorry if I do not explain it
Please Help me
This is not a help forum for other peoples modules.. ask the guy that made the module or you need to learn some coding...