Skip to content
Advertisement

Tag: woocommerce

Get all Product Variations based on one default attribute value in WooCommerce

Following Loic’s workflow here Can I get all the variations related to the product basing on one particular variation in default value. Example: Get all variations with attribute_pa_sizes similar to the default value’s attribute_pa_sizes echo $variation_values[‘attributes’][‘attribute_pa_sizes’] . ‘: ‘ . $price ; Answer This can be done with the following code (based on this answer): Tested and works

Woocommerce: custom jquery event after added to cart

I’m trying (in archive) handle event after some product was added to cart (1 action on picture), I want catch that moment and update “Total number of products” (3 action on picture) of my mini cart in navigation menu. (With action 2 is all ok) Not working for me with second code: My custom code inited after when woocommerce js

WooCommerce discount: buy one get one 50% off

I wish to set up a specific discount on a particular variable products, if customer buys one product they get the another(same) on 50% discount(Buy one get another for 50% off). I’ve tried many discount plugins buy the closest that I have found are: Pricing Deals for WooCommerce WooCommerce All Discounts Lite WooCommerce Extended Coupon Features By using these plugins

Advertisement