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: 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
Multiple IDs rule in php code WooCommerce
I’m simply trying to make this php code work with multiple IDs Trying this doesn’t work – What’s the correct formatting? Answer Try this. Learn about in_array here : https://www.w3schools.com/php/func_array_in_array.asp Keep adding items in $ids as required.
WooCommerce: Get $cart_item in price function
I’m using a custom function to change the style of the product price. This is my actual function: It works fine on product detail pages if I want some meta fields from the product. I can get these meta fields if I use global $product and go from there. The problem is, that global $product throws an error if used
Woocommerce replace category image with AFC image
I have the following code that works and need to Replace the existing category with AFC images this scrolls but now the default images are in their place first screenshot of admin panel frontend screenshot how can I remove the default once Answer Just remove default one Add this in to your theme functions.php
WooCommerce Related Products: Rows
How can I display the Related Products output as 4 rows? Answer try this one If you want to divide into 4 rows you have to do few CSS. Basically it all depends on how much number of products you want to display, its no relation of number of rows and columns. Like I have added the 12 products in
Namespace with extend from wordpress class not working
I’m having trouble with namespaces. When I put a namespace, my application will look for the class I extend in the namespace, while I want my namespace to be for my Quote_Recieved class. But I have this error : Uncaught Error: Class ’emailsWC_Email’ not found in C:xampphtdocswordpress….. How I can put my namespace for Quote_Received and not WC_Email ? Thanks.
Add Term Meta from Custom Taxonomy to Cart Item
What I’m trying to accomplish is adding term meta from a custom taxonomy that is attached to a product and display it on the cart/checkout/ order details/email notification. I’m not the greatest at this but know enough to get by. What I’m using is the ‘Perfect Brands WooCommerce’ plugin that adds in the “pwb-brand”. I’ve also added in my own
Disable payment gateway based on number of items and product category in WooCommerce cart
I am using the following code, which allows me to set a minimal quantity of products in cart to proceed payment Is there some option to exclude some specific category? For example: I need to set the minimum quantity for one order for 6 pieces of goods (applies to all categories). For one category of products (ID 2), however, I
Multiple bulk dynamic pricing for WooCommerce products with specific product-tag
My intention is to add multiple bulk dynamic pricing for WooCommerce products with specific product-tag. I use the slug “petit-format” on my code. Based on Bulk dynamic pricing for WooCommerce products with specific product-tag answer code, this is my attempt: But I only have the first discount that works, but the other one doesn’t. So the $discount1 works, but the