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
31 views

Woocommerce showing only one product on main shop page of the exactly same tag

I have more than 3000 products on my website. I get all products from main dealer's database using XML importer. Anyway, i assigned same tag for the products of same type. For example, i have a oval ...
0
votes
0answers
14 views

Woocommerce filter don't work

I noticed that some Woocommerce filter not called as needed. For example in cart view page must work filter 'woocommerce_get_item_data' but this filter not works, I wrote code in theme functions.php ...
0
votes
0answers
22 views

How to apply WooCommerce coupon if cart quantity is equal or greater than 10 from a specific category or product ID?

I need help with applying a 10% discount if the product quantity in the cart is greater than 10 using coupon. I came across this code but it seems to have some errors //The folloing is the code to ...
0
votes
1answer
16 views

Undo WooCommerce CSV import

I've done a CSV import through the WooCommerce import function. Unfortunately, there's something what went wrong. By now, almost all products don't show any data as it has somehow been overwritten. I'...
0
votes
0answers
33 views

WC Database version keeps reverting to 2.6.4 after upgrade

I keep getting this error on my dashboard after performing a WC DB upgrade: WooCommerce data update – We need to update your store database to the latest version. Run the updater After I perform the ...
1
vote
1answer
25 views

Child theme dosn't overwrite WooCommerce (version 3.4.7)

I've followed the WooCommerce instructions for child themes including declaring the child theme: function theme_woocommerce_support() { add_theme_support('woocommerce'); } add_action('...
0
votes
0answers
10 views

Hao can i show a payment receipt in thankyou page?

im developing a custom payment gateway, and i can do all the process, from my wordpress/woocommerce instalation i can use my custom payment gateway via REST API provided by my bank, every thing is ok ...
0
votes
0answers
6 views

Wocommerce, tested upto is not shown

