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

-3
votes
0answers
24 views

Customize Woocommerce Product Widget to show only free products

What I want to do is to show only products which _sale_price is equal to zero. I have a created a new 'case' in WC file responsible for class-wc-widget-products.php like that: case 'free' : ...
-4
votes
0answers
22 views

Woocommerce API

I am trying to take control of my e-commerce website using the Woocommerce API and PHP, I'm wondering if I can add products, edit price and stuff using only the API and PHP if i can't , with wich ...
1
vote
1answer
513 views

Identify a Woocommerce page by Wordpress conditional tags

we have a website running on WPMU, and the main site is using Woo-commerce and the sub sites doesn't use that. I use conditional statement in my meta title with following code: <title> <?php ...
-4
votes
1answer
45 views

Changing sale price programmatically, but it's not shown on front-end

I am importing sales prices from an inventory API and it works well. I'm setting the product price via meta keys, along with scheduled dates, and it is working; I can see them in product view and in ...
-2
votes
1answer
32 views

Wordpress reset password button not working

I tried all the way but I didn't find the reason behind so that I can why this WordPress, woo commerce reset password button not working.I am using Spa Lab | Beauty Salon WordPress theme. I tried ...
-1
votes
0answers
14 views

Problem in creating a new product with Woocommerce REST API

Below code is a sample code in WOO REST API documentation on how to create a simple product, but I think it has a bug in categories associative array. Could someone please clarify this? Is it ...
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
35 views

Adding my own custom template page but got white page

I'm working on a e-shop with WordPress and Woocommerce. I bought a template and i'm looking for create my own custom single page. So i followed this tutorial but when i tried to acces to my page with ...
3
votes
1answer
3k views

Edit tag cloud widget number

By default, the WordPress tag cloud widget has a set amount of 45 tags to display. This can be seen in the wp-includes/category-template.php file. By default, the WooCommerce plugin which I have ...
-2
votes
0answers
15 views

Remove hook from a woocommerce class [duplicate]

I would like to remove a specific action from the class "class-wc-gateway-bacs.php" // Customer Emails add_action( 'woocommerce_email_before_order_table', array( $this, 'email_instructions' ), 10,...
-2
votes
1answer
57 views

Keep getting PHP memory error [on hold]

I'm building my custom menu on my WordPress/WooCommerce site and I'm only about 20% done with the number of links I need on the menu. However, now I just get a PHP memory error when I try and save ...
-2
votes
1answer
70 views

WooCommerce - Complete Order when an action occurs

I'm having trouble with WooCommerce and Custom Post Type/Custom Fields. I have an application where a new WooCommerce order automatically creates a new post (CPT = "audits"). The post has some custom ...
0
votes
1answer
13 views

Display list of categories that contain products with a specific tag

I've tagged some products with 'tag1', 'tag2' or sometimes both. I want to list the categories that contain products with a specific tag, so 'Cat1' will only be listed if it has a product that is ...
-1
votes
1answer
538 views

Woocommerce hidden fields with meta keys and values. how?

Im trying to make a Frontend Publisher work with woocommerce, and need to set three hidden Meta Key fields with values. How do I go about doing that? The meta is: _manage_stock:yes _stock:1 ...
-3
votes
0answers
14 views

Comments Are Overlapping into Submit a Comment Field [closed]

Woocommerce product comments/reviews are overlapping into my 'leave a review' field. Pic: http://i67.tinypic.com/348ixcg.jpg What I have done is added margin-top: 200px; to the 'leave a review' ...
-6
votes
0answers
23 views

based on shipping method want to display the delivery date [closed]

If the user want to pay 40/- for shipping i delivery date will in next 7 days and the user select 70/- for shipping i will deliver in next 2 working days based on that price they pay i want to display ...
-5
votes
0answers
24 views

What is the code to get the download link for a product in tabs in WooCommerce? [on hold]

