The Rule form: VirtueMart |
|
1. Page Type This control allows you to target every different page type within VirtueMart. You might wish to select all the Checkout pages in 1 rule for a certain template, and the shop.product_details page in another rule for another template — the combinations are practically limitless. Options:
2. Product id(s) You can target particular products by ID number, to use a certain template (or to make the rule SUCCEED). If you want to target more than one, enter the list of ID numbers separated by commas. The Product IDs are checked whenever VirtueMart is on a shop.product_details page, shop.ask page or any other page that takes a product_id parameter. Therefore you might like to restrict the types of pages checked using the Page Type selector as well as the Product id(s) selector. 3. Category id(s) You can target particular products by category ID number, to use a certain template (or to make the rule SUCCEED). If you want to target more than one, enter the list of category ID numbers separated by commas. The Category IDs are checked whenever VirtueMart is on a shop.browse page (i.e. browsing the category), shop.product_details page (viewing a product in that category), shop.ask page or any other page that takes a category_id parameter. Therefore you might like to restrict the types of pages checked using the Page Type selector as well as the Category id(s) selector. 4. Ancestor Category id(s) If your category hierarchy is more than 1 deep, you may wish to target all category pages or product pages that are beneath a certain top-level or mid-level category. That’s where this control comes in. It allows you to target any shop.browse page or shop.product_details page that descends from the specified category id(s). Don’t be confused by the fact that this is called “ancestor” rather than “descendent”. The category id(s) that you insert in this box may be the parents or grandparents (etc) of the products that you are trying to target... therefore the box is called “ancestor category id(s)”. e.g. your category hierarchy may look like this:
If you want to target everything in the Sports section, enter "2" in the Ancestor Category Id(s) box. 5. Manufacturer id(s) You can target particular products by manufacturer ID number, to use a certain template (or to make the rule SUCCEED). If you want to target more than one, enter the list of manufacturer ID numbers separated by commas. The Manufacturer IDs are checked whenever VirtueMart is on a shop.manufacturer_page (i.e. viewing info about that manufacturer), shop.browse page (i.e. if browsing by manufacturer), shop.product_details page (viewing a product from that manufacturer), shop.ask page or any other page that takes a manufacturer_id parameter. Therefore you might like to restrict the types of pages checked using the Page Type selector as well as the Manufacturer id(s) selector. 6. Items in Stock The number of product items in stock. Operates only on shop.product_details pages. This selector comes in 2 parts: a drop-down and a text field to enter numbers. Options:
Examples:
7. Items Sold The number of product items that have been sold for the currently-viewed product. Operates only on shop.product_details pages. As for "Items in Stock" above, you need to select =,etc. from a drop-down to go with the figure in the text box. 8. Previous purchases of this product The number of product items of the currently-viewed product that have already been purchased by the current user. As for "Items in Stock" above, you need to select =,etc. from a drop-down to go with the figure in the text box. 9. Previous purchase SKU(s) Whether the current user has already purchased any items with SKU(s) as listed in this box. Enter a comma-separated list of product SKUs. Note that this cannot detect whether the user has purchased any of the listed items until/unless the user is logged in to their Joomla user account. 10. Previous purchase id(s) Whether the current user has already purchased any items with product id(s) as listed in this box. Enter a comma-separated list of product ids. Note that this cannot detect whether the user has purchased any of the listed items until/unless the user is logged in to their Joomla user account. 11. Cart Empty Is the shopping cart empty? This can be used on any Joomla! page, not just VirtueMart pages. When an item is added to the cart for the first time, Chameleon is run before the item is actually added, so this rule will appear to lag by one page. Options: Ignore | Yes | No 12. Cart Product id(s) A comma-separated list of product ids. The rule will SUCCEED if the cart contains any one of these products. This can be used on any Joomla! page, not just VirtueMart pages. When an item is added to the cart for the first time, Chameleon is run before the item is actually added, so this rule will appear to lag by one page. 13. Cart Category id(s) A comma-separated list of category ids. The rule will SUCCEED if the cart contains a product directly inside one of the given categories. This can be used on any Joomla! page, not just VirtueMart pages. When an item is added to the cart for the first time, Chameleon is run before the item is actually added, so this rule will appear to lag by one page. 14. Coupon Type Has the user entered a valid coupon code? When a coupon code is submitted, Chameleon is run before the coupon is actually added in Virtuemart, so this rule will appear to lag by one page. 15. Coupon Code(s) A comma-separated list of coupon codes. The rule will SUCCEED if the user has entered one of these codes. When a coupon code is submitted, Chameleon is run before the coupon is actually added in Virtuemart, so this rule will appear to lag by one page.
|
|||
| Last Updated on Monday, 17 October 2011 02:52 |




