I am trying to convert/combine a couple of submit buttons into a single drop down select menu with one submit button (to use on the CTGY page).
Currently the two buttons are (within the default add to cart form):
Add to Cart <input type="submit" value="Add to Cart">
Sample <input type="submit" name="sample" id="samples" value="Order Sample ($1.75ea)" />
This adds the Sample no matter which option is selected:
This only adds the product.
The two buttons do work if I don't try to combine them into a dropdown...
Currently the two buttons are (within the default add to cart form):
Add to Cart <input type="submit" value="Add to Cart">
Sample <input type="submit" name="sample" id="samples" value="Order Sample ($1.75ea)" />
This adds the Sample no matter which option is selected:
Code:
<select name="sample" id="samples"> <option value="Add to Cart">Yards</option> <option value="Order Sample ($1.75ea)">Sample</option> </select>
Code:
<select> <option value="Add to Cart">Yards</option> <option name="sample" id="samples" value="Order Sample ($1.75ea)">Sample</option> </select>
Comment