OFF TOPIC. Questions *specific* for this e-commerce plugin have their own forum at https://wordpress.org/support/plugin/woocommerce.

learn more… | top users | synonyms

0
votes
1answer
3k views

Invalid shipping method, WooCommerce [closed]

I am stuck with a issue and am not being able to solve it. I did check the other questions and did other research but I didn't find proper answers this. When shipping is enabled and I try to checkout,...
1
vote
1answer
127 views

Reduce Drop down Menu Width in Wordpress

i have used drop down menu. its have two brands of column one watch another knife. previous watch have 5 column drop down mega menu. i had removed two column. its now showing extra black space. how ...
0
votes
1answer
2k views

Woocommerce get category image full size

i'm trying to get the full size image of my category products. $prod_categories = get_terms( 'product_cat', array( 'orderby' => 'name', 'order' => 'ASC', '...
0
votes
1answer
129 views

Product Category Page in Full Width

Initially the Product Category page is divided into Content Area (70% width) Side Bar Area (30% width) I have removed the side bar area using function.php. However the content area is still in 70%. ...
1
vote
1answer
289 views

WooCommerce product option without tax

I have got a new request from client. Basically he wants to add an additional charge to his products. This charge is tax exempt, but the product itself has a tax class. The charge should be shown as a ...
0
votes
1answer
1k views

What is the code to get the download link for a product in WooCommerce?

I'm trying to add the direct download link of a product to a button, but I'm stuck. What I tried is this <a href="<?php echo $product->downloadable_files; ?>">Download</a> ...
0
votes
1answer
410 views

Woocommerce set single city to sell to

In Woocommerce settings, if "sell to specific countries" is selected as single country, the checkout page shows the country and there is no option to select/change that. How is it possible to achieve ...
2
votes
3answers
2k views

WooCommerce change category url and product base

I want to display the url's like this: for Category: /webshop/categories/hoodies/ for products: /webshop/categories/hoodies/test-product how is this possible without giving me 404 not found ...
0
votes
1answer
1k views

How can I display *only* the child category of a product?

I'm currently using the following code to try and display the child category of products:- global $post, $product; $cat_count = sizeof( get_the_terms( $post->ID, 'product_cat' ) ); ?> <h1 ...
3
votes
1answer
645 views

How to create a custom order status in woocommerce!

I've tried the below code to create custom status. add_action( 'init', function() { $term = get_term_by( 'name', 'shipped', 'shop_order_status' ); if ( ! $term ) { wp_insert_term( '...
0
votes
1answer
220 views

woocommerce list product by id

i have product cat with id=5 and have 10 product i show list 5 product by id as $args = array( 'post_type' => 'product', 'posts_per_page' => 5, 'product_cat' => 5 ); $loop = new ...
0
votes
1answer
2k views

WooCommerce Link to Product Category

I'm creating a template for archive-product.php page in WooCommerce. I would like to have 3 boxes and link each to a different product category. How do I get dynamic link to each product category ...
0
votes
1answer
2k views

woocommerce - how to get product link by id

i have 2 product_cat Product cat 1 id : 6 Product cat 2 id : 8 in my index how to get product cat link with id or slug as: <a href="Product cat 1 (link)">Product cat 1(name)</a> <a ...
0
votes
1answer
474 views

WooCommerce - Adding Product Attributes to CSV Export

I'm trying to customize the WooCommerce CSV Export plugin to add additional columns for two standard product attributes ("fund" and "appeal code"). I'm able to add the actual headers, but can't get ...
1
vote
1answer
262 views

WooCommerce - Multiple meta query not working

Any help on why this multiple meta query is not working is greatly appreciated, both meta_query arguments have been tested independently. I'm looking for bringing Featured products as well as Best ...
0
votes
1answer
1k views

How to allow customers to input a text as a product variation *and* charge per character?

I'm looking for a way in Woocommerce to add a product variation for customers that will allow them to put in their name/custom word(s) up to a certain character limit and the additional price will be ...
0
votes
1answer
135 views

