| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Restrict Products to Membership(s) (4.0.x) | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Restrict Products to Membership(s) (4.0.x)
This mod was done in x-cart gold 4.0.13. Once in place, the mod allows you to restrict item availability by Customer Membership(s). Stock X-Cart 4.0.x only allows Membership permissions to be set by Category (I believe 4.1.x now includes Membership at the Product level). Membership-restricted items behave in the same manner as a standard Disabled item (unavailable for viewing or ordering in the storefront). This mod adds 1 new field to the xcart_products table.
No warranty is expressed or implied. Make sure you backup your database and site files before attempting the mod.
The mod is now installed. To restrict an item to a specific Membership (ie. Wholesale), type the Membership name in the new field on the product_modify screen (ex. Membership: Wholesale). This value is case-sensitive and must match the Membership name exactly. If you need multiple Membership levels to have access to the product, you can enter them all in this field, separated by commas (ex. Wholesale, Retail, Black Market). Leave the field empty to allow all customers to view the item. Note that the mod searches the membership data with LIKE pattern matching. This means that if you have Membership levels with non-unique names, you may be inadvertently displaying restricted items to each of them (ex. "Membership: Retail" would also match "Membership: Full Retail"). To-do: Eventually, I want to use a Select box for Membership selection. -Glen
__________________
NO LONGER USING X-CART - NOT ACTIVE IN THESE FORUMS |
|||||||
|
|||
X-Cart forums © 2001-2020
|