step1:Create a Custom Item Field
Go to Customization > Lists, Records & Fields > Item Fields > New. Set it up as follows:
Example:
- Label: Slogan
- ID: _slogan
- Matrix Option: (checked)
- Type: Multiple Select
- List/Record: (add new)
- Name: Slogans
- ID: _slogans
- Matrix Option List: (checked)
- Values: Great; Amazing
- Applies To: Inventory Item
- Applies To: Select Individual Items
After checking Select Individual Items you must then select some items to apply it to. I strongly suggest that you do not apply this to all items as it will require you to set a value for this on all your items, even if they don’t have one. All other fields can be left as default.
Step2: Create a Custom Transaction Item Option
This is the part that allows the shopper to select additional options when they add to the cart.
Go to Customization > Lists, Records & Fields > Transaction Item Options > New. Set it up as follows:
- Label: Slogan
- ID: _slogan
- Type: Multiple Select
- List/Record: Slogans
- Applies To: Purchase; Sale; Opportunity; Web Store; Transfer Order; Apply to Kit/Assembly Components
- Applies To > Items: (select the items you want)
- Sourcing & Filtering:
- Source List: Item
- Source From: Slogan
Note what I said above about specifying particular items to apply this to, rather than selecting all items.
All other options can be left as default.
step3:Set Up an Inventory Item
Now we have our new fields, we need to add them to at least one product. As these are matrix item options, they are not added like other custom fields; instead, we effectively create new items using them.
Go to a product you want to modify, edit it, and then go to the Accounting tab, and then the Matrix Items section.
The first thing you need to do is add the new option to the Matrix Item Name Template.
Next to this will be all the item options that can be added to the product.
Using CTRL+click, select the option values you want to create child items for
Step4 Update the Configuration Record
Go to Setup > SuiteCommerce Advanced > Configuration.
Make the URL Component Friendly
While we’re editing the config record, we should also add a friendly URL parameter name for the option. Adding one would change, for example, it from &custcol_slogan=amazing to &slogan=amazing.
To do this, go to Shopping Catalog > Item Options and add a line into the Item options and custom transaction column fields table. As it’s a simple item option, you only need to add the ID and the name you want to use as a synonym.