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

Woocommerce - exclude only older out-of-stock items

Trying to find a way to exclude out of stock items from listing, but only after some time (let's say, if they're older than one month). I know I can exclude all of them easily, or change the order ...
0
votes
0answers
9 views

use custom plugin js file in woocommerce setup wizard [on hold]

I want to use custom js code in woocommerce setup wizard. like here i write down some information for example if i integrate a google map auto fill and on the behalf remaining fields auto fill the ...
0
votes
0answers
10 views

“error_message”: “Sorry, you cannot list resources.” using WooCommerce API

When requesting the test API, getting the following response: { "errors": [ { "error_code": "", "error_message": "Sorry, you cannot list resources." } ]...
0
votes
0answers
6 views

How to restrict a product list in woocommerce so that products are not selectable ie they can only be added to cart

I am investigating the possibility of using woocommerce as a volume calculator (not as an ecommerce solution). However, it does not need to calculate volume from measurements...we have already got ...
0
votes
0answers
8 views

Get WC Checkout add-on value from Order

I try to get the WC checkout add-on value stored in my order but the function does not work, can't find the WC_Checkout_Add_On class, maybe because i have removed "SV_WC_Plugin_Compatibility::" but if ...
0
votes
0answers
10 views

How to add child page to Woocommerce product page?

The goal is "add page to product". ex. bmw.com/shop/i8/ << a Woocommerce product page bmw.com/shop/i8/photo/ << normal page I know Woocommerce have it own page taxanomy, it's not have ...
0
votes
0answers
16 views

Woocommerce search pagination not working

I have a problem with the Woocommerce Pagination but only on the Search Page. On category sites the pagination links are working just fine. But on the Search Page the pagination generates links like ...
0
votes
1answer
11 views

How to hide out of stock products in Related Products via custom query in WooCommerce

I am trying to hide out of stock items from the Related Products section of WooCommerce. I don't want to edit theme files, so want to do this via functions.php. I have followed this blog post, which ...
1
vote
1answer
14 views

Add to checkout total lines an additional line below shipping in WooCommerce

I need add "Include pack" line with conditional logic to WooCommerce checkout review order section. How it possible?
0
votes
0answers
47 views

Problem with latest Woocommerce update Version 3.6.1 ( API ) [on hold]

http://localhost.com/wp-json/wc/v2/products/categories Old: [ { "id": 15, "name": "Uncategorized", "slug": "uncategorized", "parent": 0, "description": "",...
0
votes
0answers
19 views

Custom theme woocommerce product detail page template not working

I am new in WordPress development, This question already asked but that not solve my issue. I have create custom theme this my theme folder structure In my custom theme product detail page css not ...
0
votes
1answer
17 views

Woocommerce budget search

I have woo commerce setup. Now requirement is like say If I search budget lets say 5000,It should show products whose price total is 5000 (ex. one product of price 3000 & one product of prize ...
0
votes
0answers
10 views

Allow in-store pickup and manual change of order status

Currently, i have customers paying deposit or full price with plugin... but pickup will occur in store... I need a woocomerce plugin that will let me easily pull up their order, let them pay ...
0
votes
0answers
21 views

How to override WooCommerce Order Item Meta with data from Cart?

I have the following function that is overriding some of the values that are saved to the Cart and Checkout, via the YITH Bookings plugin. Essentially, I have overridden the Duration field with my own ...
1
vote
1answer
14 views

Change the displayed shipping total in WooCommerce

I need to change shipping price programmatically: <?php $percentage = 50; $current_shipping_cost = WC()->cart->get_cart_shipping_total(); echo $current_shipping_cost * $percentage / ...
0
votes
1answer
9 views

WooCommerce registration password field not displaying

For WooCommerce registration form we only have one email field and I want to add password fields for this. I have tried to find online help but there are few support pages only for repeat password ...
0
votes
0answers
8 views

Woocommerce price based trial subscription

I want price based trial in woocommerce subscription and after that subscription plan will go on. means instead of free trail I want price based trial in woocommerce. Also i don't want sign up fee as ...
0
votes
1answer
9 views

Woocommerce new shop page

I would like to have a page like page.php to display the content of the shop page. How can i do it? I copied everything from woocommerce/archive-product.php in to page.php but nothing is beeing ...
0
votes
0answers
9 views

Display payment form outside checkout

I am currently working on a WooCommerce store that has specific requirements in regards to checking out. The process is as follows: User orders a product through regular WooCommerce checkout User ...
1
vote
1answer
11 views

Add Products to user's ID Woocommerce

I have made an REST API for synchronize user's cart item to web view to android view. I have used CoCart WP plugin Here are some scenarios: If I adding product from website I can get user's cart ...
0
votes
0answers
15 views

On billing country change in the checkout page, re-total the cart using appropriate currency

I'm not very experienced, digging this for days now, running out of solutions. Please help :) I have a two-languages(=two currencies) website using WPML. Both currencies are allowed on both languages,...
0
votes
1answer
16 views

How to apply a custom coupon to a WooCommerce Subscription recurring amount?

I ned to create a custom coupon for use with WooCommerce Subscriptions because for some reason you can either have one on the sign up fee OR you have one on the recurring amount, but I need a coupon ...
1
vote
1answer
20 views

Which field should I edit to make the checkbox marked by default?

I have a php form that I want to change the state of a checkbox so it's filled by default, but there are two fields that may be the right way: 'request_vendor_access' => array( '...
0
votes
0answers
34 views

want to confirm popup with “Yes” and “No” button when user click on add to cart

I am new in Wordpress so need help... I want to show confirm popup with the button "Yes" and "No" when user clicks on Add to Cart. after selecting "Yes" on confirm Popup, add a product to cart. If ...
0
votes
0answers
32 views

New WooCommerce products acts diffrently compared to old products

Introduction I am encountering a problem with a WordPress WooCommerce site. My client has many products all of them are “old” before I took over from the previous web bureau. Now, if you make new ...
1
vote
1answer
31 views

Woocommerce Shop Price Position

I am using Storefront theme with woocommerce and I want to create a custom layout in the shop page. This custom layout has no product thumbnail the title and price must be inside the same div so I ...
1
vote
1answer
23 views

Display a selected custom product option in WooCommerce cart

I am using the code below to display a custom select field on WooCommerce single product pages: <?php $sizes = $product->get_attribute( 'size' ); $sizes = explode(", ",$sizes); ?> <?php ...
0
votes
1answer
28 views

Only return taxonomies that are linked to a category & product

What's the best way, to return taxonomies, but only taxonomies that are linked to a product, within the category, I have a heirachial taxonomy, I want to get all the top level options, once an option ...
0
votes
0answers
21 views

The product link in the category does not coincide with the product link

I have category page like this : "/product-category/{category}/{subcategory}" And in this page i get list of all products with url like this: "/product-category/{category}/{subcategory}/{product}"....
0
votes
2answers
20 views

Display SKU for each Single product title in group product!

Does anyone know how to display the SKU for each Single product title, underneath the Group product? I want to display the SKU to be obvious,as a second line,right below each product of the group.
0
votes
0answers
6 views

How to display custom text on WooCommerce Order Received page if specfic coupons are used [closed]

I'm attempting to display a custom thank you message on the Woocommerce order received page if one of three specific coupon codes are used during checkout. Our Woocommerce version is 2.6.11. I've ...
-1
votes
1answer
14 views

How to remove product attribute row woocommerce using code

I am trying to remove an attribute row in a product attribute tab using code. Woocommerce uses javascript to hide attribute row then uses ajax to save changes. I need this row to be disappeared and ...
0
votes
1answer
32 views

Woocommerce: sorting variable product

How do I show variations sorted by quantity in stock? I can override or extend the WC_Product_Variable class, but this solution doesn't seem optimal. What other options are there?
2
votes
1answer
16 views

How to disable Woocommerce password recovery and use the default WordPress password reset page?

On my website: https://sciencehook.com/ when I request for password reset, it is redirecting to Woocommerce's reset page: https://sciencehook.com/my-account/lost-password, but I want default WordPress ...
0
votes
1answer
26 views

How to prevent blank variation image from showing in woocommerce variable products?

By default, when creating a variable product Woocommerce displays the first thumbnail as a blank image if no image is uploaded for the variation(See poorly highlighted image below). Instead of having ...
0
votes
0answers
9 views

Customize an ElasticSearch Query (Jetpack Search) to include custom taxonomy

I am using Jetpack Search as an economical way to get the power of ElasticSearch for my company's Woocommerce site. It seems that the search query is only being compared to a few select fields (...
0
votes
0answers
10 views

Listing variable products as individual products?

Is it possible to list variable products as individual products? If this is not clear. Same question but different phrase:- Split variable product into single products while listing it. Kinda hard to ...
0
votes
0answers
20 views

Add class to latest item Woocommerce

I need to woocommerce product gallery add class in latest item, if more than two pictures in the gallery do no need add the class to the last element, but if there are more than two images in the ...
2
votes
1answer
30 views

Get WooCommerce product details and transfer them to a custom DB table

I'm currently doing a registering service for products with WordPress and WooCommerce. All products that customers can register will be in the WooCommerce database, but not visible on frontend. Here ...
0
votes
0answers
34 views

Warning: sizeof(): Parameter must be an array or an object that implements Countable in meta.php

I have a WooCommerce WordPress Theme installed. The error is shown on all products pages, Here is the error: Warning: sizeof(): Parameter must be an array or an object that implements Countablein C:\...
0
votes
1answer
19 views

How to add a new column with text fields to WooCommerce Cart List?

As attached images. How to add a new column with text fields to WooCommerce Cart List? Thanks.
0
votes
0answers
16 views

How to fetch More Offers products in WooCommerce?

I want to customize the page and need to fetch products in "more offers". Which function I should use in WooCoommerce single page customizer plugin?
1
vote
1answer
17 views

Make specific products accessible only to a user role in WooCommerce

I am making a plugin to hide specific product category only for a user role. add_action( 'woocommerce_product_query', 'wcpp_hide_product' ); function wcpp_hide_product( $q ) { //if main query, ...
0
votes
0answers
13 views

Adding line breaks in WooCommerce order processing emails

I had to add some text to the customer-processing-order.php (email) but it’s just one big body of text. I need to add some line breaks but nothing I have tried is working. Does anyone know how I ...
0
votes
0answers
13 views

How do I modify the Divi 'search' module to search Woocommerce products not pages and posts?

I need to be able to search for Woocommerce products using the Divi Search module. I've been trying to adapt the following code below to work, I think the class is .et_pb_searchform, but I'm not 100% ...
2
votes
1answer
21 views

Get product attribute for Simple product in WooCommerce

I need to get product attributes from product in WooCommerce, type product Simple product, some product can be as dropdown, but much options as radio button. How I can do this? How it possible? ...
0
votes
0answers
8 views

Wocommerce Specific Filters on Category pages

I have a website which sells 3 categories of products. Clothes, Sports-Gear and Supplements. I have the standard filters which come with WooCommerce and display everything (all categories and sub-...
0
votes
0answers
22 views

How can I override a plugin's submenu page and keep the same slugs?

I have a plugin and would like to change the callback function of an admin submenu page so that I can change the output. This is what I have so far (in a child-theme's functions.php file): ...
-1
votes
0answers
20 views

WP Plugin for appointment products with shared resources?

I am building a site for a go kart track. So far, I'm using Elementor and WooCommerce but could change if necessary. People can reserve from 1-5 twenty-minute races. There are 10 karts total. ...
1
vote
1answer
28 views

Query WooCommerce orders grouped by several order statuses

As I can see from WooCommerce documentation, WC_Order_Query allows only one single order status to be passed as query parameter. Has anyone find some workaround to allow querying several order ...