An e-commerce store plugin. Questions specific for this plugin are off-topic.

learn more… | top users | synonyms

1
vote
1answer
148 views

WooCommerce: Add content prior to or after checkout form

I'm trying to produce a message to appear prior to (or after) the checkout form on the checkout page (Example: https://susieoshandbags.com/shop/checkout/). So I did the following: add_action( ...
1
vote
1answer
501 views

How to get Woocommerce order product info

I am trying to get all woocommerce orders and find info about the products in each order. I have seen many examples on here and elsewhere on the web and they all seem to say to do the same thing but ...
1
vote
1answer
39 views

Convert Wordpress Woocomerce product to Wordpress post

This question look like terrible :). We have a shop with more than 10.000 product, but at this time we dont have bussiness and we want to convert woocomerce product into new database worpdress post ...
1
vote
1answer
155 views

Sharing woocommerce product data

I am needing two installs of WordPress and both are being used as an online shop. The problem i am having is that, I am having to update two sites with the same products and wanting to find a way to ...
1
vote
1answer
193 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 ...
1
vote
1answer
218 views

How to handle a missing page.php?

I'm using the free Wordpress theme Stargazer by Justin Tadlock. I'm trying to integrate a plugin (WooCommerce) with it and after reading the documentation, I need to find the page.php file, copy the ...
1
vote
1answer
1k views

Woocommerce displaying product categories and products on custom theme

Am trying to create custom Woocommerce supporting theme in Wordpress. What am facing is regarding the displaying of Product Categories when accessing the main category and 1st level of categories. ...
1
vote
1answer
315 views

WP_Query wooCommerce category

What is the favored way for searching for a certain category in wooCommerce? Or maybe only checking if it is existent already? My approach for this was: $searchCat = new ...
1
vote
1answer
271 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 ...
1
vote
1answer
195 views

Hiding taxonomies with no children WP_Query & tax_query

I have this code which has taken over 7 hours to put together through research but the last hours or so I have hit a brick wall! I require the taxonomy title to be hidden if there are no posts ...
0
votes
1answer
15 views

Check if value exists before saving

