The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [woocommerce]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
17 views

When Free shipping is available hide other shipping methods except Local pickup in WooCommerce 3.7 [duplicate]

Using "When Free shipping is available hide other shipping methods except Local pickup in WooCommerce" answer code, I would like to show Local pickup and free shipping when free shipping is available (...
-1
votes
0answers
20 views

How to fix blank woocommerce dashboard?

I've installed Woocommerce on my WordPress website. When i click on Woocommerce > Dashboard, It flashes some store informations ( orders, revenue, proft...etc) and quicky disappears in a second. On ...
0
votes
0answers
16 views

woocommerce remove last sub category from product url

I am working on migration site. after migrating i am trying to make url look same as live site This is current url: https://photoland2.etrafficgroup.com.au/frames-and-albums/frames/wooden-frames/106-...
0
votes
0answers
31 views

pagination woocommerce i can´t do it

hello i trying to do pagination with php and woocommerce and wordpress this is my nav pagination <div class="nav-links"> <a class="next page-numbers" href='<?php //...
-1
votes
0answers
7 views

How do I display category image on Product Archive (not on particular category page but on SHOP page)

I found code snippets for displaying category images when on specific category archive, but how do I display images of all categories when I am on my shop page - Product archive? I set the "Display ...
-1
votes
0answers
7 views

How to use use Flatsome search filters for connecting shopping bot plugin

We've built a WooCOmmerce site around Flatsome and need an appropriate search filter for the site that would have the search ability that can show search parameters in the URL. Something like: https:/...
0
votes
0answers
17 views

REST API - Cart shipping methods with label and rates

I am developing mobile application from my woocommerce store. I am able to add product to cart but I am not able to count shipping methods for that cart. Whenever I retrieve shipping methods it ...
-1
votes
0answers
12 views

How to duplicate a custom category and rename the duplicate using WooCommerce

I had a custom category created that goes along with a custom review system. How do I make a duplicate of this category and rename it so I can use it on a separate page?
0
votes
0answers
44 views

Order Woocommerce Products by On Sale and Alphabetically

I'm trying to order products by on sale first and regular priced products second. Both have to be sorted alphabetically in ascending order. On the website the on sale products are first but they are ...
0
votes
0answers
17 views

AJAX to add to cart multiple products woocommerce

I found some AJAX on here to add a product to cart through WC through a button click, and I am trying to modify it to be able to add multiple products with the single click. I am not super familiar ...
0
votes
1answer
36 views

How to speed up “My Account > Orders Page” on Site with More than 200,000 orders?

On my account>orders page, the slowest query is the following: SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE 1=1 AND ( ( ( ...
0
votes
1answer
35 views

Custom product loop avoiding duplicates

I am trying to create a product loop based on an attribute value from (pa_product-series). many products can have the same value, but I only want to return one from each...avoiding multiple products ...
0
votes
0answers
28 views

Is it possible to echo a woocommerce prouct attribute discription?

Rather than displaying the attribute name I would like to display it's description. Is this possible? function woo_specifications_product_tab_content() { // The new tab content global $product; ...
0
votes
0answers
28 views

Woocommerce - Remove cart button depending product (post) status

I created (copied) a custom post status for my old/discontinued product in my function.php and everything is working fine. Now, I want to make those old product unpurchasable by removing the cart ...
0
votes
0answers
20 views

Append text to a class in wordpress

I am trying to append a custom text to a wordpress class. For example there is a class "payment_method_klarna_payments_pay_later" for klarna payments (in woocommerce checkout page) and I would like to ...
0
votes
1answer
23 views

In woocommerce cart item we can add custom text but how can i add custom link?

My goal is in cart item i have to show one link with each product. - on cart page - on checkout - on order summary in back-end and when I click on link it open the link target website or file right ...
1
vote
1answer
38 views

How to access custom order item meta data from a meta key in WooCommerce?

I'm trying to display some custom meta data that's associated with the shipping on an order in WooCommerce. Here's the entire story of what I'm doing (so it might help someone else, and so you know ...
0
votes
0answers
13 views

All settings of my plugin disappear on its settings page

so I am currently working on building my first plugin. I followed a tutorial to make a settings tab in the woocommerce settings tabs. It worked once, but when I saved a setting, all elements of the ...
0
votes
0answers
18 views

How to make 2 separate pages have 2 separate sorting default options

I currently have my site on a custom default sort with WooCommerce. I need one page to have a different default sort without changing the other. I want this solo page to be sorted by average rating. ...
0
votes
1answer
17 views

Wordpress Performance and bulk edits

Should Wordpress slow down and throw 502 and 504 errors , when 5-6 people simultaneously are making bulk edits on the site on different/separate accounts? It's a Woocommerce site with 600 products on ...
1
vote
1answer
30 views

Exclude products with a stock lower than the low stock threshold from the shop loop [closed]

On our Shop page, we have various badges (things like "Series 1") that, when clicked, link to their respective product tag pages. However, we want a "low stock" badge as well. The problem is that we ...
0
votes
0answers
22 views

Display products with unique attribute value on product archive page woocommerce

We have 40000+ products on our site and have a custom product archive page for manufacturers. Each product per manufacturer has an attribute 'pa_series' that they belong to. Some series have 100's of ...
0
votes
1answer
20 views

Customize Add to Cart Button on single product with variable prices

Customize Add to Cart Button on a single product with variable product. In my themes woocommerce folder this is the hierarchy of the file → I have used the same hierarchy as in the woocommerce ...
0
votes
1answer
29 views

How to change user role after login?

I am working on a wholesale site and want the site to automatically change the user role from customer to wholesale customer after login. This will allow the wholesale customers to see wholesale ...
0
votes
0answers
16 views

Allow user to manage reviews but not products

I'm trying to create a role that grants access only to the comments section of the admin dashboard and allows the user to approve the reviews on the products without allowing them to edit the product ...
0
votes
1answer
19 views

Delete comma in front of currency woocommerce

On a website i am currently working on i cannot figure out/remove a comma in front of my € sign. Prices look like this: 8,67 ,€ everywhere. It really start to working on my nerves right now because ...
1
vote
1answer
15 views

Adding product SKU before cart item name in WooCommerce

I have this snippet that adds product SKU after cart item name in cart, mini-cart and checkout: function show_sku_in_cart_items( $item_name, $cart_item, $cart_item_key ) { // The WC_Product ...
0
votes
0answers
7 views

Woocommerce Product Name in Email Link

I'm adding price on application to some products in my woocommerce store and I'm setting up a mailto link on the product page. Is there a way I can include the product name in the email subject? I ...
0
votes
0answers
6 views

How to get $Product_id every time when $product-> set_price happens

I am writing an API plugin. Every time a product or quantity changes in woocommerce, I need to export a new price to the server. Also in the API there is import, which I will conduct through cron. ...
0
votes
0answers
13 views

Sudden Missing Content

Yesterday the website was working perfectly but come this morning the menu has disappeared from the front and backend plus all products have had their chosen categories unassigned. Screenshots ...
1
vote
1answer
37 views

Woocommerce Product Price Inserted programmatically doesn't get displayed In Single Product Page

I'm trying to scrape a price with simple html DOM and set it as regular product price in Woocommerce. Here is my actual code: //Starting scrape $html = file_get_html('http://sitenam.com/page-1/'); $...
0
votes
0answers
18 views

How to track product price changes?

I am writing an API plugin. Every time a product or quantity changes in woocommerce, I need to export a new price to the server. Also in the IPA there is import, which I will conduct through cron. ...
0
votes
0answers
20 views

WooCommerce free shipping twice a week

I have a Woocommerce store and I want to Free shipping (on all products) but only twice a week. The days can be defined (like Tuesday and Wednesday). So, free shipping should be applied on Tuesday ...
1
vote
1answer
16 views

How to toggle between two custom fields in WordPress woocommerce 'WC Product Field Group' plugin?

I have a full suit tailoring WordPress website and it using woocommerce plugin. I need 2 custom field groups to show in single-product page. Custom Measurements (Precise) In this method the client ...
0
votes
0answers
10 views

Change Tax according to vendor product on shipping

I am trying to add tax functionality according to vendor product and vendors have allowed different shipping address. I have added the functionality for vendor to select specific tax location and on ...
0
votes
0answers
10 views

Woocommerce Templates - How do I change page template layout? How do I edit shop page?

Ok, forgive my frustration. I am going absolutely bonkers with this. Where the hell do I edit the page template (layout) for the shop page? I realize (now, after much frustration) that it default ...
0
votes
0answers
20 views

Display products by attribute on category pages

I'm looking around a solution for displaying products by attributes (pa_size and pa_color) on the product category pages. I have too much color and size options for my products. So, i want to create ...
-1
votes
1answer
21 views

Woocommerce - Shipping tax class based on cart items not using the highest tax available

We have the "Shipping tax class" option on "Shipping tax class based on cart items". When I add a free tax product to the shopping cart and a 21% tax product to the shopping cart together, the total ...
0
votes
0answers
17 views

Add product to order and recalculate after product is loaded in the list

I have a custom e-mail sent to the admin, with a link to create a new order with a selected product and customer. post-new.php?post_type=shop_ordert&add_product_id={ID}&add_customer_id={ID} ...
0
votes
0answers
13 views

How can i override a function of a child class in Woocommerce WC_Order_Item_Product

I am making a WordPress plugin, I register a Custom Post Book, and assign this CPT as WooCommerce product by extending this class WC_Product_Data_Store_CPT, everything is working fine. The problem is ...
0
votes
0answers
8 views

Is there a way to use an html/php form to dynamically set the parameters for a woocommerce product?

I am currently doing a website for a courier company that has a very complicated form for processing orders. I was previously using eForms, but it couldn't do what I needed it to do. At the end point ...
0
votes
1answer
12 views

Set _regular_price 0 if empty in woocommerce product

anyone suggest me a proper woo commerce filter for set _regular_price = '0' if empty ? i want to display 'Add to cart' button even after price is empty or zero for a product. Thank You
0
votes
1answer
22 views

Hide price and add to cart button on product page only

I’m using Datafeedr to show price comparison sets on a product page. The price comparison table opens up dynamically once the page is loaded. But because I want people to follow the link to the ...
0
votes
0answers
9 views

WooCommerce display custom checkout field on my account orders table

I've had a good root around and have got so far, but am now a bit stuck. I started with the code snippets plugin and then found a few bits on SkyVerge: https://www.skyverge.com/blog/adding-columns-...
1
vote
2answers
52 views

Display related products based on 2 specific product attributes values in WooCommerce

I am looking for solution to display related product by multiple product attributes. I've tried "Display Related products for a specific product attribute value in single product pages " StackOverFlow ...
0
votes
0answers
9 views

Divi - Mini cart count does not update

I'm using Divi Theme and I'm trying to make update the cart count in the header without refreshing the default Woocommerce shop page.
3
votes
3answers
41 views

How to iterate through custom posts and add the title to an array

I am trying to query some custom posts so that I can iterate through them, extract the title of ecah and add the titles into an array. The reason I am doing this is so that I can then create a select ...
0
votes
1answer
20 views

Temporary access to page with URL sent to email

I want to protect a certain page with a password. The thing is that I want to get it unlocked to users who have an active booking (I'm using WooCommerce Bookings). I have thought that a good idea ...
0
votes
0answers
13 views

Parent category as WOOCommerce Categories widget title

I'm really not a developer, but this is something I expect not to be too hard to achieve :-) I really don't know where to start, so that's point 1. I read all of the topics about dynamically changing ...
0
votes
0answers
14 views

Is there any sales countdown available for woocommerce?

I marked in the red circle, Please anyone let me know if any plugin available like that! In advance thanks by - Tyler Soffiantino :)