Knowledgebase
How do I Setup an IXXO Cart Module to be Vendor Specific?
Posted by Steve Naqvi on 18 July 2010 02:02 PM

Instructions on how to display an IXXO Cart module in vendor specific pages
 
Vendor Specific modules that can be used:

1. Vendor Information (mod_ixxocart.vendor_info)
2. Vendor Categories (mod_ixxocart.vendor_categories)
 
To display a certain module on vendor specific pages you need to edit the default Joomla
template.
 
1. Open your template’s “templateDetails.xml” file which is located in the root
folder of your default template.

Search for the <positions> line and create a new position and give the name
vendor_module_position.

Code to be inserted:
<position>vendor_module_position</position>

Save the file.
 
2. Open the index.php file of the default template. The file is located in the root
folder of your template.
The example is to show the module to the right position of your template.
Search for the line with, assuming you are using a Yootheme Template

<?php if($this->countModules('right')) : ?>   
<div id="right">
 
3. Insert below the above code the following lines:

<?php if(JRequest::getVar('vid') != "" || JRequest::getVar('vendorid') != "") : ?>
<jdoc:include type="modules" name="vendor_module_position"  style="yoo"  />
 <?php endif; ?>

<?php if(!JRequest::getVar('vid') && !JRequest::getVar('vendorid')) : ?>
<jdoc:include type="modules" name="normal_module_position"  style="yoo"  />            
<?php endif; ?>

Make sure to change the style=” “ to be the one used by your template.
In our example we are using the “yoo” style.

Now save the file and you are almost done.
 
4. Login to your joomla admin area and install the two modules.
 
5. Enable the modules and choose their position to vendor_module_position
 
6. Done

(84 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).