One last tip for others who have their store configured the same way I do:
Code:
Product Info Single Attribute Display Plugin multiple_dropdowns
Product Info Multiple Attribute Display Plugin sequenced_dropdowns
Show Out of Stock Attributes False
Mark Out of Stock Attributes None
Display Out of Stock Message Line False
Prevent Adding Out of Stock to Cart True
With my dropdowns configured that way, customers who clicked "add to cart" before making a selection would end up with the wrong product in their cart. There would be a version of their product with no attributes and an out of stock message. Obviously what I wanted instead was an error message reminder to choose an attribute instead of letting them add to cart. To achieve this, I made one small change in pad_sequenced_dropdowns.php.
it was originally like this:
Code:
if ($this->no_add_out_of_stock == 'True') {
// js to not allow add to cart if selection is out of stock
$out.=" function chksel() {\n";
$out.=" var instk=chkstk(document.cart_quantity);\n";
$out.=" if (!instk) alert('".TEXT_OUT_OF_STOCK_MESSAGE."');\n";
$out.=" return instk;\n";
$out.=" }\n";
$out.=" document.cart_quantity.onsubmit=chksel;\n";
}
and I changed it to this:
Code:
if ($this->no_add_out_of_stock == 'True') {
// js to not allow add to cart if selection is out of stock
$out.=" function chksel() {\n";
$out.=" var instk=chkstk(document.cart_quantity);\n";
$out.=" if (!instk) alert('".TEXT_SELECT_OPTIONS."');\n";
$out.=" return instk;\n";
$out.=" }\n";
$out.=" document.cart_quantity.onsubmit=chksel;\n";
}
For my store, this prevented customers from accidentally adding a non-product to the cart, and instead gave them a javascript error window telling them to select which product they want.
Thanks again for the great contribution.
Frank