php - How to add a custom empty cart button on configurable product page:Magento -


i have configurable product 2 option , want add empty cart button on page empty items:

i have copied button cart page , embed not worked. please suggest way add button.

 <button type="submit" name="update_cart_action" value="empty_cart" title="<?php echo $this->__('empty cart'); ?>" class="button2 btn-empty" id="empty_cart_button"><span><span><?php echo $this->__('empty cart'); ?></span></span></button> 

you need create new controller , add action of controller button created.

then create model empty $quote current items. thats basic theory.

inchoo created similar want check out here.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -