I’m struggling with changing the shipping option selected default. The ‘Free shipping’ shipping option only shows up if the customer has the amount over $70 + in the cart. If the amount on the cart is less than $70 the shipping option will not show up on the shipping options. If the customer has over $70 or more, the “Free
Tag: hook-woocommerce
Add php code after product price on shop and archive pages [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 months ago. Improve this question Link attached image I am trying to add code php after price (not on single product pages) but on sshop
How to set a maximum limit in WooCommerce orders per item & per day
I want to allow only a specific number of orders per product per day on my shop. Any idea which hook do I have to add? Thanks Answer The code below uses the product ID to get the total quantity for the current day. If this is higher than or equal to the $dailyOrderLimit that you set (in my example,
remove_action wc_empty_cart_message not working in WooCommerce
I would like to REMOVE completely the wc_empty_cart_message. My site has no cart. and when the item is removed from checkout the user is redirected to the home page. But then upon browsing to a shop page, the message “your cart is not available whilst your checkout is empty” appears and is completely unnecessary. I have seen many of questions/answers
Several issues when using woocommerce_get_availability hook
Im trying to show an ‘out of stock message’ on the single product page for products that are out of stock. I have this code in my functions.php I get the following error: Notice: stock was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/plugins/woocommerce/templates/single-product.php’), wc_get_template_part, load_template, require(‘/themes/mytheme/woocommerce/content-single-product.php’), do_action(‘woocommerce_single_product_summary’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_template_single_add_to_cart, do_action(‘woocommerce_simple_add_to_cart’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_simple_add_to_cart,
wordpress redirect users to the same URL they request appending parameters according to role
I am working on a Wordpress website with multiple roles. My target is to redirect user with a specific role when they request pages like orders in the admin area to go to a filtered URL having their id. example: User requests: www.site.com/wp-admin/edit.php?post_type=shop_order This Applies only to the role “tester” My Approach was: Rewriting the code now gave me error,
Move “review tab” to position output of product sharing on WooCommerce single product page
I want to change the position of the “review tab” to the position below the share button on the right I removed the default “review tab” with this code and it worked But I don’t know how to re-add the “review tab” under the share button. Any advice? Answer To change the position of the “review tab” to the position
Show product titles to specific delimiter on WooCommerce category archive pages
My products have titles that include the delimiter | after which I enter some SEO keywords. Example product title Samsung UE55AU7172 | Smart 4K UHD 55 Can I force WooCommerce to show the product titles up to that delimiter in product category pages only? For example, the above product title in the product category page would be Samsung UE55AU7172. Answer
Add sale badge to product thumbnail on single product page and shop archive pages in WooCommerce
I use the following code to add a small badge topleft of every product with -%off. On my product page and it works. However when i try to do it on category page to all product listings with the following code: It does not work, there doesn’t seem to be any adjustment. Can I get some guidance into it? Answer
How to disable Cash On Delivery for dokan vendors subscription
I am using WooCommerce Dokan (Version 3.2.6 ) multi-vendor plugin. In my website Cash on delivery and pay by card both methods are enable for users. But when any vendor purchasing a package, it is showing Cash On Delivey for that as well, due to which I have to keep track of every vendor manually whether he has paid or