Stack Exchange Network

Stack Exchange network consists of 175 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.

1
vote
1answer
28 views

Query WooCommerce orders grouped by several order statuses

As I can see from WooCommerce documentation, WC_Order_Query allows only one single order status to be passed as query parameter. Has anyone find some workaround to allow querying several order ...
1
vote
1answer
15 views

Woocommerce: Is it possible to overide the settings for allowing to purchase out of stock products

So, like the title says, I am looking for a way to override the setting that makes a products that is out of stock not purchasable. I know I am supposed to use the "allow on backorder" setting to do ...
1
vote
1answer
29 views

How to remove product base from WooCommerce product permalinks

I read here some information of the issue but didn't find any solution. Is it possible to remove product base using some lines of code for example a filter in functions.php of my theme or plugin? So ...
0
votes
0answers
29 views

Increase the download speed of a large number of variations in WooCommerce

Hello everyone from Russia. I have 2700 product variations. When I change "woocommerce_ajax_variation_threshold" to 2700, the product page is loaded for 1 minute. How to speed up this time? Or, for ...
0
votes
0answers
29 views

Use woocomerce shop filters on other pages

I can’t do a page with filters like shop. I want to do a page with promotional products similar as shop page but filters doesnt work and I can´t This is a image of my shop page : This is a image ...
0
votes
0answers
9 views

WooCommerce : Create email for custom status, appear in backoffice

I need to create an email which would be sent to customer when switching to a custom status. Does anyone know a good and updated tutorial to do this? Thank you :)
0
votes
0answers
18 views

Checkout Page is blank woocommerce

checkout page is blank but once login through admin and other register customer account its showing but for not register user its blank. I have checked in setting account and privacy advance options ...
0
votes
0answers
13 views

How to properly add custom product meta to order meta in woocommerce

I have the code to add some custom product meta data to cart and then later pass them to order meta. Everything works fine but it feels like the add to cart process is quite slow which makes me wonder ...
1
vote
1answer
19 views

Changing Woocommerce language without changing the language in Dashboard admin Wordpress

I want woocommerce to change the language to Vietnamese, but the wordpress admin page is still in English language? How to do that? Thank a million.
1
vote
1answer
23 views

Adding Custom Text Area to WooCommerce Product

Some of the products in my store has quite long descriptions. Therefore I want to use the main Description for just a basic description and add an extra tab for i.e. Technical Specs. I'm using the ...
0
votes
1answer
16 views

How to change a WooCommerce Subscription Deposit and Monthly Payment?

A customer wants some specific/bespoke discounts to the subscription service they sell. I cannot find a plugin to do what they want, so thought I would code it myself. But I cannot find how to edit ...
-2
votes
0answers
15 views

Woocommerce plugin suggestion [closed]

Can you please suggest me which Woocommerce plugin meets my requirements. I just want to have category based drop-down then when a category is selected then it should show sub categories. If a value ...
0
votes
1answer
16 views

Displaying Woocommerce Product Category in Wordpress

I'm trying to create a custom theme. I added theme compatibility with Woocommerce to my theme, and am trying to create a product loop. I want to filter my loop so it only displays post with the ...
0
votes
0answers
13 views

Woocommerce Auto Add to Category based on parent category

I'm loosing my mind with one problem. We have that structure for Woocommerce Products Categories: Main category - Subcategory 1 - SubsubCategory1 - SubsubCategory2 - ...
0
votes
0answers
18 views

WooCommerce product archive url without value / all values

Is is possible to list all products by a certain attribute without specifying the term value ? Right now, accessing site.com/attribute_name/term_value/ returns as expected. Accessing site.com/...
0
votes
0answers
28 views

Visual Composer css styles only working on standard post page?

I'm trying to integrate Visual Composer with a WooCommerce Multivendor site to enable vendors to design landing pages for themselves. Everything works fine until I'm trying to show a page created by ...
1
vote
1answer
30 views