what I tried is this add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' ); function woo_new_product_tab( $tabs ) { $tabs['downloads'] = array( 'title' =&...
-2
votes
0answers
16 views

How to make woocommerce looping images of one product in the content-product.php

I need to put via woocommerce shortcode 'product' a product, and it must to change image (second image of product) when hover.There is the code of content-product.php: <?php if ( ! defined( '...
-1
votes
0answers
14 views

Adding read-only field to WooCommerce orders [closed]

I need to add a custom field to orders, named "shipping", where I would be able to enter some information about shipping date. It should be read-only for users, meaning that they would see this field ...
-4
votes
0answers
29 views

Changing code output of 'woocommerce_content()'

I am relatively new to WooCommerce and have been working with a custom template. Anyway, on my shop page it is using woocommerce.php: <?php get_header(); ?> <?php if (is_product()) : ?> &...
-1
votes
0answers
27 views

Email verification function inside ajax registration pop up

I have created a registration popup form following this tutorial and its working. Also installed woocommerce user email verification for sending verification email to newly registered user. When i ...
-1
votes
1answer
49 views

Update wordpress menu with woocommerce products

For aesthetics purposes, i chose to keep the menu from my theme (twentyfifteen). I have a large catalog of products and i use Woocommerce to keep them into categories and products. Everytime I add a ...
-3
votes
1answer
48 views

WooCommerce - Setup Shipping Method Cost per Product

I'm working with a client that wants to provide a special shipping setup for retail sales: All products should have Free (Standard) Shipping All products should have an "Priority" shipping method. ...
-1
votes
0answers
27 views

WooCommerce Shop Page Display Product Div as a Weird Loop

function neato() { global $product; if ( $product->get_permalink() ) { echo '<script src="https://code.jquery.com/jquery-1.10.2.js"></script><div class="new-projects"></div> ...
-1
votes
0answers
28 views

Advanced search with multiple fields

I'm using wordpress + woocommerce and I need to make an advanced search. I created the form: So one field must search at the post_title and the second at a producit attributte value. I made some ...
0
votes
1answer
28 views

Display x number of terms and exclude hidden

I use the following code to exclude terms with hidden products. I want to display only 5 terms but when I add the parameter number it also take account of hidden terms so I get fewer terms depended on ...
-5
votes
1answer
34 views

woocommerce get product variation [on hold]

How can I get the currently selected product variations in the functions.php file? My goal is to add a button "Request price" to the product pages. When you click on the button a mail window should ...
-1
votes
0answers
46 views

Woocommerce persistent cart on multisite

I am trying to make a global cart plugin for woocommerce. I want to use the details stored by woocommerce in the persistent cart since it is stored as a user meta and user tables are shared across a ...
-2
votes
1answer
78 views

Add woocommerce.css in template?

Why file plugins/woocommerce/assets/css/woocommerce.css for my template can not be read? Please look this image :
-4
votes
0answers
41 views

Woo commerce star rating

I am using woo commerce but I want to customise the star rating for hearts instead is there anyway I can do this? I already have the heart PNG but don't have a clue how or where to implement this? ...
0
votes
1answer
52 views

Private post hidden from Admin too

I have a strange problem. I am running a woocommerce site with several levels of privileges/roles. I wanted to reserve a group of products for specific users and was anticipating modifying the user ...
0
votes
1answer
62 views

Custom query filter not working on woocommerce category page

I am trying to make custom filter for my woocommerce website. Everything is working fine in the shop page, but when I go to the archive page the filters are not working. I am recording each filter ...
0
votes
1answer
35 views

Wordpress using get_term to retreive slug not working as expected

Im using the below code to try and get the slug for the current category and the parent category. Ive managed to get as far as getting the currently cat slug but the parent displays in readable text ...
-2
votes
0answers
45 views

Can't change woocomerce checkout field to optional

I am trying to change checkout field like address to be optional (I need it only for companies). Therefore, I am using following code: $fields['billing']['billing_address_1'] = array( '...
0
votes
1answer
94 views

Changing a theme's search function to only show results from woocommerce?

I am very new and trying to learn as I go. I bought a premium theme from themeforest, without checking the functionality of various pages. Tried their support with no solution offered. Now I am ...
0
votes
1answer
99 views

Woocommerce Product Add-ons - Auto-select first option

The agency I work for are trying to get a client's website to auto-select the first option on the maintenance packages for their products. Currently, we are using an if statement within a foreach. ...
0
votes
1answer
181 views

Cannot login in Wordpress even after changing hash password in phpmyadmin

An hour ago I changed the password of my Head Admin user. But after this I was not able to login anymore. So I have tried to reset the password in PHPmyadmin with the md5 encoding and even with this ...
-1
votes
1answer
71 views

The plugin generated xxx characters of unexpected output during activation

I know this question has been asked 100 times, and I've googled it and tried multiple solutions, but I'm still getting this error. I removed all the white space, tried to encode it in UTF-8 in notepad ...
-5
votes
0answers
25 views

Change Woocommerce total cart rates [on hold]

I have two categories names Regular Notebook Personal Notebook I want user to give 2 options in cart page before checkout. Canada England First Option: I want if user select only Regular ...
-4
votes
1answer
518 views

Creating products using a REST API

I want to build a wordpress website which will have a lot of products (for beginning 0.5 million). Therefore, an third part API will be used to create the woocommerce products. However, i'm confused ...
-1
votes
1answer
25 views

Adding Extra Customer Email In Woocommerce Checkout

I want to know how to call out a extra email filed in woocommerce checkout page. By default there is a email filed for customers to fill in, once he/she checkout they will receive the order copy. I ...
-1
votes
0answers
28 views

How to show sub category instead of product on woocommerce product category page

I have tried in woocommerce>setting>product>display> Default Category Display >show subcategories but is not working. I'm using woocommerce 2.5.4 and WP 3.5.4 with goodstore 3.0.3 theme. is there ...
0
votes
2answers
463 views

WooCommerce Storefront - Exclude category from product categories in homepage

How would I exclude a specific category from the product categories in the homepage? The function is in /inc/structure/template-tags.php: function storefront_product_categories( $args ) { if ( ...
-1
votes
0answers
38 views

“Sorry, your session has expired” error on woocommerce checkout

I just discovered that my checkout page is not working for all non-logged (everybody) potential customers. Im using woocommerce and an error message "Sorry, your session has expired. Return to shop" ...
-2
votes
0answers
16 views

Hiding Sale Price on Product Page Until Customer Adds to Cart or Checkout

We are looking for a piece of code that will allow us to hide our product sale price on the product page; display a message of our "Sale Pricing Available During Check Out". In return, it will show ...
0
votes
1answer
44 views

WP_Query: Exclude hidden products from WooCommerce product list

I hope this is not too specific to WooCommerce. I have a nifty shortcode that displays a list of all my products with SKUs. However, it also includes products that I have published but have set the ...
-1
votes
0answers
27 views

Woocommerce add to cart button doesn't work with custom templates

I'm using twig for my WP templates and they work just fine. I've installed WooCommerce and all its templates into my theme folder so that I can overwrite them. I'm not planning to use twig with ...
0
votes
1answer
61 views

WooCommerce Variable Product Price not showing on single product page

I made custom attribute for variation other than size or colour, but when i apply as variation to this attribute its not showing on single page.
-3
votes
0answers
20 views

Wordpress - change sorting of search results

the WP product search (WooCommerce) does a search of a term in the title and the product texts. Can I use a snippet in my functions.php to alter the search results in a way that the ones who have the ...
0
votes
2answers
33 views

Add key and value to an array in another file

In my site I'm using the Product Archive Customizer plugin for WooCommerce. Great plugin. However, there is an option to set the qty of products shown per page. The next piece of code is responsible ...