Modular Merchant: Shopping Cart Software

Shopping Cart Software Service

Advanced SearchAdvanced Search RegisterRegister ProfileProfile FAQFAQ MemberlistMemberlist Log inLog in
Hide/Unhide Items in Your Category List Automatically
Post new topic   Reply to topic
Modular Merchant Forum Index -> Web Design & Programming
Author Message

CMarier


Modular Merchant: Administration

Joined: 06 Mar 2006
Posts: 38
Location: Oregon


PostPosted: Sep 25, 2007 04:08pm    Post subject: Hide/Unhide Items in Your Category List Automatically Reply with quote

Quote:
We have many affiliates linking to our website, and we want the store to show only categories of products related to that affiliate. For example, an affiliate selling sporting goods, won't want our store to show categories for knitting or decorative baskets. They want our store to look like an extension of their site. How do we accomplish this?


FILTERING THE CATEGORIES DISPLAYED IN THE CATEGORY MENU:
(The instructions below will work when using the {CATEGORY-LIST} QuickCode Tag in your store's templates.)

The categories displayed in the category list can be hidden/unhidden on-the-fly by including a selection of variables in the incoming links to your store. There are three options:

- - - - -

1. Reset the category list to display all categories.
The category list can be reset to display all categories by passing the variable "cat_all" in the link.

Example: http://www.mywebsite.com/storefront.php?cat_all=Y

- - - - -

2. Hide selected categories from the category list.
Selected categories and their subcategories can be hidden from the category list by passing a variable named "cat_hide" containing a comma-separated list of the category SID numbers to be hidden.

Example: http://www.mywebsite.com/storefront.php?cat_all=Y&cat_hide=9

The sample link above will first reset the category list, and will then hide category 9.

- - - - -

3. Show ONLY selected categories in the category list.
The category list can be set to display ONLY the specified categories. (Note, if a category's parent category is hidden, then the category will also remain hidden.) Display only selected categories in the category list by passing a variable named "cat_show" containing a comma-separated list of the category SID numbers to be shown.

Example: http://www.mywebsite.com/storefront.php?cat_all=Y&cat_show=9,31,34,32,30,33

The sample link above will first reset the category list, and will then display ONLY categories 9,31,34,32,30, and 33.

- - - - -

QUESTION: How long will the categories be hidden and/or unhidden?

The presence of the "cat_hide" and "cat_show" variables assign a variable in the user's browsing session. That means that the changes to the category list will remain in affect for the duration of the user's browsing session (usually until they quit the program). Even if they go to another website and return, the session will retain their custom category menu display.

- - - - -

QUESTION: Is it required that I include the "cat_all=Y" variable before the "cat_hide" or "cat_show" variables?

No, it is not required. However, the "cat_all=Y" variable will cause the system to first reset the category list before hiding/unhiding items. This can help prevent unexpected results; for example: if you're trying to show a category that was previously hidden.
_________________
CMarier
Modular Merchant - Shopping Cart Software
Specializing in digital delivery, subscription products, and add-on also available.
Display posts from previous:   
Post new topic   Reply to topic    Modular Merchant Forum Index -> Web Design & Programming All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group