Checkout is blocked with blockUI when using action woocommerce_cart_calculate_fees

I am using the following code to add custom fee on checkout: function woocommerce_custom_surcharge() { global $woocommerce; if ( is_admin() && ! defined( 'DOING_AJAX' ) ) return; if ($...
0
votes
0answers
11 views

WooCommerce duplicate refund orders

I've created a query to search for orders based on custom order metadata, which works great! I then echo any data from the order I want to which is fine. However, I have a problem when I refund an ...
0
votes
0answers
16 views

How collect all taxonomies on one menu

I have some post_types, they have some taxonomies. I want collect all taxonomies on options page and. How collect all taxonomies on one menu "Options"
0
votes
0answers
20 views

Woocommerce reduce stock on custom order status & prevent double stock reduction

Hi im using custom order status "posnp" i would like stock to be reduced on this custom status. Also orders with status "posnp" can be edited in POS system so i need to prevent stock being reduced ...
0
votes
2answers
30 views

How can I add a <br> so i can show sale price under normal price

I need to show sale price under normal price, not on the same line
0
votes
0answers
7 views

Coupon code for woocommerce

This is my first time working with woocommerce and loving it so far. I'm not quite sure how the coupon system works.. but I need the following to be generated: 1) Generate a coupon code for 10% off ...
0
votes
1answer
16 views

How to display a custom product field value of a specific category on a Woo Commerce checkout page?

Good day or night, I would like to display a custom product field value of a specific category (Shirts) on a woo commerce checkout page. I've succeeded in checking for the category, but my attempts ...
0
votes
1answer
22 views

How update price for variable product

I have a problem with update price for variable product update_post_meta( $post->ID, '_regular_price', (float)$meta_value ); update_post_meta( $post->ID, '_price', (float)$meta_value ); I ...
1
vote
1answer
45 views

Remove action on product archive page [on hold]

I have a product description which is hooked into my product archive page in the following way by my theme (The7): /** * display short desc hook. * * @hooked woocommerce_template_loop_rating - 5 *...
-1
votes
0answers
10 views

Exclude atribute from variation

Product with three attributes: type(A, B) size (L,XL) color(Blue, Black) How to make this variations: A L Blue A L Black A XL Blue A XL Black B L - hide colour select B XL - hide colour select
1
vote
1answer
28 views

WooCommerce - Flat rate shipping based on X quantity steps?

We need to run WooCommerce flat rate shipping rate based on every X items in the cart, for example: 1-5 Items: Delivery = £5 6-10 Items: Delivery = £10 11-15 Items: Delivery = £15 and so on… It's ...
0
votes
1answer
22 views

sessionStorage saves input value in browser but it is not loaded in the form field

I am trying to save the input value of form fields but only one of the fields returns the value on page refresh. I can see the input value of the second field in sessionStorage in chrome but it is not ...
-2
votes
1answer
17 views

Create a shortcode to show product tag name on tag archive

I'm trying to build a global description for my product tags. So they will have a general description with shortcodes on it showing the exact tag name. For example: Buy [tag_name] products I'm ...
0
votes
1answer
30 views

Why does admin-ajax load slow and what are ways to speed it up?

I am developping a theme for wordpress which uses woocommerce. Currently I have developed a new page where I show the products. Initially I did the page and the filters for categories without using ...
0
votes
2answers
33 views

Check if page is a woocommerce attribute

I'm trying to figure out how to customize the attribute page (for example, if i click on a link to the "length" attribute with a term of "7 inches", wordpress will echo all products that have a length ...
0
votes
1answer
20 views

Benefits over using object method over property from $product?

I'm grabbing products from wc_get_products() and looping through them to display information in a foreach. Are there any benefits (performance or otherwise) to using $product->get_name() over $...
-1
votes
1answer
25 views

Custom access given to Admin dashboard

In my site I like to give admin dashboard access to Staff members,But in some custom ares should be denied.For example Like blue color area can be access but red color area should be denied. How can ...
0
votes
0answers
5 views

Woocommerce variation dropdown showing the full image instead of product details(for mobile view)

I am using the fastor wordpress theme and on the product page when I select the product variation on mobile view it redirects to the full image instead of showing the products details. http://speed-...
0
votes
1answer
17 views

Remove filter parameter from Link URL

I found by scanning my website with tools like ryte.com, that i has over 48k Sites / Links. I only created like maby 25 Websites. After searching for the issue, i found out the the category pages, ...
1
vote
1answer
53 views

Replacing a plugin function with a custom renamed function doesn't work

With WooCommerce and WooCommerce Bookings plugins enabled, I am trying to add a text line above the product time picker section to advise the customer that they need to select one of the options. I ...
0
votes
0answers
17 views

Can't find a hook that triggers when adding a product in edited order (admin page) [closed]

I've tried for several days to find a hook that triggers when adding a product in edit order (woocommerce) admin page. Anybody got any idea?
0
votes
0answers
14 views

Add a custom variable to Woocommerce Follow-ups plugin

I am trying to add a custom variable to Woocommerce Follow-ups plugin. In the documentation they have created a sample function for this witch can be viewed here: https://gist.github.com/75nineteen/...
1
vote
2answers
37 views

How to remove the woocommerce_checkout_process action hook in woocommerce if particular project in cart [closed]

I need to remove checkout page field validation if a particular product is in the cart. Plugin code : add_action('woocommerce_checkout_process', 'my_custom_checkout_field_process'); function ...
1
vote
2answers
50 views

Hide tabs on woocommerce product editor for user role

I need help how to hide custom product data tabs (created by plugins) for custom user role on product page editor (see image). I think it suppose to be done by modifying its CSS and apply it on ...
0
votes
0answers
13 views

WooCommerce product details page category display

WooCommerce product details page category display category tree like parent display first and child display second
0
votes
2answers
32 views

View all button on product page

I want to add view all button on my woo-commerce product page after pagination.after clicking the view all button all product will be open.
0
votes
1answer
44 views

Woocommerce - Default product image by user role

I would like that only the user role 'customer' see the product images and all the other roles see a default product image. I am searching to do this with no luck. Can someone help me please? I ...
-1
votes
1answer
27 views

password_reset doesnt work

Im trying to use $_POST method after password reset submit action here is the code add_action( 'after_password_reset', 'action_function', 10, 2 ); function action_function( $user, $new_pass ){ if ...
0
votes
1answer
22 views

WooCommerce Description and Short Description <p> tags removal

When adding content into the description and short description fields for a product, line-breaks and tags are completely removed from the markup. Other than installing Advanced TinyMCE, is there any ...
0
votes
0answers
9 views

what make difference between shipping methods for a zone when a create order with woo api

please help ,when i decide to create an order i found that i have to specific shipping_lines "shipping_lines": [ { "method_id": "flat_rate", "method_title": "Flat Rate", "total"...
0
votes
1answer
20 views

I am trying to make a field show and save from quickedit screen

I have a select box with some options. It appears in the normal product edit screen with the following code. function we_skroutzxml_custom_availability() { woocommerce_wp_select( array( ...
-1
votes
0answers
18 views

Can I change the name of “order” to something else in woocommerce new order email?

We would like to have different name for the title "Order" in the email to the customer. can I rename it somehow?
1
vote
0answers
37 views

WooCommerce Customer Role Delete Custom Post Type

WooCommerce customers are creating custom posts using Gravity Forms and then the customer is assigned as the author of the post. The custom post type is set up using the CPT UI plugin. I have this bit ...
0
votes
0answers
34 views

WooCommerce 3+: Get Order Items

I want to sell a CPT "bet". So if you buy the product you will be enrolled and eventually get a payout. My problem is that I need to update the post which was bought and increase the payout value and ...