Tagged Questions

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

learn more… | top users | synonyms

-1
votes
1answer
2k views

How to add a second 'place order' button in WooCommerce [closed]

My client would like two 'Place order' buttons on his checkout page (http://www.jobgrandprix.fr/checkout/?set-cart-qty_2652=1). By default, the 'Commander' (his site is in French) button is at the ...
-2
votes
1answer
2k views

Add custom varible to cart content [closed]

I have added a custom variable in the product detail page and I can pass the custom variable value into add to cart function. public function add_to_cart( $product_id, $quantity = 1, $mmCentre, ...
-1
votes
2answers
427 views

Programmatically change Payment Methods WooCommerce

I am trying to programmatically manipulate the selection of Payment Method between BACS and a No Payment required option. My client wants the ability to Request for Quote only, so I've extended ...
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', ...
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 ...
0
votes
1answer
87 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 ...
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
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', ...
0
votes
2answers
796 views

Existing Ecommerce plugins with Custom Post Types [closed]

I am developing a solution which is selling a service (can not be categorized as product) I have developed custom post types and taxonomies but I do not want to re-invent the wheel by adding payment ...
0
votes
1answer
54 views

Thumb doubles the image file size

My original images are 420x500/840x1000 and the file size varies around 15-30kb per image. Though when resized by wordpress/woocommerce into a thumb to 340x340(crop) the image size gets to 50kb+. The ...
0
votes
1answer
98 views

Need some help with tweaking a code for woocommerce [closed]

I have this code to show custom text in the categories i choose. <?php if (is_product_category('furnitures')) : ?> <p>This is the text to describe category A</p> <?php elseif ...
0
votes
1answer
1k views

woocommerce - products by category slug? [closed]

good morning, I need to display the shop base page in a category layout,meaning first show all the products from category A and beneath it all the products from category B and so on.. I trying to use ...
-1
votes
1answer
646 views

How can i run the same WordPress install on multiple subdomains?

My site is installed on my main domain, lets say something.com for an example. I have WooCommerce installed and i would like to run the shop part of the site on store.something.com with the same ...
2
votes
2answers
437 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 ...
0
votes
1answer
576 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
192 views

Disabling shopping basket in WooCommerce [closed]

I'm currently creating a shop, and using WooCommerce. The shop doesn't need the shopping basket element. Users should only be able to buy one product at a time, instead of adding stuff to the basket ...
0
votes
0answers
137 views

Update all posts in one go

I've just used the woocommerce CSV uploader to add 1000+ products to an online store. However the products only appear in the store after they have been updated - And it has to be from the main edit ...
0
votes
0answers
231 views

Use WordPress as authentication for custom app

I am in the process of developing a custom web application which will require users to login. We have developed a WordPress website to manage the signup and payment/subscriptions for the application. ...
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
650 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 ...
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
votes
1answer
697 views

woocommerce_order_status_completed action hook not working [closed]

I am developing woocommerce extension wher i need to perform some task after order is successfully completed. For that I started coding. I used following code in constructor of my class. ...
0
votes
1answer
202 views

WooCommerce customer account multiple emails

Is there a function to have more than one email address for a user account? basically a customer who makes an order also gets sent a copy of the order to a different email address (cc/bcc)
0
votes
1answer
686 views

WooCommerce add class name in the list [closed]

Currently, I am trying to customise the override WooCommerce.php file. Now, in this file, <section id="content woocommerce" class="grid-block woocommerce"> <ul id="products" ...
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( ...
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
202 views

How can I add a Categories page link to a menu? [closed]

Not a link to a specific category, but a link to a page that lists all categories of a custom post type (WooCommerce Products).
-2
votes
1answer
333 views

Adding more information to a Content Product Category

The template content_product_cat is responsible for showing the product categories images and its name. I want to display more information below the name of a category e.g a Category called 'Books', I ...
0
votes
1answer
530 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?
-1
votes
2answers
4k views

Is it possible to set up multistore in Woocommerce? [closed]

Is it possible to have multistore in WooCommerce? I want to divide my WooCommerce store into 3 distinct stores with the toys showing up in 3 different collection names called: remote cars, ...
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 ...
0
votes
1answer
138 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
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 ...
-1
votes
1answer
69 views

reusing code in function and running it with loop

In variable.php , the page use to display any attributes related to a product. I want some changes in code but not for all pages, so i think only point it to create a function of variable.php, and ...
0
votes
1answer
36 views

Results not being printed

I am trying to run the following code, which i got from the site but i don't see any output.When i do print_r($product) only then i get array back. $args = array( 'post_type' => 'product', ...
0
votes
3answers
986 views

Woocommerce display one random product via php

I am trying to display one random product in my template header. So each time someone visits or refresh there will be a different product displayed in the header. I searched and found this <?php ...
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 ...
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
1answer
210 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', ...
0
votes
1answer
194 views

Can I use Woocommerce to take orders but not handle payment? [closed]

I would like to create an ecommerce website. In this website the customer will browse the product catalog, add the desired products to his cart, maybe create an account, and during the checkout ...
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 ...
0
votes
1answer
28 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', ...
0
votes
1answer
99 views

How to update billing_email when user_email is updated [closed]

I'm trying to achieve two way synchronization between user_email and billing_email (the key for woocommerce emails). So far, I have it working that when a customer edits/updates their billing email ...
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
480 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
1answer
3k views

Remove 'product' & 'product-cateogory' from url - woocommerce [closed]

I'm using WooCommerce for a shopping site and it is adding slug or base to the urls. For instance: http://dev.unwaveringmedia.com/8dim/product-category/all-party-supplies/ ...
0
votes
1answer
425 views

WooCommerce wp_insert_post action firing on every save

function initial_product_data ( $post_id ) { // lets get out of here if this is not a new product if ( 'product' != $_POST['post_type'] ) return; // make sure the post isn't automagically ...
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 ...
0
votes
1answer
413 views

Echo SKU in WooCommerce Conformation page [closed]

I am able to display SKU in a single product page using Product Meta data but it looks like same method does not work on Order Conformation page. Is there any way to echo SKU in a order conformation ...
-1
votes
1answer
56 views

Extract array from custom field

I'm using woocommerce product bundles extension. I need to manipulate some informations about bundled post. Actually I found the bundled product container has a hidden custom field named _bundled_ids ...