Stack Exchange Network

Stack Exchange network consists of 174 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
8 views

Can't open checkout select element on mobile

When I try to open the "country_select" element on my checkout page on my iphone it won't work. It works fine on desktop. When I click on the element in mobile view it only zooms in.
0
votes
0answers
22 views

Force selected attribute variable of a product for all products in Woocommerce

If a custom chooses variable blue color of product, in all other products blue color variable should be forced (auto selected) If this possible how can I do it? Thank you
0
votes
1answer
16 views

WooCommerce - Conditionally enable shipping for virtual products

I am currently enabling shipping for virtual product in WooCommerce by inserting the following in my functions file add_filter( 'woocommerce_cart_needs_shipping_address', '__return_true', 50 ); Is ...
0
votes
1answer
84 views

In WooCommerce product archive, how can you also set the quantity to be added to cart by typing, instead of just by using +/-?

As it stands right now, in WooCommerce 3.5.1, at product archive (the /shop page), if you use the +/- buttons to set a quantity before clicking "Add to cart", all is fine. But if you try to actually ...
0
votes
2answers
37 views

Woocommerce Category Sort Dropdown

In Woocommerce Category page default sort dropdown has like below options. My question is what/how products sort by Popularity ? Not a code What is the measurement ? like if sort Price: Low to High,...
0
votes
0answers
14 views

Woocommerce refund tax line items meta issue