I added an extra registration field: function wooc_extra_register_fields() { ?><p class="form-row form-row-first"> <label for="billing_cpf"><?php _e( 'CPF', ...
0
votes
1answer
9 views

Outputting subcategory title AND items on Category page

When a user clicks on a category, if there is a subcategory, I want it to appear in an h2 and then the items below it. For example: Click on shirts See Hanes in title, then items HA101, HA102, ...
0
votes
1answer
11 views

How to set value/term of a Woocommerce attribute text field in admin panel?

I am developing a plugin which is supposed to auto-fill the attributes text field. There is a URL text field where user enters URL, on focus out I trigger a AJAX call through which I am able to save ...
0
votes
1answer
30 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 ...
0
votes
1answer
29 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. ...
0
votes
1answer
85 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
9 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 ...
0
votes
1answer
35 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
34 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 ...
0
votes
1answer
18 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 ...
0
votes
1answer
23 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 ...
0
votes
1answer
69 views

WooCommerce set specific currency on site shop

The challenge is the following: How to set the output price converted in local currency in frontend site shop? We need to have base price in USD in admin area, but on the site shop we need to use ...
0
votes
1answer
102 views

Remove price from Woocommerce variable product dropdown menu

I'm trying to hidden or remove the price on each variable products inside dropdown menu on a single product page. Please see image attached below. I believe here is the codes that needs to be ...
0
votes
1answer
40 views

Use WP_Query Data In Cookie

I've collected an array and set-up a cookie via functions.php, both work fine. However, I really need to post the data to the function and set the cookie as this information will vary per customer. ...
0
votes
1answer
40 views

Woocommerce Theme Reviews / Comments

Ok so i'm creating a Wordpress theme and i'm at the point where i'm trying to get a list of the reviews but the default comments_template() HTML isn't how I need it. I don't have a /comments.php ...
0
votes
1answer
200 views

How to display ACF taxonomy checkbox links on WooCommerce product category archive

I am using the Advanced Custom Fields plugin, and have several custom fields that appear on the WooCommerce product category edit screen (where you add/edit product categories), which then display the ...
0
votes
1answer
59 views

How can I allow access to two user accounts using one login?

I have spent the last two hours searching for this and I cannot find a solution to my problem. I have a WP site with WooCommerce running which allows to users to create their own store. My client ...
0
votes
1answer
32 views

Run one-time script calling plugin functions

I want to add a product programmatically using a wordpress plugin but programmatically as entering it manually is a hassle. I have a little bit of programming experience. I found this: What is your ...
0
votes
1answer
196 views

Move payment options at checkout in WooCommerce

I'm using WooCommerce and i'm new to both Wordpress and this plugin. I have downloaded a free theme which I will configure, however I can't figure out how I can change the checkout template. What I ...
0
votes
1answer
129 views

If WooCommerce Stock Updates, Also Update Specified Field Values

I would like to have a function that should update the Est. Dispatch Date Field ) in whenever WooCommerce Stock Value / Stock Amount changes even when order is placed and stock amount is reduced by ...
0
votes
1answer
88 views

How to get price of my products show in snippet on google?

I use wp e-commerce plugin woocommerce to sell my products online. I am trying to figure out how to get prices and reviews of my products shown in snippets on google. Is there a plugin that can help ...
0
votes
1answer
72 views

Insert post_name from sql query

I have a script which is add product into wp_posts table. From this script, I store the name of this products into post_title field, but I don't know how to generate the post_name for a particular ...
0
votes
1answer
56 views

How to search for categories instead of products in Woocommerce?

I have a webshop with over 30.000 products. I was wondering whether it was possible to, when you search to do so that it searches for categories, rather than products as I get a ton of products when I ...
0
votes
1answer
113 views

Can't show Woocommerce product category description

I'm trying to show product category description on a Woocommerce pdf invoice. Here i'm using this code , but not showing anything. $cat_id = $category->term_id; $term = get_term( $cat_id, ...
0
votes
1answer
103 views

Customizing $product->get_title() function

i'm customizing a popular CSV exporting tool for Woocommerce. I've got an issue on extracting names for products. Look at this line of code: $product->name = get_the_title($product->ID); ...
0
votes
1answer
295 views

Unable to display custom fields on WooCommerce product pages

I've set up some custom fields using the existing 'custom fields' panel on a WooCommerce product page. I'm unable to display these on the front end. My technical knowledge is limited but I've tried ...
0
votes
1answer
42 views

How do you search for a post by custom taxonomy?

I'm trying to search for the latest post that has a custom taxonomy attached to it. I've used the Advanced Custom Fields plugin to add a custom taxonomy called 'brand_post_link' which allows users to ...
0
votes
1answer
184 views

Changing Woocommerce categories programatically

for the last two days I am trying to find a solution to this little problem. I want to change the categories of certain products programatically, so far I have this It seems quite logical for example ...
0
votes
1answer
131 views

Is removing orphaned wp_postmeta records safe?

I am using woocommerce as a shopping cart on a wordpress site. Products and Product Variations are each stored as records in the wp_posts table. Each of these Variations have aprox. 15-20 associated ...
0
votes
1answer
125 views

Custom Search Template for Custom Post Types

I know this is asked a million times, and I've found the solution. It seems fairly straight forward but it's not working for some reason. I wonder if it has something to do with the fact that I'm ...
0
votes
1answer
293 views

Blank search results on custom search

I have a custom search with the following line of html in the form: <input type="hidden" name="post_type" value="product" /> This correctly appends: &post_type=product to the search query ...
0
votes
1answer
399 views

Display featured products by category

I have this code in my themes' shortcode to display featured product rating product like this. But I need to get product by category show. Which code do I have to add. Any suggestions? if($type == ...
0
votes
1answer
156 views

Options to develop a non-ecommerce catalog?

I'm looking to incorporate a product catalog into a client's website. I need the product display functionality in terms of being able to display a grid of categories with thumbnails, then browse each ...
0
votes
1answer
37 views

Holding 2 wp_user in the same action (to update billing_email when user_email is updated)

iam trying to update woocommerce billing_email when user_email is updated , the problem is how to hold two objects from wp_user within the same action , in this code add_action('profile_update', ...
-1
votes
1answer
43 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 ...
-1
votes
1answer
31 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 ...
-1
votes
1answer
60 views

How can I edit the WooCommerce Mini DropDown Cart to read as follows

Currently, this code returns "Quantity x Price"... so e.g. 2 x £3.00 <?php echo apply_filters( 'woocommerce_widget_cart_item_quantity', '<span class="quantity">' . sprintf( '%s &times; ...
-1
votes
1answer
224 views

How to add a custom text for order confirmation email template woocommerce

Hi i would like to add a custom text in order confirmation email template . Currently i am not using woo commerce tax option, But i would like to mention my product has 25 % including vat in email ...
-1
votes
1answer
87 views

Issue On Listing Woocommerce Parent Tag List

I am having some issue on getting top level terms of product_cat Taxonomy of WooCommerce First of all I have a code which list all Terms in product_cat as: $terms = get_terms("product_cat"); if ( ...
-1
votes
1answer
892 views

Link Back to Parent Category - Woocommerce

I´m using woocommerce and a custom post type=product and taxonomy=product_cat. I need a link back to parent category on every single product and category pages. Already read several posts in the web ...