All Questions
Tagged with php woocommerce
19,279
questions
0
votes
0
answers
12
views
How to sort WooCommerce variable products from max variation price in a custom query
I am trying to sort WooCommerce variable products from maximum variation price (my website contains simple and variable products).
My custom query below is sorting products by price, but the issue is ...
0
votes
0
answers
17
views
woocommerce_cart_item_price doesn't update mini cart subtotal
I am adding an array of free gift products to the cart when certain conditions are met. I have used woocommerce_cart_item_price to set the price of the products in the mini cart. However, it is adding ...
-2
votes
1
answer
29
views
Limit the number of characters / words in WooCommerce product backend [closed]
When we create a product in WooCommerce, I want to :
limit the product title to 30 characters
limit the product short description to 50 words
I found many shortcodes that limits that in the frontend,...
2
votes
0
answers
19
views
prevent change quantities on cart page
I'm using combo offer woocommerce plugin to make a bundle product with specific item number of linked products.
I had unchecked this option:
"Buyer can change the quantity of combo products?"...
2
votes
1
answer
13
views
Custom Low Stock availability string for WooCommerce product variations backorders allowed
I'm looking to edit the woocommerce low stock message. But only for product variations which are set to allow backorders.
The message should include the stock level, and only appear when the stock ...
0
votes
0
answers
19
views
Problem with ACF Date Range and Repeater Integration in WooCommerce
I am using ACF to create fields integrated with WooCommerce. I am struggling to manage the tour status for each period in the Week Days mode:
The tour has 2 modes: Week Days and Exact Dates.
A tour ...
1
vote
1
answer
33
views
WooCommerce Products - Always ensure that SKU contains 13 digits
When we create or update a product in WooCommerce, if the SKU (_sku) field has less than 13 digits, we have to fill in zeros to always reach 13 digits.
For instance, if the field contains nothing, ...
0
votes
1
answer
54
views
Woocommerce Single product Hooks issue: Replace add to cart button
I have created a new FUNCTION for my product page.
It says WHEN _shipping_costs is empty (no digit) than change the button on "price on request".
Archive page
On the archive page you can ...
0
votes
0
answers
33
views
Change currency in WooCommerce orders without affecting the total
I'm making a big payment gateway for WooCommerce which has 4 sides:
first one is client side which will send data,
second side is main server which receives data and depending on some options it ...
0
votes
1
answer
22
views
Woocommerce custom e-mail status not working version 9.1.2
I am currently facing a problem.
My Custom e-mail status used to work but out of nowhere it stopped working. I am able to set the status, but it doesnt send an e-mail. The other standard status work ...
0
votes
0
answers
29
views
Woocommerce custom checkout place order button + Cartflows
I need to change submit button text. I am using CartFlows plugin on WordPress with Woocommerce.
In CartFlows setting I can add "custom text on place order button" but it does not work. It ...
-3
votes
0
answers
33
views
Importing large product CSV file with intermittent power outages [closed]
I'm managing an e-commerce website using WooCommerce and need to import a large number of products (104,551 rows) from a CSV file. I'm located in Ukraine, where we're currently experiencing frequent ...
1
vote
1
answer
29
views
Add attendees emails as CC for WooCommerce processing and completed email notifications
I'm currently trying to add emails from my custom checkout field to the list of cc recipients for processing and completed order emails.
I have used this code for creating repeating sets of custom ...
0
votes
0
answers
28
views
WooCommerce default address fields customization [duplicate]
I customized Woocomerce's default address fields. I selected the Address1 and City fields.
Fields save data seamlessly. When the first page is loaded in the My Account>Address>Address edit, ...
1
vote
1
answer
26
views
Order save hook user permissions check for WooCommerce HPOS
Before HPOS the order save hook can be checked this way:
<?php
use Automattic\WooCommerce\Utilities\OrderUtil;
add_action('save_post', 'my_save_wc_order_other_fields', 20, 1);
function ...