Output without add to cart form
marcus178 - October 22, 2009 - 14:35
| Project: | Ubercart Out of stock Notification |
| Version: | 6.x-1.4 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hello and thanks for a great module.
However I would like to change how the out of stock message is outputted. At the moment it displays in a div within the add to cart form but I just like to output a out of stock div on it's own with no add to cart form.
So at the moment I have
<form id="uc-product-add-to-cart-form-254" method="post" accept-charset="UTF-8" action="/v2/events-and-tickets">
<div>
<input id="edit-qty-1" type="hidden" value="1" name="qty"/>
<div class="uc_out_of_stock_throbbing"/>
<span class="button-wrapper" style="display: none;">
<span class="button">
<span>
<input id="edit-submit-254" class="form-submit node-add-to-cart" type="submit" value="Buy" name="op" style="display: none;"/>
</span>
</span>
</span>
<div class="uc_out_of_stock_html">
<p>
Out of Stock
</p>
</div>
<input id="form-3e709e3c2cdc5521705f5a2821ea7fef" type="hidden" value="form-3e709e3c2cdc5521705f5a2821ea7fef" name="form_build_id"/>
<input id="edit-uc-product-add-to-cart-form-254-form-token" type="hidden" value="8be83f990c8cfe943247aec7d28bf281" name="form_token"/>
<input id="edit-uc-product-add-to-cart-form-254" type="hidden" value="uc_product_add_to_cart_form_254" name="form_id"/>
</div>
</form>but I would like to have
<div class="uc_out_of_stock_html">
<p>
Out of Stock
</p>
</div>I have tried to change uc_out_of_stock.js but I don't understand javascript enough to do it.
