Hi,
i’m currently working on this site:
http://wordpress.vinea.at/hartmut-aubell/
and trying to develop my own “add-to-cart-button” where i can specify the amount to add.
So far it works good but i’m searching for a way to trigger the avia-update_cart_dropdown-function and the alert that happens when i click the “normal” add_to_cart-button.
Can you please help me here?
Hi!
WooCommerce triggers an action called “added_to_cart” when the user clicks the “Add to cart” button. Kriesi uses this action to fire the “update_cart_dropdown” function located in wp-enfold\enfold\config-woocommerce\woocommerce-mod.js. If you need a different hook/action for your script I recommend to study the documentation here: http://docs.woothemes.com/documentation/plugins/woocommerce/ and to read the comments inside the plugin code (woocommerce folder).
Best regards,
Peter