Woocommerce Product attribute not imported with wordpress Importer [closed]

I used the WordPress Importer plugin and successfully imported all content but woocommerce product attributes are not imported. Tried a few different tests, and few different servers. Same result. ...
0
votes
1answer
384 views

woocommerce_register_post action not firing [closed]

I've followed the instructions for adding extra fields to the WooCommerce registration form, and the fields show up and values are added to the database successfully. However, I can't validate the ...
0
votes
1answer
210 views

can we import csv (woocommerce products) to MySql

can we import csv (woocommerce products) to wordpress database..? For example let just say I've an woocommerce products list in a csv file. Now I want to store all the products details in my database.
-1
votes
2answers
3k views

WooCommerce - Overwrite action hook [closed]

Within the WooCommerce template file "content-product.php", I'm trying to overwrite the following action hook: /** * woocommerce_shop_loop_item_title hook * * @hooked ...
2
votes
1answer
9k views

How to get current product category ID in product archive page

If I am on a product archive page then how can I get current product category ID in product archive page Please help I am using this but no result global $wp_query; $category_name = $wp_query->...
0
votes
1answer
2k views

Programmatically create product category and add thumbnail in woocommerce

I'm trying to create product-(sub)categories on a WordPress installation. The (sub)categories part is no problem at all, but I can't seem to find a way to add the thumbnail image to the specific ...
0
votes
1answer
12 views

Woocommerce hidding pages

I am trying to build a multi-vendor affiliate website. I wanted to know how to recognise a user type (f.e. vendor, customer ) while user login's so I can hide some pages from them for example Vendor ...
-1
votes
1answer
347 views

Where to add h1 tags to category pages?

We are looking to add h1 tags to category pages on this site which are currently missing: http://elliawear.com/product-category/accessories/jewellery/ The site uses WooCommerce and the SEO Plugin ...
0
votes
1answer
630 views

woocommerce blank page after clicking add to cart [closed]

I am building a custom plugin based on woocommerce. As a part of this development I have added few custom fields to single product page at woocommerce_before_add_to_cart_button hook. These fields will ...
0
votes
1answer
1k views

How to delete woo commerce order pragmatically? [closed]

I am trying to delete an order from database i was tried using bellow function but this is not working.can any body tell me how to delete an order from db using order id. <?php ...
0
votes
1answer
350 views

woocommerce single product page hook not working

I have written a function which will display a date picker and a select box. I want this function output to be displayed on woocommerce single product page. So I assigned my function to a hook ...
0
votes
1answer
132 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", ...
0
votes
1answer
117 views

Unable to show 4 products in a row

Above is my shop page, I want to show 4 products in a row, But after adding filter for 4 columns in functions.php, This problem occur. If somebody go to direct my shop page everything is fine, but if ...
1
vote
1answer
111 views

How to Use PHP Code In-Page?

I am looking to create a dynamic Add-to-Cart button. The problem is that I need my server to dynamically create the "add-to-cart" URL. Currently, I have a static example built here at this link. ...
0
votes
1answer
451 views

Sort orders by custom order meta - Woocommerce Orders admin page

I'm trying to sort my Woocommerce orders by _payment_method on the 'Orders' admin screen (edit.php?post_type=shop_order). So far I am able to sort by 'Pay_by_phone', but it sorts everytime the page ...
0
votes
1answer
56 views

Remove sale signs from site in branded? [closed]

I recently developed a Wordpress site, it's developed with Woocommerce plugin. Here is my site link. It's showing sale sign top of the every brand. How to remove it?
0
votes
1answer
471 views

Get custom category image from menu

I've got myself into a little pickle, and while I'm so close, my understanding of PHP is letting me down. I want to display the image associated with each category in the menu - working from the ...
1
vote
2answers
489 views

Hide a menu-item and its submenus and display a 'Log in' link if the user is logged out

