Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
Tooling
0 votes
0 replies
17 views

i want to utilize woocommerce CSV importer to import metafields into pages, not just products

is it possible? the thing is that I have created my theme using only metafields. So i just fill out the fields in my csv file, run importer and it imports the data from csv to product page and this ...
emezz's user avatar
  • 1
1 vote
1 answer
95 views

Hide Woocommerce UK Shipping counties I do not ship to in Checkout Block but keep all GB counties in Billing

How can I hide all GB counties (states) in the Shipping section and only show the 6 Northern Ireland counties, while still displaying all GB counties (states) in the Billing section? I'm using ...
Richard McClung's user avatar
0 votes
1 answer
84 views

WooCommerce voucher PDF sometimes not sent after payment — Dompdf process silently fails after render

I have a custom WooCommerce plugin that generates a PDF voucher and sends it to the customer after payment. Most of the time it works perfectly, but occasionally, the email is not sent and no errors ...
Jakub Hopciaś's user avatar
Advice
0 votes
0 replies
69 views

Redis for woocommerce with IP based dynamic pricing

I want to experiment with object caching using redis server for a woocommerce store. However the store is using dynamic pricing, meaning that depending on the visitor's IP, the back-end serves the ...
zuko's user avatar
  • 11
-4 votes
1 answer
48 views

WooCommerce products only visible to logged-in users [closed]

I’m experiencing an issue where all my WooCommerce products are only visible when logged in as an admin, but guests cannot see them. All products are published, in stock, and have their catalog ...
Vignesh Kumar's user avatar
2 votes
2 answers
98 views

Custom WooCommerce Checkout Field Resets on AJAX Updates (Order Notes/Payment Changes)

I'm building a WooCommerce store that sells to local municipalities, so some orders need sales tax applied while others are tax-exempt. I've set up tax rates in WooCommerce settings standard rates for ...
Aatish Kumar's user avatar
0 votes
0 answers
68 views

Programmatically block WCFM vendor order creation on partial Stripe Direct Charges in WooCommerce checkout

I am building a WooCommerce multi-vendor marketplace using: WooCommerce (latest) WCFM Marketplace WCFM Stripe Split Pay Stripe Connect with Direct Charges and Express accounts When a customer ...
g1us1's user avatar
  • 9
0 votes
1 answer
88 views

Distinguish user creation (checkout process/simple registration) [closed]

In a WooCommerce e-shop I want to hook to woocommerce_created_customer filter and perform some actions but only when the registration came from a Checkout process - ie. not after manually filling in ...
Faye D.'s user avatar
  • 732
0 votes
2 answers
74 views

How to assign single product template to product by its category (WordPress/ WooCommerce/ Block theme)

I tried to assign single product template to product by its category. I had searched for similar questions but found answers in classic theme. Below are 2 examples of several codes that Gemini gave me ...
FUFY's user avatar
  • 19
0 votes
2 answers
118 views

Create a custom method for all existing product types in WooCommerce

I want to create a custom method I can use for any WC_Product class, so I can use $product->get_lead_time(); anytime I have a product object available. I currently have it working for Simple ...
Alexandra Chavez's user avatar
0 votes
1 answer
52 views

How can I get my CSV product file to show product attributes under taxonomy-identifiable field names?

In WooCommerce, how can I get my CSV product file (currently exported by the native Products Export button) to show product attributes under taxonomy-identifiable field names like this: attribute:...
christo's user avatar
  • 139
0 votes
1 answer
105 views

Sorting completed date in WooCommerce order list (admin dashboard)

I added a new column of completed date in the woocommerce order list page using the code here. The new column shows sorting buttons (up/down arrows) properly but when clicked, seems like it sorts on ...
FUFY's user avatar
  • 19
0 votes
1 answer
60 views

Getting WooCommerce "View Product" Link To Appear Everywhere

I have this code that I have added to WP site using the Snippets plugin. The code is intended to display a "View Product" link in addition to the "Add to Cart" button for ...
Delinx's user avatar
  • 55
2 votes
1 answer
81 views

Updating Woocommerce Product Attributes

I'm building a purchase order system for my Woocommerce store. Everything is working as expected except for product attributes. With my current code (shown below) the attributes are updated in the ...
AlexTSF's user avatar
  • 145
0 votes
1 answer
108 views

How to inherit ratings on WooCommerce variable products?

I've created several variable products in WooCommerce, grouping similar simple products that had ratings from the Customer Reviews for WooCommerce plugin. I have a feature that works perfectly, and ...
unity-student's user avatar
2 votes
1 answer
92 views

Woocommerce set custom field value from API

