Need to display the product shipping class to product page! any ideas why this is not working? add_action(‘woocommerce_single_product_summary’, ‘display_product_shipping_class’, 15 ); function …
Tag: wordpress
Custom WooCommerce datepicker checkout field saved and displayed on orders and emails
I have added a new custom datepicker field on the WooCommerce checkout page. I am using Enabling a date-picker in Woocommerce checkout fields. All it’s OK On checkout page. But now I really don’t know how can I save and add this new field on the order notes. Any help is appreciated. Answer Section…
Allow only Local Pickup for specific products outside specific Shipping Zone in WooCommerce
I have several products in the store, however one product (flammable) can only be shipped via a specific shipping company; Unfortunately that company can’t reach the whole country. So in case the customer buys the flammable product and it’s outside the coverage of the only company that can ship th…
Count only top level WooCommerce product categories form custom shipping calculations
I am using Increase Shipping cost per categories count found in WooCommerce cart answer code from my previous question. How to exclude subcategories from the array of product categories Ids, to keep …
Local pickup custom percentage discount in WooCommerce checkout
I am using Local pickup shipping option custom percentage discount in Woocommerce answer code to make local pickup discount of 2% on Woocommerce. So people who choose to pickup their order get a discount on their total amount. This code is great, but I would like to hide it on cart page, and to only show up o…
Get the value of a string inside a function
so there’s this function: That I would like to get the value from. Let’s say, is it ‘delivery’ or ‘pickup’? Then, I need to know if the product this whole code refers to is set as a ‘pickup’ or ‘delivery’ – each product is assigned to only one …
How can I remove parentheses from WooCommerce subcategory product count
On any default WooCommerce category page, it lists categories (product photo, title/link) with a number in parenthesis. For example, Finishing (6). The page html looks like this: I tried this php to remove just the parenthesis, obviously that didn’t work: My goal is to style that count with a background…
WordPress custom pagination links to a blank page
this is my archive of posts: https://polnapol-tarnow.pl/aktualnosci/page/4/ There are only 4 pages but link to another (blank) page is showing up anyway (“Następna strona”). Is there a way …
MySQL find Array Values in DB Array field
i have an array, that can contain different values for example: Array ( [0] => Allgemeine Pharmazie [1] => Geriatrische Pharmazie ) The WordPress DB contains in the meta_value the following array: a:4:{i:0;s:20:”Allgemeine Pharmazie”;i:1;s:22:”Geriatrische Pharmazie”;i:2;s:16:…