As documented by wocommerce here I added those two lines in my plugins header like this /** * Plugin Name: ExportFeed: WooCommerce data feed for Amazon Marketplace * Plugin URI: www....
0
votes
0answers
9 views

Hide entire product in woocommerce

I want to show something else, instead of the original product content to the guest users. I think I could do that with woocommerce action and filters, but I looked in the woocommerce codes and didn'...
0
votes
1answer
17 views

can't get the product id in single woocommerce page

In the single woocommerce page where I have actions like woocommerce_before_single_product_summary to show the products, I can't access the product id. I tried the following codes and it didn't work : ...
0
votes
0answers
20 views

WooCommerce and Redis

I'm using Redis (installed with the Redis Object Cache plugin) in conjunction with WooCommerce. The problem is that (only with the Redis plugin) I can not make any orders, because the sites hangs ...
0
votes
0answers
10 views

Add tax status to products in header mini cart (woocommerce/storefront)

I have a site running woocommerce with a storefront child theme, and I need to add the tax status of each individual product as a class in the html within the header mini cart. I figured there must ...
0
votes
0answers
24 views

WP_Query to Fetch Products Order-By Custom Product Attribute

I have created one Custom Product Attribute named "published-year" which gets stored in table "wp_postmeta" => "meta_key(_product_attributes)" => "meta_value". I want to fetch all Products Order-By ...
0
votes
0answers
35 views

woocommerce not hidden attribute that “out of stock” when 30 variations or more were created

I have a question about Woocommerce not hidden attribute that "out of stock" when 30 variations or more were created. Let say that I have 2 attributes. first is size(1|2|3|4|5|6) and second is option(...
0
votes
0answers
16 views

WooCommerce - dynamically populate option field in Gravity forms Add-ons

Option field has several choices with prices for each choice. How would I dynamically populate product option field (note that this is not simple input field with Gravity forms Add-ons? I have tried ...
0
votes
1answer
20 views

WooCommerce payments

I'm wondering if there is a way in WooCommerce to forward payments after deducting a small fee. I have a client who, on his website, let's people rent out stuff. The person who wants to rent ...
0
votes
0answers
20 views

Turn all posts into Woocommerce products (keep as posts too)

I have a movie rental site with about 8000 posts - was used for reference for my rental store. Id like now allow customers to buy the movies as we're shutting down in the near future. Is there a way ...
0
votes
1answer
36 views

WooCommerce related products load random posts per page

I'm starting to go a little mad here, I must be missing something obious but I have tried many solutions. My problem: I want to have 6 related products under each product. (Understanding if a ...
0
votes
1answer
22 views

Include woocommerce custom field value in front-end search result

currently the search result only showing all the woocommerce default product field (product title, category, tag, .etc). I've add a new custom field inside the woocommerce product using this code ...
0
votes
0answers
15 views

Woocommerce - Product stays in cart page after I press the delete button

I have a website with Woocommerce and I'm into this issue that when I go to the cart page and I press the x that means deleting the product, the product stays in the cart page, but in the minicart (...
0
votes
0answers
21 views

Code Snippet error on the Woocommerce Cart Page

I find bit struggle with PHP code snippet i feel there is missing something as I'm trying to fix the layout cart in the woocommerce coupon at the checkout pages I have fix it on the Core pages but it ...
0
votes
0answers
19 views

Only show grouped products until products are filtered then show simple products

Currently I am using css to hide ".product-type-simple" and show ".product-type-grouped" and when filters are set then hide the grouped and show simple. It works but with problems due to pagination. ...
0
votes
0answers
12 views

Newsletter subscription discount for woocommerce - Campaign Monitor

We are using Newsletter Subscription for woocommerce and we are using campaign monitor. We want to set up the discount for next purchase for the subscription. Looked for the plugin that can do this ...
0
votes
0answers
48 views

Woocommerce: sort by price and sku - combination of meta values

I'm trying to sort products by price, but have them sorted by sku and not by id for a specific price. So if there are 10 products with the same price, they should be ordered by sku instead of id. I ...
0
votes
0answers
11 views

WooCommerce - Modify order items prior to payment

I am trying to modify order items just before the order is submitted. I have an extra field that a payment processor requires that can only be set at the moment the order is submitted. Is there a ...
0
votes
1answer
18 views

Reverse Cross-Sells (WooCommerce)

When you run get_post_meta( get_the_ID(), '_crosssell_ids',true); you get an array of all the products that the current product cross sells to. How do I reverse that? To get all the products that ...
0
votes
1answer
40 views

Php echo woocommerce price

Hi i am trying to echo with php the woocommerce product price in a specific area at my site. But it only works for single products. Not for variable products. What i must do?
0
votes
0answers
26 views

Woocommerce merging cart and checkout page together

I've go an idea to merge cart and checkout pages into one. Doing it by moving files produced errors but i found a simple, yet effective solution. In order to make cart and checkout page as one, all ...
1
vote
0answers
15 views

Can't create term for product attribute

Please help. I need to create product attribute term after I create a product attribute taxonomy. wc_create_attribute([ 'name' => 'Size', 'slug' => 'size' ]); // This will only work If I ...
0
votes
0answers
17 views

wrong image after importing csv file using woocommerce csv import suite

Good day! I gave up with searching on google on how to fix my problem. I hope you guys can help me. So i'm currently using woo commerce csv import suite but i have a problem on regards the image. ...
1
vote
1answer
16 views

Accessing parameters when adding filter

I am trying to change the out put of wc_get_rating_html using this filter apply_filters( 'woocommerce_product_get_rating_html', $html, $rating, $count); So far this function works and of course ...
0
votes
1answer
35 views

Adding price to woocommerce cart item with get_price gets multiplied with 3?

Similar question: WooCommerce Dynamic Cart Pricing function odb_add_length_price( $cart_object ) { if( !(is_admin() && !defined('DOING_AJAX'))) { foreach ( $cart_object->...
0
votes
0answers
18 views

How can I hide a product marked as “hidden” on woocommerce?

Can you help me with this? I have a product list and what I want is to hide those products marked as hidden on the visibility detail of the product. Here's the code I have: $args = array( ...
0
votes
0answers
13 views

How to force woocommerce to re-render checkout fields?

I'd like to force woocommerce to re-render checkout fields? I supposed I'd have to trigger an action but I searched the documentation and still not sure how to do that. Do I have to force a checkout ...
0
votes
1answer
17 views

Remove WooCommerce JavaScript from footer

I'm using the WooCommerce plugin to offer some products under myurl.tld/shop. I have managed to display the woocommerce CSS and JavaScript files only if a woocommerce page is shown. The problem is ...
0
votes
1answer
12 views

How to fix spacing in address tab in my account page

How to I fix the spacing problem for the address section? Thanks in advance.
0
votes
0answers
12 views

Woocommerce Multiple Stocks

Does anyone has a good idea in how to arrange multiple stocks in Woocommerce? In my project, the custumer has "His own stock" and "His distributors stock" and I'd like to manage both in WooCommerce. ...
0
votes
1answer
32 views

Is is possible to merge pa-color attributes?

Wrongly I created two black attribute for all products. now black color products increases on two different black color attributes with different IDs the problem is Im using ajax products filter for ...
0
votes
0answers
16 views

Woocommerce fullsize images not showing up

I am using the latest version of woocommerce and woozone. Product images show up on my store, but when I click on a product and go to its page, no image is shown. Also, when I go the Media Library, I ...
0
votes
0answers
24 views

WooCommerce REST API wcapi.get('orders') 403

Set-up I connect to my WooCommerce webshop through the WooCommerce REST API Python wrapper, I.e, from woocommerce import API wcapi = API( url="https://mywebshop.whatever", consumer_key="...
0
votes
0answers
35 views

Display Total Price based on Quantity Tier Pricing Model - WooCommerce

I am developing a WooCommerce website with a tier pricing model (using this Dynamic Pricing and Discount plugin). Products prices are fixed in advance and based on quantity bought (see table below). ...
0
votes
1answer
20 views

Different files for order details

I'm developing a theme for woocommerce website. My problem is that to show order details on my account and thank you page, woocommerce only has the following template file: /wp-content/plugins/...
0
votes
0answers
7 views

WooCommerce - How do I assign my Product Picture to my Slider Gallery or replace my slider of my theme with just the picture

recently I bought a WooCommerce theme. This theme came with a slider on the product page. I uploaded several Products with images which got imported via a .csv and ended up as Product pictures. In my ...
0
votes
0answers
18 views

WooCommerce product category permalinks

Is there any way to set WooCommerce product category without category-base word(s)? Current category url, www.example.com/product-category/t-shirt. But, I need to set category url like this one, www....
0
votes
0answers
33 views

Remove woocommerce actions for frontpage

basically i want to remove the default single product actions that woocommerce uses but only on the front page. To attempt this I first just removed the actions like so: // woocommerce hooks for ...
0
votes
1answer
13 views

Move woocommerce shop page image to left

I'm setting up a shop using Genesis and Woocommerce. I have the columns set to one and I added the short description beneath the image and before the button using the ...
0
votes
0answers
18 views

Display tags icons on Woocommerce shop and product pages

I want to dispaly tags icons on Woocommerce shop page and on single product page. Can't find appropriate code to use for that, can you help me with that?
0
votes
0answers
29 views

Modify core files to display products by category

I'm pulling my hair over here searching and trying to modify the WooCommerce core files. So, what I am trying to do is modify my theme's woocommerce.php file because I want to display the products ...
0
votes
0answers
14 views

How get categories name of a specific product

I need to get all categories name of a specific product example: my product X on the product page is under "cat D1", (example cat tree) cat A _ cat B1 _ _ cat C1 _ _ cat D1 _ _ cat E1 _ cat B2 _ _ ...
0
votes
1answer
7 views

Including a Customized Initialize File with a wordpress header

We began this project without using wordpress, and have a significant amount of code related to user and access control that we would like included on CERTAIN pages in the site (namely the shop). We ...