Can I Create a Product URL with Specific Item Options Pre-selected? |
|
Yes! You may sometimes need to provide your shoppers with direct URLs to a product, but with specific options already selected. For example, let's say you have a shirt that comes in three colors, and you'd like to provide URLs with each variation already pre-selected. Perhaps it's for a targeted marketing campaign, maybe it's for a social media post that showcases specific options. Whatever the reason, the preselected option URL can be constructed by adding the following code at the end of the product's page URL: ?preSelOpt=[option_id] Just be sure to substitute the [option_id] above with the respective option's ID number from your store. How do I get the Option ID?Glad you asked. Each option you create on the products will have a unique database ID number assigned to it by the store (similar to the product's "catalogid" creation). To retrieve a specific option's ID number, use the following steps: From your Online Store Manager:
Once there, you'll see each option that you've created for your product. At the far right of each selectable option, you will see a link labeled "Select" which is usually used to create product bundles. Although its purpose it to begin creating a bundled item, this link can also be used to view what the respective option's ID is on the store's database.
When the popup window appears, look at the popup window's URL/address bar. At the end of the URL you will see "optcatalogid" followed by a number. This number is the ID you'll be using for your preselected option URL.
Example:So let's say your shirt in 3 colors has the following IDs for the options:
You would construct your pre-selected option URLs in the following manner:
But what if I have multiple options that I want pre-selected?In cases where the product has multiple option sets to choose from, you can create your URL simply by separating the option ID numbers with a comma, like this: ?preSelOpt=[option_id#1],[option_id#2]
ExampleSo, in the case of our shirt example; if the shirt also comes in three sizes along with colors, you'd need to find the option IDs for the individual size options as well. Using the steps above, in our case the size option IDs are as follow:
You would then construct your URLs in this manner:
When followed, each URL will display the product for your shopper along with the individual options pre-selected for them Note: | |
|