I have setup a custom field in the Admin Orders section of my Woocommerce site add_action('woocommerce_admin_order_data_after_order_details', function($order){ $pdf_url = get_post_meta($order->...
Sutra Wellness's user avatar
0 votes
0 answers
104 views

Woocommerce products batch update limitation: How to update more

I am creating a plugin to update products stock and regular price for now. I am using the batch update API endpoint as follow. I use a csv file with 3 columns product sku, stock and regular price to ...
Mehdi's user avatar
  • 1,797
0 votes
1 answer
101 views

Woocommerce block - useSelect select() argument

I'm digging in Woocommerce block creation I understand useSelect is very usefull to fetch woo data. Ex. select( 'wc/admin/products' ) to fetch getProducts() method, or select( 'wc/stor/paylent' ) to ...
jst's user avatar
  • 167
0 votes
1 answer
56 views

Automatically enable sold individually product settings

In WooCommerce, I'm selling only simple downloadable/ virtual products which can only be sold once per client. I found a snippet on stackoverflow (Automatically enable virtual and downloadable product ...
Mieke's user avatar
  • 1
0 votes
0 answers
78 views

Woocommere OAUTH Error: An error occurred in the request and at the time were unable to send the consumer data

I have successfully tested the WooCommerce OAuth flow on my local environment using ngrok, and it returned the consumer key and secret as expected. However, after deploying the same project to Vercel, ...
Osama Iqbal's user avatar
0 votes
0 answers
51 views

How to update attribute options from existing attribute?

I have a function that checks/creates or updates product attributes based on input. When this function first creates an attribute (let’s say attribute Color / pa_color with value Red) it works fine ...
Loderunner's user avatar
0 votes
1 answer
75 views

WooCommerce Plugin: needs_setup not triggering

Prerequisites [x] I have carried out troubleshooting steps and I believe I have found a bug. [x] I have searched for similar bugs in both open and closed issues and cannot find a duplicate. Describe ...
Alex000001's user avatar
1 vote
2 answers
153 views

Woocommerce wc_get_products shop page issue

I am working on a new website using woo and starting to use wc_get_products. I added this to the footer: // Clear the cache to prevent conflicts with subsequent queries wp_cache_flush(); // Reset ...
Joe's user avatar
  • 857
0 votes
0 answers
19 views

WooCommerce CCAvenue return issue: Cart empties and no order-pay page after failed/cancelled payment

– On checkout, after selecting CCAvenue, customer is redirected to gateway. – If payment is cancelled/failed, customer comes back to site but lands on Cart, and Cart is often empty (even for logged-in ...
Shweta Arya's user avatar
2 votes
1 answer
79 views

How to update order meta after completing order?

I am trying to save custom meta after order complete. Both of these hooks fire on my side, however update_meta_data in woocommerce_payment_complete_order_status_completed is never saved. Why is this ...
Toniq's user avatar
  • 5,136
0 votes
0 answers
31 views

Woocommerce hook new order and payment complete

I am using this hook to register user if it was guest checkout: add_action( 'woocommerce_new_order', 'ap_woocommerce_new_order',10,1); function ap_woocommerce_new_order($order_id) { $order = ...
Toniq's user avatar
  • 5,136
3 votes
1 answer
90 views

Show consent to receive ads in WooCommerce emails

I'm using a code that adds a checkbox with consent to send ads: //Additional consent checkbox for receiving promotional materials add_action('woocommerce_review_order_before_submit', '...
Dmitry's user avatar
  • 105
0 votes
0 answers
65 views

Show consent to sending ads on the Thank You page in WooCommerce

I'm using a code that adds a checkbox with consent to send ads. //Additional consent checkbox for receiving promotional materials add_action('woocommerce_review_order_before_submit', '...
Dmitry's user avatar
  • 105
-1 votes
1 answer
249 views

Upload multiple files when placing a WooCommerce order

I am using a code that adds a file upload field on the checkout page. How to add file upload to WooCommerce checkout? Many thanks to @LoicTheAztec for this code. I have created the files ...
Dmitry's user avatar
  • 105
0 votes
1 answer
87 views

Show the SKU only in an email to the administrator in WooCommerce

I use a standard code that shows product SKU in WooCommerce emails. add_filter( 'woocommerce_email_order_items_args', 'careless_add_sku_to_wc_emails' ); function careless_add_sku_to_wc_emails( $args ) ...
Dmitry's user avatar
  • 105
1 vote
0 answers
51 views

WooCommerce Blocks Checkout: "woocommerce_rest_missing_nonce" and 500 Internal Server Error on Order Placement

Context I am developing a custom plugin that integrates with WordPress core and WooCommerce. The plugin adds custom product calculation and cart functionality, but it is designed to work alongside the ...
Dragos Petrescu's user avatar
-2 votes
1 answer
64 views

Woocommerce - access meta data values using REST API

I am having a real struggle getting meta data values from woo commerce REST API in a fashion that makes sense and is reliable. I want to access the PayPal returned fraud data for an order so my staff ...
user30379416's user avatar
-2 votes
3 answers
106 views

Woocommerce my account custom menu item open in new tab

I'm using this code to add a new menu item to WooCommerce my account page menu. Is there a way to open my url in a new tab? (like target="_blank") add_filter( "...
Toniq's user avatar
  • 5,136
0 votes
2 answers
174 views

WooCommerce notification is deleted when updating the cart

I am using a custom code that shows a notification of the minimum order amount and blocks the checkout button if the amount is less. /* Minimum Order Notification */ add_action('...
Dmitry's user avatar
  • 105
1 vote
0 answers
144 views

Some woocommerce products are not showing with isotope filter

I'm listing products in WooCommerce using the isotope filter. However, if a product is linked to two categories, it's not listed. Those linked to a single category are fine. I have no idea. Could you ...
wws34's user avatar
  • 35
1 vote
2 answers
122 views

On woocommerce search custom taxonomy doesn't work with 'relation' => 'AND' but it works with 'relation' => 'OR'

I am trying to build search for woocommerce. I am using woocommerce 9.7 and latest wordpress. And the search i want is with multiple taxonomies (categories) so I registered 2 more taxonomies on top of ...
lonerunner's user avatar
  • 1,352
-1 votes
1 answer
160 views

How to exclude specific REST API endpoints from being cached by WP Rocket?

I'm using WP Rocket along with their helper plugin WP Rocket | Cache WP Rest API which allows caching of WordPress REST API endpoints. I’ve added the following filter to allow REST API caching: ...
Vineet SND's user avatar
0 votes
0 answers
93 views

Displaying WooCommerce Products in Quick View with Bootstrap Modal

I have a list of WooCommerce products. I've placed a Bootstrap modal button for each product. When the button is clicked, the modal that opens only displays the first product. I've added the IDs, but ...
wws34's user avatar
  • 35
0 votes
1 answer
67 views

How to attach Stripe customer to Payment Intent in WooCommerce Blocks for delayed capture?

I need to hold a Stripe charge and capture it later (only when a customer keeps the product). In WooCommerce shortcodes checkout, Stripe attaches the customer to the Payment Intent, so later capture ...
Awais Aezad's user avatar
0 votes
0 answers
32 views

Unable to get an https connection using Mamp

I am building a Ecommerce site using WooCommerce. I have set this up using Mamp but i am unable to get a https connection. I need this to import some products. Under the SSL tab i have setup a ...
Sjoerd Vermeijden's user avatar
0 votes
0 answers
62 views

Assign attribute terms to products using the term id

I have a multi-lingual site where some of the attribute terms have same value in both languages. I am able to create a translation of the attribute term with its own slug (it has the language code as ...
Olivier Janssen's user avatar
1 vote
3 answers
143 views

Change the position of a custom field within the billing and shipping forms in the WooCommerce Checkout Block

I wrote the tiniest plugin that adds a custom VAT field in the WooCommerce Checkout Block using woocommerce_register_additional_checkout_field that is hidden when the Company field is empty. Now I'd ...
Brampyr's user avatar
  • 13
3 votes
1 answer
124 views

Woocommerce Custom Payment Gateway with Custom Order Status issue

I am using custom Purchase Order based payment gateway method in Woocommerce and have registered my custom status status - Pending PO Verification for all orders made using this payment method. The ...
Abhinav's user avatar
  • 31
1 vote
2 answers
77 views

Get coupons code from email restriction using SQL query

I am attempting to adapt How to get coupons from email restrictions with efficiency in WooCommerce. I want to filter only for the customer email, without the voucher discount type. Currently my shop ...
Weetameal's user avatar
0 votes
1 answer
102 views

How can I translate JetEngine Dynamic Field values (from a custom query) into Persian inside a Listing in Elementor?

I'm working on a WordPress website using JetEngine and Elementor. I have created a custom query in JetEngine (via Query Builder) that fetches data directly from the database — specifically, ...
AmiR's user avatar
  • 23
0 votes
1 answer
135 views

woocommerce REST API - Find all products with a specific Meta data

I am having a problem trying to find products with a particular tag/ meta data. I am using Curl and want to find all products that match for a condition: i.e. Used or New condition. I have advanced ...
user30379416's user avatar
0 votes
0 answers
35 views

Elementor with WooCommerce single product page video

When using Elementor single product widget, is there a way to change product image and return your own content using php? I see that woocommerce_after_shop_loop_item_title hook does not work there. It ...
Toniq's user avatar
  • 5,136
0 votes
2 answers
127 views

Downloadable product served dynamically by external PHP script gives "file not found"

In my WooCommerce shop I need to sell digital files (JPEG images) that are dynamically served by a PHP script. (This is because the images come from a huge remote catalogue with 10,000s of images, ...
equin0x80's user avatar
  • 333
-3 votes
1 answer
159 views

Adding a vat custom field on WooCommerce checkout blocks

I want to add a custom VAT field on WooCommerce Checkout Blocks. I have followed the guides and faced two issues woocommerce_register_additional_checkout_field doesn't support group, and I want to ...
Seldimi's user avatar
  • 91
0 votes
1 answer
98 views

Woocommerce Mobile App order-receipt.php template

I use the WooCommerce mobile app on my Android phone to print receipts. I have modified this file to update the printed receipt to show fields that I need. \wp-content\plugins\woocommerce\src\Internal\...
Koops Coops's user avatar

1
2 3 4 5
660