Some people like to associate a product code with their products in order to uniquely identify each product. When using product features, however, regardless of what feature is selected, the product code remains the same. For this reason,VPCart has a featured called xgeneratesku.
To use this feature, set your configuration option:
Xgeneratesku |
Setting this to Yes generates an SKU based on the product code and any codes defined in the featureother field. This SKU is displayed along with the product name when added to the cart. |
Once you have set the configuration optionabove, when a product with a feature is selected, the ccode field of the products table and the featureother field of the prodfeatures table is combined to create a unique product code for this product and the chosenfeature.
For example, in your product record for Apples, the ccode is “apple”.
You may then have features associated with the apple product, which are “Red” and “Green”.
featureother for Red may be “ – Red” and featureother for Green may be “ – Green”.
When a customer selects an apple with the “red” feature, the generated SKU would be:
Sku: apple-Red
If an apple was chosen with a
green feature, the generated SKU would be:
Sku: apple-Green