what's link code to category in mod_sot_vm_thumbnail-slider

Started by sahar-onyx, July 28, 2014, 08:22:31 AM

Previous topic - Next topic

sahar-onyx

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

GJC Web Design

And what doesn't work about it? What url does it produce?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sahar-onyx

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


GJC Web Design

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?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sahar-onyx

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

sahar-onyx

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?


GJC Web Design

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)
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

sahar-onyx

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

GJC Web Design

This is not a help forum for other peoples modules.. ask the guy that made the module or you need to learn some coding...
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation