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.

0
votes
0answers
21 views

WP - WooCommerce - Widget Logic

I am trying out the plugin Widget Logic. This is what I want to do: I have a filter that I want to show only on specific categories in the shop. I can use: is_product_category( array( 'cat1', 'cat2' )...
0
votes
1answer
23 views

Which hook should I use to capture $_POST('password') via profile update and password reset

I need to rehash the password which the user entered during Wordpress registration (I use WooCommerce) I'm successfully able to do this with the following: add_action( 'user_register', '...
0
votes
0answers
21 views

Echo/Print/Display selected attribute woocommerce

I installed the Woo Variation Swatches plugin because I have a product with a lot of colors attributes and I want that attribute to be listed as small color icons and not in a dropdown. I did it. The ...
0
votes
1answer
33 views

remove add to cart for free (0 $) product woocommerce

I use woocommerce. How to hide the "Add to cart" Button on a single-Product page IF the product is for free (0 $) . Have an idea to do it?
0
votes
1answer
23 views

Move add to cart in Woocommerce

I would like to have "add to cart" button nearby the price like in the picture. By default, the button is placed after the price in the code, and I would like to move the button in the same tag of ...
0
votes
0answers
9 views

On cart page how I can show specific category product on top Woocommerce

I have different categories in my woocommerce store and working fine I stuck on cart page. Issue case is I have 4 categories cat-a, cat-b, cat-c , cat-special all have products now I add product from ...
1
vote
1answer
43 views

Woocommerce get selected shipping zone id for the current user

How can I get the selected shipping zone id based on current user in WooCommerce? I tried the code below, but I didn't get the zone id from the cart page: $bh_packages = $cart->...
0
votes
0answers
10 views

Woocommerce: sql pivot row to column for orders

I'm trying to write a query which grabs associated order_itemmeta with orders. What I have works well but it only returns a single row. I need it to return all order instances of 'summer bay high ...
1
vote
0answers
28 views

Automatically running Scheduled Actions

Is there a way to automatically run scheduled action (Tools -> scheduled actions). At the moment it says they are 'Pending'. They work fine if I run them manually but I need it to run as soon as my ...
-1
votes
0answers
20 views

Fix Duplicate Content in Woocommerce Product

Everything was working well in my single product page and suddenly the description of the product began to duplicate the content of the entire post (instead of just the description). I noticed that ...
0
votes
0answers
15 views

WPBakery Grid Builder and badges for woocommerce

How to add for example the YITH badge for woocommerce to the WPBakery grid builder. I see there is option, in elements to add text block. But I can not find short code or something to put in.
0
votes
0answers
15 views

Change the woocommerce widgets “SORT BY” Links to some custom links

how can i change the woocommerce widgets "SORT BY" Links to some custom links but only for Home page not rest of site Widget i am using woocommerce widget [products limit="7" columns="4" paginate="...
0
votes
0answers
10 views

Woocommerce - Different product view based on user roles

I am currently working on a website for a client. He wants the products to be displayed in a table view for users with the ceratin role "resellers1" and "resellers2" and every other user will see the ...
1
vote
1answer
49 views

Dropdown menu on custom page with product to choose number of products per page

I have almost zero knowledge with Wordpress and Wocoommerce cores and api's so, please bear with me. I have showing ~140 products on custom page (e.g. not the default shop page for woocommerce) ...
0
votes
1answer
24 views

woocommerce subscriptions - get expiration date

Using the call back hook, I can get the subscription information of everything EXCEPT the expiration date. Any thoughts on how to grab this. This is what I have: function ...
0
votes
0answers
10 views

Woocommerce Bookings Customer Defined Blocks Not Working

I created a product and set all my availability settings (Global and product) to Time Range (All Week) 8AM to 8PM. My booking product only allows the user to select a date and the time selector never ...
0
votes
0answers
16 views

How to sell a bundled product, where the client can remove certain items

The Problem: I need to set up a woocommerce store where bundled items are being sold to returning customers. Once the customer deselects certain items the price changes. Also, the system needs to ...
1
vote
1answer
28 views

How to restrict access to image folder depending on whether product is purchased or not?

In WordPress I want to be able to sell sets of emoticons (png images). These sets emoticons are stored in a folder under the plugin (eg. wp-content/plugins/my-plugin/emoticons/set-1/happy.png) Some ...
-1
votes
0answers
11 views

Fancy Product Designer Image Issue

Any Help Highly Appreciated. The image with the URL can not be loaded into the canvas. Troubleshooting The URL is not correct! The image has been blocked by CORS policy. You need to host the image ...
-1
votes
0answers
11 views

How to check if multiple users checking out at once works when using WordPress Woocommerce? [closed]

I have a somewhat weird issue where my non-technical client is somehow convinced that when multiple users checkout at the same time, transactions don't go through. I think this is hogwash and I've ...
0
votes
0answers
14 views

Custom taxonomy in product url

I have a custom taxonomy for products, which i need to set them in product URLs as well. It will be dynamic. so for example This is what i want. https://example.com/taxonomy_value/product_name Right ...
0
votes
1answer
14 views

Woo Commerce using WP_Query to get products that match price range, with an additional required product attribute

I have code that successfully returns product within a price range. However, I need to also filter by a product attribute called 'size'. So I should get all products of a certain size between the ...
-1
votes
0answers
15 views

How to prevent stacking of a coupon with other specific coupon?

I've tried various plugin to sort this out but none of them seems to solve this issue. I'm using WooCommerce Extended Coupon Features PRO and I'm totally fine with it's working. All I need is to ...
0
votes
0answers
17 views

Wordpress and woocommerce impossible to set variable in admin ajax in plugi devlopment

i got a problem in my plugin development. My class got some variable and i want to stock product from woocommerce on it. I use ajax to search product on my database and it work fine, but when i call ...
0
votes
1answer
31 views

Woocommerce: limit user to see only the products he created

I have this code where the authors can see only own posts. I need the authors to see only the products they have created on woocommerce. I know the woocommerce products have no authors by default, but ...
0
votes
0answers
33 views

woocommerce image product add a class and data-src attributes

I'm trying to add a class lazyload and the data-src attribute to my product images (woocommerce). I've look everywhere and couldn't find a solution for this. I've try with some plugins, like a3 ...
0
votes
1answer
24 views

Send admin new order email to logged in user as well

I need to be able to send the admin email for a new order also to the e-mail address linked to the current logged in user. This is required as 1 account is for different people (people who give a ...
0
votes
0answers
5 views

WooCommerce Fundraising Affiliate Sales

I'm trying to find a solution that will empower members to sales products on behalf of multiple organizations. In our case there are multiple organizations with it's own members. Members sell our ...
0
votes
0answers
10 views

Help create shortcode get name and link of parent category and list subcategory of parent category and product of parent cat on woocommerce

Please help me create shortcode get name and link of parent category and list subcategory of parent category and product of parent cat on woocommerce I have code as function create_shortcode_product($...
0
votes
0answers
13 views

Customer Email Address

Here is my issue: A customer used the wrong suffix in his email address and I would like to correct his order record for order notes. Is this possible to edit? Using woocommerce.
0
votes
1answer
24 views

How do I add a text input field for customers to leave a note on a single WooCommerce product page?

I'm constructing a little webshop using WordPress, WooCommerce and a theme called Storefront. I would like to add the ability for clients to add a custom note for the product vendor on the product ...
0
votes
1answer
21 views

Woocommerce singe product custom gallery output works just on the first slide

I copied the "product-image.php" to my theme folder in order to change the HTML output a bit, so instead of using wc_get_gallery_image_html I created my function and changed the output there. Here's ...
0
votes
1answer
24 views

How to remove the WooCommerce Product->Category thumbnail from admin [closed]

I've successfully removed the thumbnail from the Admin->Products add_filter( 'manage_edit-product_columns`, 'myRemoveProductColumns' ); function myRemoveProductColumns( $columns) { unset( $...
0
votes
0answers
17 views

Why does my numeric meta query work only on one meta key and not the other?

I have a meta query I'm building as part of a woocommerce product filter. We have two meta queries that can run together or separately depending on what filtering is selected. The intention is to ...
0
votes
0answers
14 views

WooCommerce product sorting VERY slow

I have 2800 products in my WooCommerce store. Trying to use the All Products > "Sorting" utility in the backend to edit the desired order for them to appear is excruciatingly slow. Even if I filter ...
0
votes
1answer
12 views

Product related to post by title

How to insert to single post related woocommerce product with the same title? Best would be something like WC shortcode [add_to_cart id="XX"] but like this [add_to_cart title="XXXXXXXXX"]
0
votes
0answers
9 views

WooCommerce Subscriptions: Show monthly Price for annual Product

Using WooCommerce Subscriptions, is there a way to show a monthly price as well as a "total duration" price? On my site I have subscriptions for a month and others for a year. Those for a year look ...
1
vote
0answers
18 views

How to delete all customer user account that haven't placed a single order?

Recently I've had an influx of spam users registering on my Wordpress website and I am trying to delete them all if: they have a "Customer" role haven't placed at least one order before As I could ...
0
votes
0answers
17 views

WooCommerce product id as permalink

Currently, the WooCommerce product permalinks is '/product/shoes-3' , '/product/cup-12' etc. How to change product permalinks to only be like /p/product_ID , for example '/p/1122' without using any ...
0
votes
0answers
13 views

Connect Custom Post type to Woocommerce

I have a custom post type called Vendors with several custom fields like logo, name, address e.t.c. How is it possible to connect a product of woocommerce with the Vendors cpt and bring some of the ...
0
votes
1answer
22 views

Wordpress/Woocommerce Classes and adding new properties

This is more a general question about classes, I am experimenting with small additions to Woocommerce via custom plugins and wanted to look at vendor functionality. To do this I imagine I will need to ...
0
votes
0answers
12 views

Pay for publish post on front

I have the option of adding posts on the front via acf_form. I would like to implement the option of adding a post (for some user roles) after completing the order (preferably a woocommerce), so... ...
0
votes
0answers
8 views

How to add all products from one product category instantly?

I am configuring an e-commerce website that uses Woocommerce and the website sells individual items and collections of items. Is it possible to purchase a collection of items based off of it's product ...
0
votes
0answers
4 views

Woocommerce IP Blocking geographical area / cities

I am looking for input, an opinion or your experience; I would like to be able to show website surfers who come across my website or woocommerce site different sites based on IP. I have an e-commerce ...
1
vote
1answer
17 views

Woo create order only after payment done

We have setup a Woocommerce shop with different payment methods (stripe, Klarna, PayPal). When the customer clicks on the final button for the order, the order is being generated in woo. Then an ...
-1
votes
1answer
32 views

How to disable the “Upgrade or Downgrade” button in “My account” of WooCommerce Subscriptions

I have a Wordpress/WooCommerce webshop and I use WooCommerce Subscriptions. I want to disable the "Upgrade or Downgrade" button in My account > My Subsccriptions for users which have a specific user ...
0
votes
1answer
15 views

currentURL is not defined

I'm using Woocommerce with Sensei. When I go to Checkout the payment method keep loading with spining and don't let me finish the payment. In the console I get the error: Uncaught (in promise) ...
0
votes
0answers
30 views

How to be able to edit custom address fields in WooCommerce admin?

I'm Dutch and in The Netherlands we use a different address format than in the US. We'd have to spit the street name and the house number. In order to fix that I used "address line 1" for 'Street name'...
0
votes
0answers
8 views

Offer just for specific zip code

I want to restrict the offer(like try and buy) given by my woo commerce site to specific pincodes. I tried in woo commerce plugin but that makes the offer compulsory for the persons living in that ...
0
votes
1answer
30 views

How to send an automatic email to a custom field in Woocommerce order meta 2 weeks after a product is bought

I am using woocommerce to build a website where people can post gigs (products) and people interested in those gigs can pay to contact who posted the gig. I have a custom field called customer_email ...