Category "woocommerce"

Issue with saving custom field (custom post type) in WooCommerce coupon usage restriction tab

I'm trying to add a new field in the usage restriction of coupons. Here is my code: function add_coupon_cpt_field() { $value = get_post_meta( $post->ID,

WooCommerce automatically add variable product to cart based on another product variation

Bear with me - I'm a newbie. Here's what I'm trying to do: if [product A/variation 1] is in the cart then add [product B/variation 1]. I need help setting up a

changing the display location of custom product field on a variable product page

i added a custom field to a variable product and displayed it on the front single product page with the help of an answer here https://stackoverflow.com/a/55774

Products color should show through color variations in woocommerce

I have added two variations at product page in woocommerce. Size Color Color image is moving and appearing at the front, once i am selecting the size also. But

Remove a field from WooCommerce API

My website communicates with retail management software for everything related to products on WooCommerce. Whenever synchronisation takes place, all fields pres

Remove add to cart button on WooCommerce single product page if product has been purchased and show MP3 player instead

We have a WooCommerce store that sells files (MP3/MP4) to registered users and enables the user to play them in the "Downloads" section of their account (we hav

TextLocal.in SMS Api for new order Woocommerce

I am using the following API code to send an SMS when a new order is placed, the SMS API code is working to send SMS... Placed at the end of child theme in func

button doesn't add to cart - WooCommerce

I'm not sure why this is not allowing me to add to the cart. I have access to the global product but it's not capturing the ID to add to cart <?php /**

Playing audio/video files instead of downloading them on Woocommerce "My Account" downloads section

I have a quick question in regards to WooCommerce and downloadable files. I would like to make the purchased products play in My Account section rather than eas

woocommerce product variation color attributes on product list page redirect to single product page on-click

I want, when I click on these color attributes on the product list page it redirects me automatically to the single product page. it shows similar behavior to

WooCommerce attach YITH pdf invoice to custom order status email

I am after some help, please. I am looking for a code snippet that will attach my Yith PDF invoices to an automated email for a custom order status I have alrea

How to get productlist by "category slug" in wordpress

I am working in wordpress and i am trying to get "productlist" by "category slug",So for this i am using following code $terms = get_terms('product_cat', array(

Woocommerce products are displaying on singular.php

I have created a custom theme and downloaded woocommerce plugin, the shop page is working fine however when I view a product only the content appears. The produ

WooCommerce - Get Price Total as number

I'm a newbie, and I have this problem as it shows me $0.00 on the Order received page. // Add Custom WooCommerce Checkout Message add_action( 'woocommerce_thank

Highlight Woocommerce admin orders list when order contains a regular product

I am using Woocommerce and YITH Subscription plugin to sell a subscription product. But when people also order a regular product I often overlook that (~95% of

WooCommerce checkout: How to set field as required if another one is filled + how to autofill field with data from another field

I am looking for solution for my problems in checkout. First problem is that I need to make field company ID as required if field "Buy as company" is checked. I

WooCommerce - How can I add multiple, products to cart using ajax with same add-to-cart-Button?

I am trying to use ajax to add multiple, different products to cart with one button click. The AddToCart-Button is living in SHOP before pagination. Ajax reques

WordPress plugin extend WC_product with namespace class not found

I am trying to add new woocommerce custom product type from my plugin. I just have a simple construct in the class that extend WC_Product namespace giftbox\mode

Free Search plugin for WooCommerce website [closed]

Can someone advise a free Search plugin for WordPress WooCommerce website , that can display in search results “products” and read

Add custom product option to woocommerce orders list

I am using the "custom product options" plugin and created a datepicker for customers to choose a requested ship date. I need to create a column on my orders ad