I need, somehow, to enable that when you logout, that 'My Account' item is getting hidden from the navbar, and instead it displays a 'Log in' link. The item 'My Account' also have submenus with the ...
0
votes
1answer
225 views

Convert external/affiliate product to simple product in Woocommerce

it will be highly help if you are able to give me some solution of my problem.. I have uploaded about 2000 products from csv to my woocommerce and each of the product is set as external/affiliate by ...
1
vote
1answer
688 views

How do you filter the list of states when country is selected? [closed]

Seeing as there is no StackExchange site (or any other forum, that I can tell) made for WooCommerce questions, I'll run the risk of being shot down for being "off-topic". I need to add a third ...
1
vote
1answer
223 views

How to get term name with link for specific ids

I am trying to display custom category on archive page. $term_id_array= array(1,2,4,50); how to retrieve the term name with link for these term_ids My custom post_type name = product taxonomy = ...
0
votes
1answer
53 views

Create a regular post for every WooCommerce order

I'm trying to make a post, which will list product meta(every order will have only one product) and on that post I want to make visible product variations. So the link will be generated and sent to ...
-1
votes
1answer
76 views

Setup WooCommerce to properly handle inventory with variable product?

I am setting up a store that has sells 2 part products (we sell motorcycle mounts and cradles for your gadget) we have 20 different products and 20 different accessories that can be combined with them....
-1
votes
1answer
125 views

WooCommerce - Checkout suddenly stops working [closed]

From one day to the next apparently the checkout, specifically selecting a payment option stopped working. I can't figure out why, but when selecting an option, the page keeps jQuery reloading. this ...
0
votes
2answers
92 views

How to get related category/categories in WordPress archive page

I am using WooCommerce in WordPress. I have few categories of products like these, Example: Product 1 Category (//parent) -- Category 1 -- Category 2 -- Category 3 -- Category 4 Product 2 Category ...
0
votes
2answers
236 views

How to order WP_Query to group results?

I have a list of products in WooCommerce that have titles like so: Please note: The "groups" are just for myself, they are not categories etc. All products are the same type of product, just two ...
1
vote
1answer
168 views

Filter available WooCommerce payment gateways by role [closed]

I know WooCommerce is not well-received here, because it's not directly related to WordPress, but as support on the WooCommerce forums is just that terrible and people here having proven they're ...
0
votes
1answer
96 views

WooCommerce “Checkout Now” button [closed]

Okay so I want to add an additional button to the single product page that says "Checkout Now". This checkout now button should go directly to the checkout page, not the cart page (like the regular "...
0
votes
1answer
577 views

How to bypass Woocommerce checkout validation from the plugin? [closed]

I need to bypass any validation process in Woocommerce checkout page when Process Order button clicked. What filter or action hooks should I use?
1
vote
1answer
2k views

WooCommerce - Create Products Programatically [closed]

I'm writing a plugin that will automatically import products via JSON API. I need to programatically create/update products. I did a research and it seems everyone is using wp_insert_post() and ...
1
vote
2answers
8k views

Display featured products through custom loop in woocommerce on template page

I was wondering if someone could help me out. I would like to display 6 featured products from my woocommerce store on my home-page.php template. After some researched I found that the right way to do ...
0
votes
1answer
365 views

Structure of postmeta meta_value for woocommerce product download

So I'm working on a monster script to port all of our existing stuff from Joomla/Virtuemart to Wordpress/WooCommerce. So far I've got just about everything done with moving over our product ...
-1
votes
1answer
648 views

I want to filter my products with attributes [closed]

I have ebook store, where all the books are listed, everything is done.. In products, publisher and author added as a custom attributes. Now I want to filter the products on the basis of attributes......
0
votes
2answers
1k views

How can I get the ID for an archive page? [closed]

I have woocommerce page for my products that is treated like an archive page. I need to get the ID for the archive page but obviously if I use $post->ID or get_the_id(), etc. I get the id for the ...