WordPress Developer Ukraine, Kyiv
WooCommerce: Add to Cart Without Page Reload Using AJAX

WooCommerce: Add to Cart Without Page Reload Using AJAX

WooCommerce: add to cart without page reload using AJAX WooCommerce can add products to the cart without reloading the page, but a custom cart link in the header doesn’t know about it: the item count and total stay the same until the next page load. The woocommerce_add_to_cart_fragments filter fixes that by refreshing your cart markup…
How to Add a User to Mailchimp After a Form Submission

How to Add a User to Mailchimp After a Form Submission

Add a user to Mailchimp after a form submission A common requirement on marketing sites is to automatically subscribe a user to a Mailchimp list when they submit a contact or registration form. Mailchimp provides a straightforward API endpoint for this, and WordPress makes it easy to call it with the HTTP API.
WooCommerce: Add Custom Fields to Product Variations

WooCommerce: Add Custom Fields to Product Variations

WooCommerce: add a custom field to product variations Each variation of a variable product (a size, a colour) has its own price, stock and SKU. Sometimes it also needs its own text: a “Best value” badge on the large size, a delivery note for one colour. WooCommerce has hooks to add such a field to…