Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [woocommerce]

OFF TOPIC. Questions *specific* for this e-commerce plugin have their own forum at https://wordpress.org/support/plugin/woocommerce.

0
votes
0answers
29 views

Add Search Field Dropdown in Woocommerce Order Search

I am using the following code to limit the fields that woocommerce searches in when you search for an order: /** * Limit woocommerce order search fields. */ function ...
0
votes
0answers
11 views

VAT Number in WooCommerce Emails - if empty dont't show

Is it possible that the NIP label and company name will not be displayed in the e-mail if the customer does not provide them. I use this code: add_filter( 'woocommerce_email_order_meta_keys', '...
0
votes
0answers
19 views

WooCommerce get products based on the taxonomy

I need to modify the WooCommerce product query because I want to filter the shown products on the shop pages based on the taxonomies for each product. So what I've tried is this here: add_filter( '...
0
votes
0answers
12 views

Add Prefix to Auto Generated Username

Is it possible to add a prefix to the auto generated username in WooComerce at checkout? Thank you
0
votes
0answers
11 views

Woocommerce import products with serialized data

I am creating a Woocommerce shop that makes use of the official Measurement Price Calculator. This plugin seems to store its data serialized in the database as when I export a spreadsheet of products ...
-1
votes
2answers
24 views

WooCommerce - item added to order not actually saved?

I'm trying to make a plugin that merges two carts into one. I am doing the following: $old_order = wc_get_order($old_order_id); duplicate_line_items($new_order, $old_order); //re-fetch order to ...
0
votes
1answer
6 views

Disable theme WooCommerce template

Just purchased a premium WooCommerce-read theme. Unfortunately, this theme comes with a /woocommerce folder. How can I disable this templates,without deleting whole folder?
0
votes
0answers
19 views

Parse woocommerce_wp_textarea_input [on hold]

I have a textarea in admin which looks like this woocommerce_wp_textarea_input( array( 'id' => 'json', '...
0
votes
0answers
29 views

Woocommerce 'order_by' random with 1 hour seed refresh

I need my woocommerce products to display randomly. My products are actually people and the random element is so different people get seen on the first page so no-one is favoured. So, I have ...
0
votes
0answers
6 views

WooCommerce “Grandparent” or Other Inventory Management [on hold]

My issue is this: We have shirts that people can order, in different designs, different colors. They are screen printed (let's say) on demand. So, we have multiple "products", but, in fact, the ...
0
votes
0answers
19 views

Wordpress user ID prefix

Anyone know of a way to add a prefix to the WordPress user ID when the user registers via WooCommerce checkout? This new user ID format would need to be stored in the WP database in the default user ...
0
votes
0answers
11 views

woocommerce product sorting based on custom fields

I am trying to add a custom sorting option for woo commerce . So I am using following code to add new sort option plus set it as default meta key is '_am_cat_sort' function ...
0
votes
1answer
11 views

WP All import sale price 0 [on hold]

I want to import woocommerce products from an xml file, i got a problem, with the sale price. In the provided xml some products sale price is “0,00”. I would like to skip theese cases, and import the ...
0
votes
0answers
7 views

WooCommerce Taxjar Plugin - No Transactions Being Sent [on hold]

I currently have a Woocommerce site setup, utilizing Taxjar with multiple nexus'. I have the plugin setup to I've followed the steps from the following two pages appropriately https://app.taxjar.com/...
0
votes
0answers
14 views

How to add product variations for large number of products in WooCommerce?

I have a Wordpress site with WooCommerce selling photo prints. Currently there are around 150 photos. I managed to import the photos as products fine, but each print has 3 sizes. I've added a Size ...
0
votes
1answer
22 views

WooCommerce Order status is processing after receiving payment from Payapl [on hold]

I am having strange issue and this happens sometimes, when user pay for a course via paypal the order status changed from pending to processing instead of completed. In this image IPIN notification ...
0
votes
0answers
17 views

WooCommerce: How to Move Quantity Selector below Add to cart button area

with my current theme, the quantity selector for each woocommere product sits to the left of the add to cart button area. When it's sized down in mobile, the add to cart button moves below the ...
0
votes
0answers
16 views

Product with Variations has blank attribute selectors. What am I missing?

I've made some code to synchronise products with a feed. It creates or updates products and variants with stock/price info etc. I was using a "custom product attribute", i.e. is_taxonomy => 0 in ...
0
votes
1answer
20 views

WooCommerce - previous customer data exposed on checkout form [on hold]

On our almost-vanilla WooCommerce site the address and name data from the last customer-order pre-populated the form fields on the checkout page e.g. https://examplesite.eu/checkout/ exposing the data ...
0
votes
1answer
30 views

WP_Query To Display Product Of Brand On Taxonomy Page

I am trying to print all products of a brand on a taxonomy page. I find the wp_querry but i cant print the current brand name of the brand to show all products in this page. What to put on terms ...
0
votes
1answer
25 views

Woocommerce order processing email subject not changing

I am using this hook woocommerce_email_subject_customer_procesing_order to change email subject but it is not working. I have tried other hooks to update subject for order completion ...
0
votes
0answers
17 views

How to add the downloaded item name in New Order email in WooCommerce?

What code should I add in the WooCommerce 'New Order' admin email to include the name of the downloaded file with a digital product? Default email does not include any info on the product ordered (...
0
votes
0answers
21 views

WooCommerce filter shop page without any plugin via AJAX

I've build a fancy dropdown filter at the top of the WooCommerce shop products list: The list gets filled from a custom product meta called hardness. It can has 3 values: big, middle and small. The ...
0
votes
2answers
15 views

How to modify WooCommerce button text in default and additional languages

I'm trying to change the text in the 'Place order' button on my multilingual site in WooCommerce. My default lang is English US, other is Polish. I can easily modify the secondary language text via my ...
0
votes
0answers
6 views

Flexible shipping

Hi my question is (I'm using WooCommerce) how can I make the shipping total to follow these rules: I have two categories : Category A , Category B When I add to cart products from cat. A and they ...
0
votes
0answers
17 views

WooCommerce database upgrade behaviour

I've noticed a strange issue on one of the sites I manage with WooCommerce database upgrades, for the last couple of releases. Here's the upgrade path the WooCommerce plugin has been through on this ...
-1
votes
1answer
17 views

Getting custom field data from cart page to checkout page in woocomerce [on hold]

Added some text fields to add for whom we are sending the gift by adding their name and personal message as well.For Personal message it is working fine If i add To field and click on proceed to ...
0
votes
0answers
11 views

How can I remove the default product archive and customize myself with WpBakery Builder?

I hope I find a solution here, because I search everywhere for answers, but find nothing! Thanks in advance for any help !! I use the Theme '' Salient '', Woocommerce and the WpBakery Page Builder! I ...
0
votes
1answer
11 views

Else: Show Message Outside of Product Loop

I have a loop built inside my custom woocommerce template single product page to output specific products based on a custom taxonomy I created. However, and for the life of me can't figure out why, ...
0
votes
0answers
16 views

How can I achieve this in woocommerce? [on hold]

This is a single product page layout. I want same functionality how can I achieve this. Is there any plugin or custom code for this?
0
votes
0answers
11 views

Variable products in slider [Product Slider For WooCommerce] [on hold]

I am interested in this question: how to display in the one custom slider (carousel) the variable products that are included in the same category? For example, the first product includes a blue, black ...
-1
votes
1answer
20 views

Adding placeholder text field to woocommerce checkout [on hold]

I am trying to add placeholder text to checkout page but it is not displaying any placeholder text on the first name and last name.It is displaying a new text field with the palceholder text which i ...
-1
votes
0answers
6 views

How can i move my product name & price from below thumbnail to be the rollover content in Avada & Woocommerce?

I want me to move the product info (name, price) from under each Woocommerce product image on the shop page to only be seen via Featured Image Rollover (instead of the current rollover info.) Pretty ...
1
vote
1answer
18 views

wooCommerce checkout page State / County (optional) validate not working

wooCommerce checkout page State / County (optional) validate not working that is my added code add_filter(‘thwcfd_State_field_override_required’,’__return_true’); any idea for how to add ...
0
votes
0answers
6 views

Auto - Recognize shipping rule based on an location

I'm working on a webshop and I want to set shipping rates based on a weight. I have installed WC Weight Based Shipping plugin and set the shipping rules. Now I want WP to recognize the cart item by it'...
0
votes
0answers
10 views

Woocommerce Add custom “Add to cart button” in single page with tags

I want to add a custom "ADD TO CART" button in the single product page. I have done it using the id of the product. <?php echo '<a href="?add-to-cart='.get_the_id($product_id).'">ADD TO ...
0
votes
0answers
6 views

WP Job Manager sort by Subscription Level

Im using Listify Theme with WP Job Manager Paid Listings. Now I need to sort the Listings with the Subscription Level (I have Platinum, Gold, and Silver). I am currently modifying the plugin's code ...
0
votes
0answers
8 views

Woocommerce Subscriptions don't update cart since latest update

For reference, the site I'm working on is available here: https://www.belllane.ie This site has simple and subscription products. When I add a simple product to the cart, such as a bag of coffee, ...
0
votes
0answers
16 views

Plugin for showing single product on a page

I'm sure that I'm not the first person who wondered if it's possible and there already should be a whole bunch of such plugins but I cannot find any of them. So, the task is to show only one product ...
0
votes
1answer
19 views

How to add Woocomrce cart page shipping calculator to my country state list

Im beginner for the word press , I don't know if the issue is because of the . The problem is that the "calculate shipping" option on my cart page doesn't allow users to select my country / state ...
-1
votes
0answers
36 views

Adding order notes field and from field,to field in woocommerce cart page?

Adding From,To and Message fields in cart page before checkout.I have added some code in cart.php file but after adding that code the cart page is displaying blank. Cart.php In cart.php i have added ...
0
votes
0answers
30 views

Require postcode for shipping calculation in Cart - WooCommerce

I am trying to force the cart shipping estimate to use postcode and country. Only country seems to be required by default, and postcode is optional with the field even greyed. Here is an example image ...
0
votes
0answers
20 views

Where do I find where woocommerce stores product data in cpanel file manager?

I updated my woocommerce and it destroyed my wordpress site today. I get a Apparently I'm dumb and didn't setup my godaddy back ups properly. I get a "page isn't working" HTTP ERROR 500. Before I ...
1
vote
1answer
126 views

Woocommerce add_to_cart non-register visitor not working

I've created a plugin that requires on-the-fly WooCommerce product creation (Simple Product) and adding to the visitor's cart. All of this happens on the front end / public side - i.e. visitor fills ...
0
votes
0answers
22 views

WooCommerce: how to set stock per attribute on variable product

So I have a variable product with the attributes "time" and "package". Time has 3 options: "1 week", "2 weeks", "3 weeks" Package has 2: "Full ticket" and "half ticket" This creates 6 variations. ...
1
vote
2answers
24 views

How to upload multiple image using wp_insert_post

Im using wp_insert_post to add products on the front end of a woocommerces site My current code will upload all the images but only the last image will be in the product gallery images heres my code;...
0
votes
0answers
23 views

full backup woocommerce cart content and restore it [on hold]

how get full backup of woocommerce cart and restore it? I get cart backup with this code: $cart = WC()->cart->get_cart_contents(); or $cart = WC()->cart->get_cart(); for restore I use ...
0
votes
1answer
8 views

Filter default_content only for products

Is there any way to use default_content only for a certain post type, specifically product (WooCommerce)? My code: add_filter( 'default_content', 'set_default_content', 10, 2 ); function ...
0
votes
0answers
15 views

Woocommerce. Find parent products by meta value of the children

There are grouped products. Tours / Excursions. Every parent product has children. Children products have custom meta - wt_start and wt_expired (dates of start and end of the tour) I'm trying to ...
0
votes
0answers
10 views

Dynamic Population from WooCommerce

I've been trying to add some pre-population to a sample page using WooCommerce. I want the users to be able to click through the 'Request a sample' button and have the drop-down boxes filled based off ...