I am trying to add some functionality to refund orders programmatically. I have found some code online in several places that say to use this for the tax refund portion. $tax_data = $item_meta['...
0
votes
0answers
13 views

WooCommerce Switch Subscription

Is there an existing hook or function that I can use (PHP) to add a product/order to an existing subscription or perhaps to switch a user's subscription from one product to another?
0
votes
2answers
66 views

WooCommerce get physical store address

In WooCommerce admin settings (/wp-admin/admin.php?page=wc-settings) there are several fields to set the store address (street, city, country). How can one retrieve this in a theme's templates? I ...
1
vote
0answers
46 views

Add custom CSS class to product images

I would like to add a custom CSS when displaying product images. E.g. when calling the woocommerce_get_product_thumbnail function. I've tried solutions like this: Add CSS class to every image but ...
0
votes
0answers
16 views

wordpress site auto redirect to another site when I enable woocommerce

When I enable Woocommerce this message will show at the top of my website backend: Your store does not appear to be using a secure connection. We highly recommend serving your entire website over an ...
0
votes
1answer
19 views

How to customize product at cart page

I want to add some extra field in the cart page. i mean when a user add some product into cart and pressed view cart button then he can see his selected product with some default field image product ...
0
votes
1answer
17 views

WooCommerce Custom Pagination

Can anybody help me with a situation I have on my custom archive-product.php? I am trying to add pagination to my grid I have made but do not know where to start. This is the code for my products: &...
0
votes
0answers
14 views

Variable function names

I am working on a plugin that will add messages to a WooCommerce product at set places on a single item/product page and run into an issue that to be honest I have never needed a requirement for in ...
0
votes
1answer
19 views

Query child posts with tax query on parents

I have this WP_Query: new WP_Query( array( 'post_type' => 'product_variation', 'post_status' =&...
1
vote
1answer
34 views

Different translations for the same plugin inside a multisite

We have a multisite solution, inside this solution there are two WooCommerce shops. Both are in Dutch. The way they approach people is different so they want to use different translations. Hoe can ...
0
votes
1answer
22 views

Update a user meta key based on WooCommerce product purchase

I have a WooCommerce shop. I have a custom user meta key for user expiration that I need to update based on the result of all users who have purchased a specific product. Unfortunately, I have not ...
0
votes
1answer
27 views

WooCommerce Storefront site-header padding

Can someone please point me what folder/file location of where this precise bit of padding-top definition comes from other than style.css? I can't seem to find any sass/scss files in any of the ...
0
votes
0answers
21 views

Redirect to myaccount login page with error on custom login failed

I have created a custom login form in popup with the below code <form method="post" class="login mt-5"> <?php do_action( 'woocommerce_login_form_start' ); ?> <div ...
0
votes
2answers
18 views

Remove an action by extending class and replacing it

I'm trying to override a method (my_packages) from the WP Job Manager Paid Listings plugin by extending it's class from within a custom plugin Here is how the source code (none-related code removed) ...
0
votes
0answers
19 views

How to hide the other product categories in the shop page when a specific one is opened?

in my shop page (WooCommerce), I have a sidebar on the left side showing all the product categories. I would like to hide SOME OF those categories in the sidebar when you click a specific category ...
0
votes
0answers
17 views

Post Woocommerce Order Details to 3rd Party API

I want to integrate third-party app API with my WooCommerce store, in order to post my orders details to their app. they have provided me "APP ID" and "API Key" from their developer dashboard. they ...
0
votes
0answers
31 views

WooCommerce change order status using Ajax

How can I change the status of an order from Completed to Cancelled (or any other status for that matter) using Ajax?
0
votes
0answers
11 views

Change button on product WooCommerce Subscription

I want to change the button on a product if a user is already subscribed to it. I display a list of products on a specific page. Each product as we all know has an "Add to cart" button. That "Add to ...
0
votes
0answers
16 views

Woocommerce add to cart with variation_id

For a while, when I add a product to my basket, if I have selected a variation, it adds the product without the variation. ?add-to-cart=785&variation_id=788 In this example, it adds id 785 but ...
0
votes
0answers
12 views

Dokan : Redirect after email verification

I am using Dokan Multi-vendor plugin along with WooCommerce. I need to redirect to a separate page after successfull email verification. I am using the following code to redirect but it's not working. ...
0
votes
0answers
6 views

WooCommerce add downloadable product from external source

I need help with my site. I use WordPress with WooCommerce and i want to sell music tracks. My problem is that i want to store this tracks to some kind of storage like GoogleDrive or DropBox but when ...
0
votes
1answer
32 views

WooCommerce changes lost password reset link

When I activate WooCommerce plugin, the lost your password does not work and can't sent password reset email to users. But when I deactivate WooCommerce, the lost your password link at login page ...
0
votes
0answers
4 views

Category mapping without losing original categories WooCommerce

I have many duplicate product categories but for organisational reasons they must remain. How can I allow them to exist under the hood whilst on the front end, merged and non-redundant categories ...
0
votes
0answers
10 views

Cart and Checkout multiple shipping fee in single row

I am using Dokan Multivendor Marketplace plugin. When I add separate vendor product in the cart. Then cart add new line called Shipping Fee. Currently I have two separate lines for shipping fees. But, ...
0
votes
0answers
19 views

Woocommerce - quantity of attributes?

i've been looking for solution everywhere and found nothing. I want to sell variable products that are handcrafted from certain materials. I set up these materials as attributes. Since my products ...
0
votes
0answers
10 views

WooCommerce maximum products

Has anyone done any performance testing on WooCommerce regarding amounts of products? I'm wondering at what point too many becomes too much and in this case which other platforms does anyone tend to ...
0
votes
0answers
29 views

Displaying reviews outside of Woocommerce tabs?

I want to display the reviews on my single products page outside of my woocommerce tabs, but have been unable to. When the screen loads, I see it briefly appear then disappear. Here is the code that ...
0
votes
0answers
6 views

WooCommerce linked to a website and a smartphone application: what's the best solution?

I actually have a WordPress/WooCommerce website and I'm going to create an app (with React Native) linked to the same website through the WP REST API and the WooCommerce API. It's highly possible ...
1
vote
0answers
31 views

Automatically making a newly saved payment method default in WooCommerce

I've been trying to find an appropriate action(s) hook to do what I'm describing in my title. Under My account > payment methods I want any newly saved payment method by the user to be set as default ...
0
votes
0answers
5 views

WooCommerce: how to store the e-mail being used for purchase in PayPal as billing email?

When sending users to complete payment inside PayPal (default PayPal Standard is in use in my shop), how can I grab the PayPal e-mail account used by the user to pay, instead of the e-mail user used ...
0
votes
0answers
18 views

saving the result of API link in woocommerce data

I have added an API link to my WooCommerce child theme to create QR code: <img src="http://api.qrserver.com/v1/create-qr-code/?data=<?=$order_key?>&size=200x200"> So every thing ...
-1
votes
1answer
35 views

show payment receipt in woocommerce thankyou page with custom payment gateway?

I'm developing a payment gateway for WooCommerce with my client's bank that provides an API and actually I can process the payment correctly, but I need to show the transaction receipt in the thankyou ...
0
votes
0answers
16 views

WooCommerce Custom Pagination Layout

as currently my site product pagination is display as PREVPAGE 1 2 3 .. 15 NEXTPAGE May I know how I can make it as FIRSTPAGE PREVPAGE 12345 NEXTPAGE LASTPAGE ? I'm trying to achieve it same as https:...
0
votes
0answers
14 views

WooCommerce Order Action In New Page

I have added an action button to the orders page and I want it to open in a new window. This is my code: if ( $order->has_status( array( 'processing' ) ) ) { // Get Order ID (...
0
votes
1answer
15 views

WooCommerce template page for category

How do I change the WordPress template used for the WooCommerce category pages? I can change the product pages by using the single-product.php template, but the category pages just use page.php which ...
0
votes
0answers
15 views

Aramex Shipping WooCommerce pluging error

I tried to activate that plugin Aramex Shipping WooCommerce but I got the following error message: Sorry, but you cannot run this plugin, it requires theSOAP support on your server/hosting to ...
0
votes
0answers
19 views

Multi warehouse WooCommerce

I have a WooCommerce shop and I want to have more than one warehouse, to manage the inventory in each one. Is there any posibility to do it? Or how did you solve this? I don't want a third party ...
0
votes
0answers
16 views

Woocommerce order post_date is later than the original date that the order is created.

We are using woocommerce to get our payments from our resellers. We do not sell anything from our website but receiving payments. We are getting our payments with credit cards by connecting to an API ...
0
votes
0answers
22 views

Shipping costs display inclusive of tax incorrectly

I have an issue with Woocommerce shipping fee displayed as tax inclusive in the cart/checkout. I know that by default shipping costs are always EXCLUSIVE of tax. At first, the client asked to change ...
0
votes
1answer
8 views

login or register then access woocommerce website

I need solution for WooCommerce website user must login or register to access or view website and place order. My website for just staff members to place order behalf of customer. Staff member member ...
0
votes
0answers
29 views

WooCommerce Add to Cart and Buy Now button

I need WooCommerce Add to Cart and Buy Now button in the same product. When people click Add to Cart it will add product via ajax (without reload). Buy Now button directly redirect to Cart page after ...
0
votes
1answer
46 views

How to change product thumbnail size in storefront theme

I was trying to display product thumbnails in 230px (as per recommendations by GTmetrix). Since, I am using storefront the default value is declared in storefront/inc/class-storefront.php The code ...
0
votes
0answers
4 views

Additional option in create account woocomerce

I have create woocommerce website just for staff members to place order behalf of customers. So i need additional account option for staff member create account register as salesman, manager etc and ...
0
votes
1answer
39 views

Replace “Add to cart” by a link to contact page on specific product

On my WooCommerce, I'm trying to hide "Add to cart" button and replace it by a "Contact us" button (with a link to contact page) on specific product page. I've found different snippets but they don't ...
0
votes
0answers
9 views

staff members user login or register then access woocomerce website

i need solution for woocommerce website user must login or register to access website. to place order. my website for just staff members to place order behalf of customer. staff member member register ...