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

learn more… | top users | synonyms

8
votes
3answers
21k views

How do I get WooCommerce to automatically recreate pages? [closed]

I had to uninstall WooCommerce plugin (I deleted the tables it created as well) and now I reinstalled the plugin and I doesn't automatically recreate the WooCommerce Pages. Am I stuck having to ...
6
votes
3answers
35k views

How to Display Product specific to a category with WooCommerce Plugin? [closed]

I'm using plugin Woocommerce to do shop online. I have many categories for example shoes, clothes and so on. How can I display the products of specific category? I see such product loops of on the ...
5
votes
2answers
6k views

Woocommerce Add Variation Product to Cart from custom link [closed]

I am trying to add a variation product to my cart directly through a link. I am setting the variation_id with the query string. As far as I can tell I am sending the data the exact same way as the ...
5
votes
1answer
48 views

Wordpress Multisite: Adding actions to only one site

I have Wordpress Multisite installed with WooCommerce network activated. I want to add an action to a hook in ONE of the sites that has WooCommerce installed, instead of all of them. For example, I ...
3
votes
2answers
696 views

How to correctly add Javascript in functions.php

I would like to remove some ugly looking arrows that are standard on cart buttons in WooCommerce. To achieve this, I found a tip of adding the following code, which should remove the arrows when the ...
3
votes
2answers
121 views

User profiles and object associations

I'm coming over from Drupal and I'm very used to the way Drupal handles users and objects (called nodes over there.) I have to learn how WordPress handles these same situations. Since we're going to ...
2
votes
2answers
12k views

Hide prices and checkout functionality in woocommerce

I know this question might be too broad, but I'm looking for a bit of direction. My client has a woocommerce store with 30-40 products. For whatever reason they do not want to sell online anymore, ...
2
votes
1answer
3k views

( Woocommerce) How to get the user belonging to an order? [closed]

I am making a function which needs to be called after an order is completed within WooCommerce. For this I'm using the *'woocommerce_order_status_completed'* hook. I want to check if the order has a ...
2
votes
1answer
211 views

Woocommerce custom shared taxonomy

I've added custom shared taxonomy season for product type from woocommerce and my custom type care. Care type and taxonomy are created in functions.php file of my custom theme. add_action('init', ...
2
votes
4answers
9k views

Changing Woocommerce Product Description [closed]

I've been changing the way that the Single product page looks. I've moved a few things about by hooking into Woocommerce and also editing the css. Out of the box the single product page shows the ...
2
votes
2answers
442 views

Creating Multiple wp_localize_script for Shortcode?

I have a shortcode that displays recent WooCommerce products in a carousel, however i would like the end user to be able to use the shortcode multiple times on the same page, currently when this ...
2
votes
1answer
6k views

WooCommerce - How to Add a Custom Field to Cart Items and Cart Totals [closed]

I am using WooCommerce plugin and have the following query: Within the single product page, I have a product where based on certain selections by the buyer, a shipping cost value is calculated, which ...
2
votes
1answer
320 views

WooCommerce Always Include Shipping Information in Checkout [closed]

I have virtual products in my store but I still want to collect the shipping information from my customers so that I can mail them a card at the end of the year. But a cart with virtual products ...
2
votes
0answers
3k views

How to get Woocommerce Variation ID? [closed]

I am trying to create some additional functionality on my Woocommerce backend where I add a custom field to the variations section of backend of Woocommerce. However I cannot for the life of me ...
1
vote
1answer
5k views

How to add product in woocommerce with php code [closed]

