Skip to content
Advertisement

Make order notes field required for variations with specific product attribute term in WooCommerce

I have few variable products with variation that have pa_size and pa_color attributes (taxonomy). I have 4 sizes (“s”, “m”, “l” and “special”) and 4 colors. My problem is, for the “special” size: Customer must fill order notes in checkout page, but since it is not a required field, they easily miss it. I found some code for product categories

get_magic_quotes_gpc() returns undefined in my code

I just installed a new version of XAMPP and the site that used to work perfectly now no longer works, I suppose it’s a PHP incompatibility, can anyone help me? tnks in adv.. thanks @WiatroBosy for your help. I think I solved the problem because the message has now changed and has diverted the error to another file.. I solved

Counting specific rows after dynamical WHERE clause query in PDO

I’m following this tutorial for a dynamical WHERE clause query in PDO. Let’s suppose I have a short version of the tutorial code, just like this: By adding the line $count = $stmt->rowCount();, I could count the rows. Now let’s suppose I have data like this: If I searched for “Smith” now, I would get 3 results and when I

Advertisement