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

learn more… | top users | synonyms

0
votes
1answer
23 views

woocommerce list product by id

i have product cat with id=5 and have 10 product i show list 5 product by id as $args = array( 'post_type' => 'product', 'posts_per_page' => 5, 'product_cat' => 5 ); $loop = new ...
0
votes
1answer
31 views

WooCommerce Link to Product Category

I'm creating a template for archive-product.php page in WooCommerce. I would like to have 3 boxes and link each to a different product category. How do I get dynamic link to each product category ...
0
votes
0answers
15 views

woocommerce shortcode modification

I would like to modify a Woocommerce shortcode. I would like to make a copy of it in my own functions file. So far everything I've tried hasn't worked. The shortcode I would like to modify is the ...
0
votes
0answers
11 views

WooCommerce Subscriptions: Only apply shipping cost to sign up fee, not recurring total

I'm attempting, in WooCommerce Subscriptions, to only apply the shipping total to the sign up fee and NOT the recurring_total. I followed this forum post from the developers, ProsPress, on how to ...
-1
votes
0answers
11 views

Woocommerce reviews/feedback on sub category page

I am newbie to wordpress. My requirement is to get the customer reviews for the sub categories and to display the reviews in the sub category page. Below is the structure ...
-1
votes
0answers
14 views

Is it possible to create two cart pages in woocommerce?

Hello, I want to create two cart pages for different category products. If is it possible then please suggest me the solution, For ex. For category "A" products cart A and for category "B" ...
0
votes
1answer
35 views

woocommerce - how to get product link by id

i have 2 product_cat Product cat 1 id : 6 Product cat 2 id : 8 in my index how to get product cat link with id or slug as: <a href="Product cat 1 (link)">Product cat 1(name)</a> <a ...
-1
votes
0answers
14 views

Ajax wocommerce order-received page [closed]

Is there a way to show "order-received" of wocommerce on a same page as checkout? (Preferably by ajax) Thanks!
0
votes
1answer
32 views

WooCommerce - Adding Product Attributes to CSV Export

I'm trying to customize the WooCommerce CSV Export plugin to add additional columns for two standard product attributes ("fund" and "appeal code"). I'm able to add the actual headers, but can't get ...
0
votes
0answers
12 views

TinyMCE editor for woocommerce product attribute

I am creating a custom product attribute by a use of a plugin, but there is a problem that it outputs a simple textarea. What I need is either a TinyMCE editor or some simple editor with a possibility ...
0
votes
0answers
11 views

Show pagination and exclude category

So, I am trying to show items from a specific category in the woocommerce: Here is what I have so far: <?php $args = array( 'post_type' => 'product', 'posts_per_page' => 10, 'product_cat' ...
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); ...
-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
0answers
17 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
0answers
35 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
18 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
12 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
3answers
40 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
10 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
38 views

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

'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
31 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
13 views

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

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

Woocommerce Product attribute not imported with wordpress Importer [closed]

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
0answers
7 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
1answer
75 views

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

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
2answers
83 views

woocommerce custom field not updating user meta [on hold]

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
1answer
36 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
0answers
45 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
26 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
78 views

WooCommerce - Overwrite action hook [on hold]

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
65 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
1answer
81 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
0answers
35 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
35 views

WooCommerce prefill values checkout shipping address fields [on hold]

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 ...
-1
votes
1answer
41 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
52 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
42 views

How to change the price of a Variable Product? [on hold]

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', ...
0
votes
1answer
33 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
1answer
53 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
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 ...
0
votes
1answer
49 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. ...
0
votes
0answers
29 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
26 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
35 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 ...
0
votes
1answer
45 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
0answers
27 views

“Success” Message When Item is Added to Cart – Woo Commerce

I'd like woocommerce to display a success message at the top of the screen when an item is added to the cart. Here's the site I'm working on: http://iowstore.wpengine.com. When you add a product on ...
1
vote
2answers
61 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
30 views

Get email from shipping address in woocommerce

I'm developing a website where we sell digital products. For requirement when the buyer ask to send the license to another email the buyer uses shipping address to enter the extra email. so I added ...