Skip to main content

All Questions

0 votes
2 answers
372 views

Woocommerce - Max quantity per variation limit and message

I am using this code to limit the quantity the customers can buy per product : add_filter( 'woocommerce_available_variation', 'woo_quantity_max_variation', 9999, 3 ); function ...
go-diego-go's user avatar
-1 votes
1 answer
286 views

Conditionally unset checkout fields if certain type of person is selected

How do I create a function (code-snippets) in order to unset or make checkout woocommerce field not required based on type of person field? There are 2 customer options: Company or Person. If a person ...
Gerson Almeida's user avatar
0 votes
0 answers
25 views

How to use php tag with conditional logic in WooCommerce function [duplicate]

I have a code to display checkbox on my single product pages in my WooCommerce shop. I want to only execute it for 2 product categories, unfortunately when I try to merge my code with conditional ...
user1381985's user avatar
0 votes
0 answers
47 views

Code snippets are breaking the wordpress image upload functionality, not sure what I did wrong with these 2 code snippets?

The following 2 code snippets are breaking the image upload on my wordpress page showing the following error. "An error occurred in the upload. Please try again later." Not sure what I am doing ...
Seesharp's user avatar
  • 333