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

learn more… | top users | synonyms

0
votes
0answers
6 views

Cart only updates every second page load. What am I missing?

$id = 2321; $qty = 2; global $woocommerce; $woocommerce->cart->add_to_cart($id, $qty); I'm getting the id and quantity from $_GET values, then do $woocommerce->cart->add_to_cart($id, $qty); ...
0
votes
0answers
58 views

Calculate the total of 2 meta values and ORDERBY

I've configured products in WooCommerce to use a point system (either 0 or 1) using Advanced Custom Fields and would like to order the products by these values - there are 9 options in total per ...
-1
votes
0answers
12 views

Turn of one checkout alternative (if visitor isn't from certain country)

I want to have Klarna as default checkout solution for my Swedish customers and Paypal for the rest of the world. Is there anyway to turn of Klarna checkout if the visitor are not from Sweden? ...
0
votes
3answers
37 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
0answers
33 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
0answers
24 views

Woocommerce city array based on country [closed]

I have been through the forums and saw your comments I think you might be able to help solving this issue in checkout page of woocommerce I want to display a drop down of defined cities for the ...
0
votes
1answer
317 views

How to solve the issue with WooCommerce 2.4.4 [closed]

After update woocommerce to its latest version 2.4.4 my variation product show an error like this. I am using the Bazar theme. sorry, no products matched your selection. please choose a different ...
0
votes
0answers
14 views

Shop title and Homepage Duplicate Issue

I have a woocommerce site with a shop page template as my home page. I'm also using the Yoast SEO plugin. However, I'm getting a duplicated title issue for: domain.com and domain.com/shop The title ...
0
votes
1answer
33 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 ...
2
votes
2answers
913 views

Save Custom Fields for Variations Product

Currently I am using WooCommerce for WordPress and trying to add custom fields for Variations Product. After did some researches, I found some code and tried to modify it. This is my full code : ...
0
votes
0answers
15 views

I want to create new product field for woocommerce and then integrate with dokan multivendor plugin?

I want to create another new field like product short description in woocommerce and then i want to integrate that field with dokan multi vendor plugin to make it available for sellers on dokan ...
0
votes
0answers
21 views

Override Woocommerce Booking template in child theme [closed]

I use Woocommerce Bookings plugin and I want to override a file of it from my child-theme folder. The original directory of the file is: ...
0
votes
0answers
7 views

Copy woocommerce country select field to another page

I'm trying to copy the billing_country select field on woocommerce checkout to another page. Specifically the edit details section of the payment summary page. I would like my customers to be able to ...
0
votes
2answers
64 views

woocommerce custom field not updating user meta

I have a custom field created on my woocommerce checkout page that saves to db and shows on the order page. I want it to also update in the user profile as it won't change very often (if ever). The ...
0
votes
0answers
47 views

Add custom Woocommerce product fields without adding variations [closed]

Situation: - I have Woocommerce products with multiple attribute types e.g. size, color, pattern. There are only 4 sizes, and the price depends on the size. Problem: - However I have hundreds of ...
0
votes
0answers
9 views

Woocommerce: Create a seperate view for a specific custom product type

I have two custom products. What I want is to display them in to different archives. So the standard shop main archive should display only one product type (or category if that helps) and then I want ...
0
votes
0answers
12 views

Rich snippets not working for Woocommerce variable products [closed]

I was testing my woocommerce site for rich snippets, and it occurs there is an issue with variable products. Woocommerce puts something like this in Price field "79zł-139zł" (zł is my currency). This ...
0
votes
0answers
29 views

Creating a new Woocommerce Product Type I get Class 'WC_Product' not found in [on hold]

'm creating a new Woocommerce Product Type. From what I 've read in the docs you need to register your product type because justing adding it with a filter the product type shows up as simple. I ...
0
votes
0answers
25 views

Remove Action from plugin class

I am trying to remove the action 'render_product_message' from the woocommerce points and rewards plugin. I tried many different ways that I found from other questions. woocommerce points and rewards ...
0
votes
0answers
12 views

Enable free shipping on a product if certain variation is selected in WooCommerce

Im looking for a way to make a product have free shipping if a certain variation is selected. I sell an item in small, medium, large. The Medium and Large should use fedex but small is free. If ...
0
votes
1answer
34 views

woocommerce_register_post action not firing

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
25 views

Woocommerce Product attribute not imported with wordpress Importer [on hold]

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
67 views

woocommerce - How to query Popular Products and Featured products in same loop

I'm trying to query for best selling products (popular) and featured products using one loop. And, potentially being able to add an identifier to each product –as a class– to be able to filter them. ...
0
votes
0answers
6 views

Making the search results more relevant

I have setup up my WooCommerce shop so that I have all my SKU's in the tags of the product, so that when a user searches for a SKU they find what they're looking for (unbelievably this isn't standard ...
0
votes
0answers
43 views

Show specific meta data on cart with WC_Cart

I want to show more details on the cart in a Woocommerce page. The code in the current format is this one: // Meta data echo WC()->cart->get_item_data( $cart_item ); When I print it as an ...
0
votes
1answer
49 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
67 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
24 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
67 views

WooCommerce - Overwrite action hook

Within the WooCommerce template file "content-product.php", I'm trying to overwrite the following action hook: /** * woocommerce_shop_loop_item_title hook * * @hooked ...
0
votes
1answer
50 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 = ...
0
votes
0answers
30 views

Woocommerce - Display Custom Attribute with Permalink

I've the latest woocommerce 2.4.2 installed. I would like to display custom attribute with permalink and I've been searching high and low for this snippet. The closest I've found is ...
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
0answers
31 views

WooCommerce prefill values checkout shipping address fields

I have a dropdown list to choose prefered pickup location on the cart page. I have Custom post type with the pickup location details and need to pre-populate the fields of the shipping address fields ...
0
votes
1answer
40 views

How to change the price of a Variable Product?

I'm developing a plugin by which an admin can change the price of products through the plugin's main screen. For "simple" products I'm using the following code: update_post_meta( $post_id, '_price', ...
-1
votes
1answer
39 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
29 views

How to delete woo commerce order pragmatically?

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
0answers
60 views

Category priority for multiple categories in WooCommerce

I'm running WooCommerce and I am trying to figure out a way to define which category ID (or slug) should be used for the automatic permalink generation. I have searched low and high for a solution, ...
0
votes
1answer
49 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
34 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
2answers
3k views

SQL - Pull products of particular category from a remote WordPress woocommerce db

I connected to the db and successfully pulled products data. Now I want to to display products from specific category. The store is using woocommerce. The landing page is in different location so I ...
0
votes
1answer
391 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
48 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. ...
1
vote
2answers
57 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
0answers
24 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
25 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
0answers
30 views

WooCommerce - How admin can add product to a customer's cart? [closed]

I've a WooCommerce site. Now I need to modify the system that an admin can add product to a customers cart. While I was researching I got a plugin called User Switching. But it's not working with ...
0
votes
0answers
10 views

WooCommerce - Inventory and stock in more dimensions (parent / dependent attributes) [closed]

I am trying to achieve the following with WooCommerce to sell travel packages: My product, call it "Holiday in Bahamas" has 2 attributes: First attribute: Date (dateA / dateB) Second attribute: Room ...
0
votes
1answer
39 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 ...
0
votes
1answer
3k 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
0answers
32 views

Woocommerce category Custom Field

Hi I have created with CTP custom fields plugin a custom field to appear only in taxonomy -product category- this field, appear in the backend when I edit the category. Field is intended to be there ...