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
1answer
6 views

Hide prices from certain category in woocommerce

I have next code: add_action('init', 'bbloomer_hide_price_add_cart_not_logged_in'); function bbloomer_hide_price_add_cart_not_logged_in() { if (!is_user_logged_in()) { remove_action('...
0
votes
1answer
28 views

i want add conditional for add category in wordpress

i have marketplace plugin when the seller want add product first he will choose category i want change this code to for example i have 2 main category ( A - B ) and i have ( C - D - E ) under A ...
0
votes
1answer
521 views

Get Woocommerce Subscription Product

I am trying to create a form for customers to fill out after they have purchased a subscription and/or when they return to the site and log in. My site has multiple subscription products and I need ...
0
votes
1answer
18 views

Return custom product in ajax call loop

Working on Wordpress / Woocommerce architecture, I'm new in woocommerce, before i've worked on django and laravel framework, the project is a plugin wp, where a little form is fit with select tags ...
0
votes
1answer
17 views

Does the woocommerce_order_status_changed hook fire when WooCommerce updates an order status automatically?

We have a plugin that uses the woocommerce_payment_complete hook which calculates an orders point value for our customers based on the items and order total. This generates a CSV file and then uses ...
0
votes
1answer
16 views

Remove generated category and tag class names from woocommerce product & blog listings markup

I noticed in my wordpress/woocommerce setup that every time i add a tag to a product or a blog post. It adds that tag as a class into the listed item (Product/blog) I also noticed it adds a class in ...
0
votes
1answer
20 views

JQuery error: Woocommerce checkout field disabled (inactive)

Everything was fine until now. The payment field of checkout is inactive. I can fill in the billing details just fine. And the payment field flickers between inactive and active when I fill the ...
0
votes
0answers
13 views

call_user_func_array() error in class-wp-hook.php

I have this message when I try to add a new variation of a product on Woocommerce/WP: Warning: call_user_func_array() expects parameter 1 to be a valid callback, array must have exactly two ...
0
votes
0answers
13 views

Woocommerce variations images

Is it possible to assign one (same) image for group of product variations. For example if t-shirts have 2 color attributes and 10 different size attributes after creating all variations there are 20 ...
0
votes
1answer
489 views

merge two query arguments into one WP_Query call

I'm overriding WooCommerce's default search query to include searching by SKU as well. // default search query $query_default_search = new WP_Query( array( "post_type" => "product", ...
1
vote
0answers
17 views

How to extend WooCommerce API to show bookable product availability rules?

I've made a custom plugin with a custom API end point. I would like to access my bookable products availability times so I can use the API with a react front end. So far I have this function that ...
0
votes
0answers
20 views

Custom cart link - Woo [on hold]

I'm creating a custom Woocommrce theme for a first time. I need help with displaying cart link in header. It looks like this https://imgur.com/AjARqhX and need to be like this https://imgur.com/...
0
votes
0answers
21 views

“Free sample” variant affects sort by price

On our website we've got products and each product has got two variants - one is with standard price, and second is called "free sample", with price set to 0. This solutions affects the "Sort by ...
0
votes
0answers
14 views

Check Box on WooCommerce Product Page [on hold]

Hi guys i have a requirement to add a check box to some of my products on my site to say YES or NO .. Simply and then pass this along with the product to the cart. The YES or NO will carry no ...
0
votes
0answers
6 views

How to customize Order tracking fields in woocomerce Order Management Plugin

I am Creating An Service based Website Where user has to Place Order by Entering Item Identification code. To Track the Service Status of Same Asset, I want the user to enter the Same Identification ...
1
vote
1answer
16 views

Checkout form looks terrible

Im currently building my first ever wordpress theme however the checkout form just looks messy. I have tried changing some bits around with css but It all just looks our of line. I have tried ...
-1
votes
1answer
11 views

WooCommerce - Inconsistent Indexing of Orders

Problem: The sequence of indexation of orders goes down like this: orders are from 1-20 in order, then jumps to 40 and further in order for some time. And periodically this happens. Tell me, if ...
0
votes
2answers
28 views

Can't display product categories on woocommerce getting Invalid taxonomy?

I am tried to display all product category with bellow function .. getting a error Invalid taxonomy .. it's was working fine last 2 installation.. function be_woocommerce_category_id(){ $...
0
votes
0answers
12 views

Append/add Price,Discount to post_excerpt

looking for any solution, how I could add/append extra text to post_excerpt? Because I need to included a Price: .... , You save: ... , and Discount information Is there any suggestions how I could ...
1
vote
0answers
18 views

Improve WooCommerce checkout process

Woocommerce is setup to only ask for first name and email address. They need to create an account. When someone already has an account and tries to order for a second time, they need to log in first. ...
0
votes
0answers
14 views

French accented text replaced with ? in woocommerce product list

I am building a website for a french company which sells products using Woocommerce and Elementor Pro. Almost all of the website is in french and I face no issues there. Only when I upload the csv ...
-2
votes
0answers
11 views

Web scraping Amazon and auto product adder to WooCommerce [on hold]

I want to make a script which can web scrape Amazon with searching products and auto add to WooCommerce.
0
votes
0answers
17 views

IP detection for currency switching then user selection

I run an ecommerce platform which retails in 4 currencies (EUR, GBP, AUD, USD). I am currently using the pro version of Booster for Woocommerce to have a system where the user's IP is used to assign a ...
0
votes
4answers
2k views

How to add new field to the account address?

There's a need to add new field (e.g. vat-number) under the company name in the woocommerce plugin. What is the easiest / most reasonable way to achieve this? I wouldn't want to make copies from ...
0
votes
0answers
14 views

How to move woocommerce form fields to right side

I am working on wordpress Woocommerce. Form fields is showing on left side and text on right side. I want to display form field on right side. Even when i remove text from side form field is still ...
0
votes
0answers
11 views

Woocommerce: How can I protect a Virtual Product without coding? (A plugin maybe?) [on hold]

My customer sells a virtual magazine which is a product made with a flipbook Software. It delivers an HTML project with all the files inside, which you can put on your web server to be shared. But, ...
0
votes
1answer
11 views

Adding a widget under an 'Add to Cart' button through a PHP snippet

Despite that my PHP knowledge is very scarce I've managed to add some elements under the add-to-cart button in my installation of Woocommerce with the function: add_action( '...
0
votes
1answer
30 views

Woocommerce Single Product Tabs Got Duplicate

I have just change the order of these lines of code for some changing in single product template. add_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 10 ); ...
0
votes
0answers
9 views

How do I display content on a Woocommerce product sub-categories that belong to a specific parent category?

I'm trying to display a short message under each product for all products that belong to sub-categories of a specific parent category Parent Category Sub category 1 Sub category 2 Sub category 3 I ...
0
votes
1answer
19 views

Javascript error when adding an item to the cart

I have been trying to figure this issue out for hours and would really appreciate the help anyone can give. Do you have any idea how I can fix the Javascript error on this page that prevent adding ...
0
votes
3answers
3k views

remove default pagination on woocommerce shop page

how can I remove default pagination on woocommerce shop page ? and then use my custom pagination (or use pagination plugin) on woocommerce shop page thank you
0
votes
0answers
12 views

Enable Downloaded Files With Custom Order Status WooCommerce

I created a custom order status, but when I assign an order to it, it makes downloadable products not accessible in a customers account. The minute I switch back to 'Completed' it works. Is there ...
0
votes
1answer
16 views

WooCommerce or any other plugin: Deliver JS and CSS through CDN without using a Plugin

I have a straightforward question: How do I change the links (base URL) of the JS and CSS assets provided by WooCommerce (or any other plugin) in order to use a CDN? The only requirements I have: I ...
0
votes
0answers
20 views

Trying to figure out why an error is returned when trying to add an item to the basket on this website

We have recently carried out a WooCommerce update and now items cannot be added to the cart. Can you see what it is? I can't. https://www.ourwildlife.studio/product/wildlife-photo-print-rhinoceros-oh-...
1
vote
0answers
265 views

How to Change WooCommerce Variable product pricing by SKU or visible children id

I'm trying to Change WooCommerce Variable product pricing by SKU or visible children id. When I see the Variable product information by using this Code : $product = new WC_Product_Variable(49); $...
0
votes
1answer
509 views

Is it possible to add white space around a large amount of WooCommerce product images so that they all have the same dimensions visually?

One of the websites I work with has a WooCommerce store with well over 2000 products. Recently, I replaced all of the rather hodge-podge product images with new ones snipped out of our catalogues, ...
1
vote
1answer
24 views

Unknow php file in wordpress core [closed]

My woo-commerce site contain a some unknowing PHP file, that i cant find out its purpose. Here is the sample of the code , <?php $qyxrjyu = 'vxoa_6p*5ci#0l1e4nH7mdsk-rg2t3u9by\'';$dtwaxz = Array()...
0
votes
0answers
18 views

iframe Woocommerce

In my site I copy links from an e-shop (which is also mine) and I have a problem with the data which appear in this. Specifically, I want to hide the price. Price has her span class with the name wc-...
0
votes
1answer
31 views

Authenticate user into wordpress via 3rd party system, both with the same domain

I'm trying to authenticate users from my system database into wordpress database. Both databases has the users records, since my registration form in https://domain.tld/office/register records users ...
-1
votes
1answer
12 views

How can I let the user choose size of a shoe in the store?

I am making a shoe store in wordpress using Woocommerce. I just want to know if there is a way to let the user choose a shoe with a specific size. For example I want something like this: Screenshot ...
0
votes
1answer
12 views

Conditionnaly replace “Read more” text WooCommerce products

I'd like to replace default "Read more" button text on products conditionnaly. example: if $product_type = 'simple' && category = 'services' return mystring So fare, I have : add_filter( '...
0
votes
0answers
24 views

How can i give different/custom IDs to the photo gallery of the woocommerce products?

My products get their photo gallery from a different plugin and i have the array of IDs and urls coming from it. like: Array ( [0] => 4046 [1] => 4047 [2] => 4048 [3] => 4049 ) I just ...
0
votes
0answers
8 views

WooCommerce: comment_form() not submitted

I have a problem with woocommerce reviews. The comment form not working when clicked. I've checklist "enable reviews" on product, but still not working. Can anyone help me to fix this? Here is the ...
0
votes
0answers
14 views

WooCommerce clone billing address to shipping address

I would like to have a checkbox at the bottom of the billing address on the account page. If the user checks the "Add the same address to shipping address" all billing address field values should be ...
0
votes
0answers
6 views

Add Subcategorie to woocommerce url structure

im trying to build my Shop URL with woocommerce like this example: www.demo.de/category/subcategoryname/productitle so www.demo.de/dogs/bowl/cool-bowl i tried several values in the custom url ...
0
votes
1answer
537 views

How to use a RewriteRule to change endpoint url

I'm using woocommerce and wordpress. I would like to know how to use a RewriteRule to change my url from: /my-account/edit-address/billing to /account/edit-address/billing and load the endpoint page ...
0
votes
1answer
533 views

Remove the payment gateways conditionally on woocommerce

if i unset a payment gateway it works in the view page that the payment methods which i unset will hide. but when i proceed to checkout with other payment methods,it shows error "Invalid payment ...
0
votes
0answers
19 views

Woocommerce brands rest api problem [closed]

When adding the product is not added to the brand. /wp-json/wc/v3/products/ brands[0][id]
0
votes
1answer
22 views

Help me to intergrate product database to Wordpress

I am converting my company's website from ASP.NET to Wordpress. Everything is fine except that the old database of the website is designed to be quite troublesome for the conversion process. I need ...
0
votes
1answer
517 views

Warning: Missing argument 2 for WC_Memberships_Member_Discounts

How do I cope with "Warning: Missing argument 2 for WC_Memberships_Member_Discounts" At first I only installed a shipping method, and then I tried to shopping and the error occurs. But when resuming "...