I am getting null response on the below query. I am trying to get sum of the products subtotal and a custom cost field for products. I am able to get the data f
I've checked many threads on the platform. But there is no thread which explains how to use the conditional $email>id parameter straight into a template. Thi
I want to hide specific products, based on product category for users under the age of 18. So if the user is not logged in, or if logged in but under the age of
I want to hide specific products, based on product category for users under the age of 18. So if the user is not logged in, or if logged in but under the age of
So I'm selling a digital product with WooCommerce but I don't have a shop page or anything, I just have a big CTA button on my landing page which adds the given
I have this variable: $subscriptions = wcs_get_subscriptions_for_order($order_id, array('order_type' => 'parent')); Using this print_r() I can see lots of d
I have created a custom function to display 3 custom fields (ACF) and the product price in the WooCommerce Archive/Shop page. My Custom fields are showing corre
I need to check on the checkout page whether payment has been successful or not and display the message: 'Your payment has been successful', and then redirect t
I am able to find the REST API docs for WooCommerce: https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-product but am unable to figure out how t
Using Woocommerce, I need to be able to add a variable product to the cart within a custom add to cart URL, such as with the following example, where 88 is the
I am trying to insert a WooCommerce element to display "products" (courses) from a specific category into a page. I had also to hide these products for this spe
I would like to connect API but, to be honest I'm not so experienced in api connections, the API instructions are clear, but I don't know how to begin in WordPr
we need to make an automatic discount coupon to be applied if the current user role is ( vendor ), we achieved that by creating a normal coupon then used the sn
I'm trying to add this basic code to add a new field to the check out page. However, it seems to disable the place order button. Here is the code: /** * Add th
I need to update Shipping class based on Tag, example all products with tag "Fresh" shoud have shipping class "fresh" . i try this, but without results.. add_ac
I want to add a conditional requirement on the Checkout page. Because a lot of people fill the Name of Company without they are a company. And I want to add to
Woocommerce version: 4.1.0 I am trying to create a product with categories and images via the API but I get this error : {"code":"woocommerce_product_i
I need display specific shipping methods only if specific acf checkbox in product is checked. I created custom field viac ACF plugin with name "zpusob_prepravy"
Let's say i'm using this code to create a coupon: $coupon_code = 'CODEOFF'; $amount = '10'; $discount_type = 'percent'; $coupon = array(
I'm writing a plugin to intercept the creation of bookings in wordpress. To have all the booking information I need to access the information filled in the addo