Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
0
votes
1answer
5 views

Set notification if is two product category in cart

I'm trying to set notifications when I have products from these two different categories inside the card in WooCommerce. This is the code which I using: add_action( '...
0
votes
0answers
7 views

Changing a site from Simplified Chinese to Traditional

I have built a website using the wordpress Simplified Chinese language pack with the help of a human translator to get the chinese as accurate as possible. The website has a lot of plugins and also ...
0
votes
0answers
10 views

WooCommerce Tax Filter Not Fired

I'm want to apply zero tax when sum is less than 100, but this code is not fired (I don't see print to console or echo is source). I added this to the code snippets plugin. What am I doing wrong? ...
0
votes
1answer
17 views

Is there a preset CSS class when shopping cart isn't empty?

WooCommerce enables automatically .logged-in class when a user is logged in. This allows to create a page with different content without any PHP coding. Is there something similar when the shopping ...
0
votes
0answers
17 views

Overriding Plugin function in your child theme

Plugin actions $this->loader->add_action( 'wp_ajax_woo_amc_get_cart', $plugin_public, 'show_cart_items_html' ); $this->loader->add_action( 'wp_ajax_nopriv_woo_amc_get_cart', $...
0
votes
0answers
10 views

Adding country subdomain to an existing website like www.example.com/uk

I have a website www.example.com and I have put a lot of products using woocommerce. And the URL of those products like example.com/cat/samsung/j7 Now I would like to add country subdomain like www....
0
votes
1answer
17 views

I can't add pictures to the product attribute item in woocommerce

I can't add pictures to the product attribute item on my Woocomerce website. How do I do this?
0
votes
0answers
11 views

How to display all stock statuses including back orders?

I would like to be able to show all stock statuses. I found a free plugin that does this feature, however it's not fully customizable. My theme has a section that pulls my WooCommerce products via ...
0
votes
0answers
6 views

Create an sold-out archive with WooCommerce [on hold]

I have a site where my client sells paintings (individual). We mark them sold out upon sale, but I would like users to still be able to see the sold paintings -- not on the main /shop page, but on a ...
0
votes
0answers
11 views

Having multi content on Wordpress depend on user choice [on hold]

I want to work with Woocommerce with sitting a city for each vendor, the customer when open the website will show all products from all vendors But I need to give the customer option to choice his ...
0
votes
0answers
11 views

Slider plugin suggestion [on hold]

I am searching for who commerce(i know the spelling is incorrect) product slider plugin that displays detail of the product on hover.
1
vote
1answer
14 views

change in form-checkout.php by using code in functions.php

Specific, how do i remove "Your order" or the full function? By using a code snippet in functions.php (child-theme) It can be found by: <h3 id="order_review_heading"><?php esc_html_e( '...
0
votes
1answer
19 views

Custom Admin Email Subject for Woocommerce (3.8.0) Orders

I would like the Email Subject line for the admin email to change based on the product category. I've looked at ALL similar stackoverflow questions and NONE of them work for woocommerece 3.8.0 (see ...
0
votes
0answers
12 views

Woocommerce price variation in checkout

Good day <?php global $woocommerce; $items = $woocommerce->cart->get_cart(); foreach($items as $item => $values) { $_product = wc_get_product( $values['data']-...
0
votes
0answers
8 views

Import client with custom “money_spent” value

I try do code a custom tool to import many clients from a custom CSV file. This CSV file is NOT generated by woocommerce, but contain a "money spent" column. How to store this "money_spent" value to ...
0
votes
0answers
9 views

Set Product display price as default variation price

Im using code to display the default variation price. add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2); function custom_variation_price( $price, $product ) { ...
0
votes
0answers
17 views

Woo stock keep getting negativ

I have stock management disabled, but one products keeps getting a negativ stock and is therefore not buyable. not sure how this can happen?! this is an excerpt from the api "manage_stock":false,"...
0
votes
1answer
32 views

How can I convert woocommerce checkout fields in capital letters

I have a woocommerce checkout page, where customers are writing whatever way they like, all lowercase all uppercase etc. How can I do the checkout fields of Name, Surname, Address to be in capital ...
0
votes
0answers
17 views

Multiple permalink structure for the same post

I am using WooCommerce and my client would like to have 2 versions of permalink structures for single product pages as follows: example.com/product-slug/ and example.com/product-category/product-...
0
votes
1answer
11 views

Move woocommerce directory

We have a site that has an website already that does not use Wordpress https://subdomain.example.com. Setup Wordpress and Woocommerce in a subdirectory https://subdomain.example.com/shop Configured ...
0
votes
0answers
14 views

Display Advanced Custom Fields value in Woocommerce admin order details

I created an custom field with the ACF plugin to add additional information on the Woocommerce product edit page. It's a subtitle to the product name (all variable products). I was able to make the ...
0
votes
0answers
14 views

Woocommerce editing html for a category title

Im looking to edit the html code generated for the title on the product category pages. Currently it is: <h1 class="page-title">Category 1</h1> But id like to change it to: <h1 ...
0
votes
0answers
9 views

Woocommerce Updating Order Status very slow?

I am trying to bulk update lots of Woocomerce orders (Approx 8000) from processing to Completed. Using the bulk editor I just get an error trying to select so many and change the status. So I made the ...
0
votes
0answers
14 views

WooCommerce: How to add to cart a custom type product ( yith composite )

I'm building a mobile app and need to add products with ajax requests. My client using a custom product type called yith-composite that converting the products to parent and children ( component ) ...
1
vote
1answer
21 views

retrieve thumbnail from post ID of best selling product in category

The code below displays product category names, links and their thumbnails on hover. The thumbnails ($image) retrieved are those manually set via the woocommerce product category menu. I am trying ...
0
votes
0answers
7 views

WooCommerce Multi-Currency shortcode not working

I've installed and activated WooCommerce Multi-Currency plugin. I'm still on the free version but I with that I can add two currencies. This works fine if I try to add the widget to the footer or ...
0
votes
1answer
12 views

WC_Customer delete function returns error

Here is my code: function woo_delete_customer(){ $customer = new WC_Customer(get_current_user_id()); $val = $customer -> delete(); if($val){ $customer -> save(); $data = ...
0
votes
0answers
24 views

Woocommerce - disable selling capabilities on products belonging to a specific seller

I'm going crazy for a few hours, and I need help. Please :) I would like to disable the sale of products added by a specific seller in woocommerce. I use Dokan, a plugin that transforms woocommerce ...
1
vote
0answers
22 views

Keep getting Notice: Trying to get property of non-object in …\wp-includes\post.php on line 4153 when generating woocommerce coupon

I'm getting this error, that I can't get rid of. Here is my code: function generate_coupon($coupon_name){ global $post; $coupon_code = $coupon_name; // Code $amount = '10'; // Amount $...
0
votes
0answers
11 views

Receive Woocommerce paymets using a credit card reader [closed]

I'm trying to find a way to accept payments for my Woocommerce POS application using a credit card reader. I purchased a Woocommerce POS plugin from codecanyon that works really well. However, it does ...
0
votes
0answers
8 views

Checkout validation with JS on placeOrder button click

I've integrated a custom payment gateway in JS, which triggers on click of place order. Currently, it process the payment without validating the checkout form. But I need to check the checkout form ...
1
vote
0answers
27 views

how do I remove the shipping from woocommerce thankyou page and from the email

I've been trying to remove the shipping completely from my woocommerce website. I was able to remove it only from the checkout page and the cart page BUT I want to remove also from the thank you page ...
0
votes
0answers
13 views

How to add user clothing measurement in woocommerce myaccount page [closed]

I have lehanga and suit designing woocommerce website in which i want to add a form for user to fill their clothing measurement and submit it . This measurement details will be saved in user account. ...
0
votes
0answers
9 views

woocommerce pagination with custom query using wc_get_products doesn't work

I use the function wc_get_products to get the products I want. $paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1; $ordering = WC()->query->get_catalog_ordering_args(); $...
1
vote
0answers
31 views

Woocommerce custom endpoints

Currently, I'm an android developer(Java) and trying to add some custom endpoints to my Woocommerce site. I've wasted so much time to understand concepts of WP, but still can't get clear answer. So ...
0
votes
0answers
9 views

WooCommerce - Product Meta total to add tax

encountered an issue on WooCommerce that i am desperately trying to fix. When adding an order (or an order is placed through the store), that on the orders edit/view screen, in the Product Meta ...
1
vote
1answer
19 views

Sorting category products not working

I am using Avada theme and the sorting of the products on category page is not working. When i click on ascending and descending order the ordering of the products becomes random. Please provide me ...
0
votes
0answers
7 views

Why dont change the cart total after change currency switcher?

Good afternoon. I use the currency switcher plugin. 2 currencies: $ and Euro. I withdraw the amount from the basket in the cap in this way. When I select the dollar in the select, only the currency ...
0
votes
0answers
9 views

Woocommerce show all product variations for first attribute [closed]

I am using standard woocommerce product variations. I have products that have both size and colour as variable attributes. What I would like to do is show all sizes in the "Sizes" drop-down but limit ...
0
votes
1answer
22 views

“Enable Media Replace” plugin does not update serialized object in WPMeta

We utilize WooCommerce and a WooCommerce plugin called Product Documents (https://woocommerce.com/products/product-documents/) to associate PDF media files with products in my online store. Our ...
0
votes
2answers
38 views

Hide review form if user has left a comment

I am trying to hide the comments form if a user has left a comment on that particular post, otherwise display the comment form. I added a code snippet to a hook which hides the form, but reverts to ...
0
votes
1answer
17 views

Only show size attributes in product box woocommerce when available

First of all I want to say I have little coding experience. I want to show available sizes in the productbox on the shop page. I got this working after some searching around here. Now I want to only ...
0
votes
1answer
20 views

How to get users data from wordpress woocomerce database to display

I'm new to building websites but I have figured out something. Any help to get me forward would be highly appreciated! I have a WP site with WhoCommerce. I have managed to get a working login ...
0
votes
1answer
14 views

Is there a request for products plugin for WooCommerce

Buyback here I mean people can post on WordPress saying they want to buy from you say your old iPhone 9 for USD500. It's like a product request feature. I googled and can't find any.
0
votes
1answer
39 views

How to translate text in function.php with WPML

I added this function to add cash on delivery price and I want to translate the text (cash on delivery) using WPML plugin add_action( 'woocommerce_cart_calculate_fees', 'custom_handling_fee', 10, 1 );...
1
vote
1answer
25 views

How to subscribe free subscription on user registration in woocommerce subscription plugin?

I am using Woocommerce Subscription plugin. I have two types of Subscription plans right now. Premium Subscription Free Subscription When any user registers on my site, I want every user to show ...
1
vote
0answers
15 views

Importing Woocommerce products with variations

I need a plugin or script which will help me import woo commerce products along with variations and respective prices,descriptions and quantities. Is it possible to use a simple plugin or a ...
0
votes
0answers
18 views

Remove the 'Cancel order & restore cart' in WooCommerce

Any way to Remove the 'Cancel order & restore cart' link in WooCommerce checkout page before making a payment
0
votes
1answer
20 views

I want to show always 4 category boxes everytime in woocommerce

i am having problem in my website.i am using a shortcode to show a section which is show 4 rand category each time.i mean its changes each time reloads. now the problem is sometime its showing all 4 ...
1
vote
1answer
89 views

combine Code 1 with Code 2

Code 1 - uses wp_list_categories to list product categories in columns of x categories up to a total of y, with a link to view all categories if there are more than y. Code 2 - Later realising i ...