I want to add products with PHP code like below: $post_information = array( 'post_title' => 'new item shop', 'post_content' => 'this is new item shop', 'post_type' => 'post', ...
1
vote
3answers
2k views

Woocommerce override mini-cart.php not working [closed]

I am trying to override mini-cart.php which is template file located at woocommerce/cart/mini-cart.php. It should override behaviour of woocommerce widget cart but it isnt working. I can make any ...
1
vote
2answers
162 views

WordPress Displaying Thumbnails Vertically

WordPress is displaying my thumbnails vertically and VERY LARGE. Specifically it's displaying WooCommerce product page thumbnails vertically and VERY LARGE. Can't seem to figure out why or what piece ...
1
vote
1answer
394 views

Top level parent taxonomy ID

At the top of a product archive page I am trying to display a list of product categories. The rule should be that the list always shows the direct children of the top level. There are several answers ...
1
vote
1answer
393 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 ...
1
vote
1answer
147 views

Changing the Woocommerce breadcrumb menu [closed]

Currently I making changes to Woocommerce's breadcrumb menu. I’m trying to get it to look like this: <div> <ul class="crumbs"> <li> ...
1
vote
1answer
98 views

Product admin page breaking with too many product variations [closed]

When adding more than 100-155 variations to a variable product our admin page seems to break and loose all it's layout and i'm not able to edit anything to do with the product. Some of our products ...
1
vote
1answer
1k views

Make WooCommerce pages accessible for logged in users only

I have a website using WordPress, and an e-commerce using WooCommerce. I would like my shop (and all its pages) to be seen by logged in users only. Via the User Access Manager plugin, I have denied ...
1
vote
1answer
1k views

woocommerce - How Can I add author metadata for a product? [closed]

Hi I am using woocommerce with Mystile Theme for a book store. How Can I add author taxonomy for a product? I need to set an author for every book I am selling and possibly to search trough, author, ...
1
vote
0answers
313 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
0answers
68 views

SSL Certificate and Dedicated IP address with Woocommerce WordPress site [closed]

I have wooCommerce WordPress site (in develop phase), when i searched to have a good hosting company they advice me to go with VPS solution not shard solution because in VPS i can have multiple ( SSL ...
1
vote
0answers
304 views

Pretty product permalinks with Woocommerce shop/category/subcategory/product-name [closed]

I'm having a tough time figuring out how to do pretty permalinks for Woocommerce with this kind of structure "www.page.com/shop/category/subcategory/product-name" The best I could come up with was ...
1
vote
2answers
857 views

How does Wordpress redirect to WooCommerce shop page? [closed]

I'm creating a plugin for WooCommerce, it needs a parameter in the url of shop page like this http://domain/wp/shop/?param=value. It worked fine until I set the shop page as front page, when I access ...
1
vote
0answers
76 views

WooCommerce Customize the archive-product page [closed]

How to modify the archive-product.php in Woocommerce to sho the results with a bigger thumb and in list view not in grid. There is a plugin for that but this is not working for me since I will use a ...
1
vote
1answer
542 views

How do I delete all UNUSED images from my uploads directory?

I am trying to clean out my uploads folders as they are now starting to take up too much room on my server. I have tried to use plugins to achieve this end such as DNUI and Cleanup Images but these ...
1
vote
1answer
206 views

Add sku to product url woocommerce [closed]

I want to make url's with the following structure: www.mywebsite.com/wordpress/product/postname-sku for example: wordpress/product/apple-ap01 Is this possible? And also tell if this done with ...
1
vote
1answer
115 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 ...
1
vote
0answers
221 views

Woocommerce - sort by discount in dropdown menu - woocommerce_get_catalog_ordering_args [closed]

I have searched and searched for a solution for adding a "Sort by Discount" to the dropdown on the shop page in woocommerce. I need to add a calculation such as this somewhere: $percentage= ...
1
vote
0answers
157 views

How to get tabs for products on product category pages? [closed]

My tabs.php file looks like below in wp-content/themes/mytheme/woocommerce/single-product/tabs/tabs.php file. ob_start(); do_action('woocommerce_product_tabs'); $tabs = trim( ...
1
vote
1answer
1k views

WooCommerce is slow with many categories [closed]

I'm struggling a bit with WooCommerce (and WordPress) being a bit slow. I have a development store for a customer with the following stats 5,319 Products 2,437 Product Categories Categories are ...
1
vote
0answers
484 views

Override a theme's WooCommerce template files with plugin [closed]

A plugin I'm working on, has it's own WooCommerce template files which override the default WooCommerce templates. I know I could make a child theme with a woocommerce folder but I'm trying to make ...
0
votes
3answers
1k views

WooCommerce: Translation lost on AJAX call in Checkout page [closed]

I'm using WooCommerce for a site that I'm currently working on. And I'm creating it for a language other than English. I do the translations by means of the .po file. The issue that I'm encountering ...
0
votes
1answer
190 views

How to check if woocommerce is activated in theme

I'm creating a theme with woocommerce which has the following: <ul> <li> <?php if ( is_user_logged_in() ) { ?> <a href="<?php echo ...
0
votes
1answer
57 views

Woocommerce sidebar not loading in theme

I've installed Woocommerce into a theme however as it wasn't configured for Woocommerce I'm running into a problem. Client wants a sidebar to show catagories so I'm trying to pull in Woocommerce ...
0
votes
2answers
29 views

Question on WooCommerce Syntax

The Below syntax removes the "Related products" from appearing on the Single Product page, but what does the 20 stand for ? remove_action( 'woocommerce_after_single_product_summary', ...
0
votes
1answer
139 views

Allow unfiltered HTML for not logged in users when saving a post

I'm using this code: $var1 = $_GET["t1s2ninput"]; $var2 = $_GET["t1s2pinput"]; $new_post = array ( 'post_title' => 'Title <dl class="variation"> <dt>Variation: </dt> ...
0
votes
1answer
41 views

Add javascript to a woocommerce page template

I have the following code in my functions.php add_action( 'wp_enqueue_scripts', 'dc_datepicker_options' ); function dc_datepicker_options() { if ( is_page_template( 'single-product.php' ) ) { ...
0
votes
2answers
62 views

Hide a Menu Item on Login

I am using the following code to hide a menu item when a customer is not logged and show it when a customer is logged in. .hide-item-not-login{ display: none !important; } .logged-in ...
0
votes
2answers
76 views

How do we exclude multiple pages (like opposite of is_page)

Scenario I have a following customized format for the website with Woocommerce. <?php if(is_shop()) {?> There are certain css styles, JS options used for this particular page <?php } ...
0
votes
2answers
230 views

Use meta boxes inside an archive page template for Woocommerce

I'm creating my own Wordpress theme, and I'm trying to make it compatible with Woocommerce. I understand pretty much everything about theming woocommerce, including copying the template files and ...
0
votes
1answer
2k views

Display All Products by Category with WooCommerce

With WooCommerce, I want to display all the categories in a store as headings, with all of their products listed below in an unordered list. Is this possible to do? I've seen a few things that'll let ...
0
votes
1answer
589 views

Woocommerce include custom stylesheet after woocommerce styling [closed]

After the upgrade to WC 2.1.2 my styling seems to be overruled by the standard WC styling. Is there a way to overrule the standard WC styling without using solutions like using the !important or other ...
0
votes
1answer
2k views

Additional fields on Woocommerce's rating system

I need to add additional fields to a Woocommerce product rating system like this: I opened this file: /wp-content/plugins/woocommerce/templates/single-product-reviews.php and saw the following ...
0
votes
3answers
665 views

Wordpress Comment Box on woocommerce product page [closed]

can we activate same comment widget on woo-commerce product page which WordPress gives on post or pages. actually i want other users should be able to comment on others comment which is not allowed in ...
0
votes
1answer
1k views

Setting an attribute as variation in woo commerce via php [duplicate]

I have a front-end form I am creating to allow users to publish a variable product to my shop from the front end with predefined attributes and variations. I have found this very helpful question: ...
0
votes
1answer
541 views

Display WooCommerce newest product reviews on top [closed]

By default, woocommerce product reviews are listed in chronological order. How do you get the newest review to appear first?