Randomy select product variation (Bug)
-
Hi,
I am trying to select a random product variation from the select dropdown on page load, using JavaScript.
The problem is, that the select dropdown initially also populates with the product variations that are out of stock, meaning my code randomly selects a product variation that is out of stock.I also have the option “Hide out of stock items from the catalog” checked.
Please help!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Randomy select product variation (Bug)’ is closed to new replies.