As you can see from the title I want to refresh/redirect the page after all configurable options have been selected so that the sku of the child product is present. The reason for this is that I've implemented a custom review system, but obviously I need the actual sku for the child product to accurately display my reviews.
Thanks
Solved! Go to Solution.
I'd probably do this by observing the super_attribute select boxes on the product pages and on change, checking if you have all the values for all options of the product. With this information, you may be able to update your reviews.
if you need more information about the particular product, you can use the IDs/values of the select boxes and look at the spConfig javascript variable that's on the page which includes more information about actual product IDs.
One note though is that unless you have a very large number of reviews, it's probably worth showing review options for all variants of a product. Otherwise, you'll likely to have very few or worse no product reviews to show.
I'd probably do this by observing the super_attribute select boxes on the product pages and on change, checking if you have all the values for all options of the product. With this information, you may be able to update your reviews.
if you need more information about the particular product, you can use the IDs/values of the select boxes and look at the spConfig javascript variable that's on the page which includes more information about actual product IDs.
One note though is that unless you have a very large number of reviews, it's probably worth showing review options for all variants of a product. Otherwise, you'll likely to have very few or worse no product reviews to show.