OFF TOPIC. Questions *specific* for this e-commerce plugin have their own forum at https://wordpress.org/support/plugin/woocommerce.

learn more… | top users | synonyms

0
votes
1answer
36 views

Woo-commerce: Adding additional page sections using a child theme

I'm hoping to modify Woo-commerce by adding a section to every product page. I have a child theme setup with a copy of the Woo-commerce template files in it. I want the new section to appear under the ...
0
votes
1answer
171 views

Multi-vendor with custom shop site for each vendor

What is the best way to create a multi-vendor site that allows user to register as a vendor and not only this but it provides the vendor a new custom shop web-site which he/she can customize by ...
0
votes
2answers
35 views

WP: adding Javascript to specific woo commerce pages

I'm developing an eCommerce site using Woo-Commerce, i'm hoping to introduce some JavaScript to my sale pages only, in the name of a finance slider. What is the best way to go about including a ...
0
votes
1answer
47 views

WooCommerce Images are uploading to the server but not attaching

I've Created a Script that Grabs an image from an external site and it is imported to the WordPress image gallery. -> wp-admin/upload.php [Media Library] My Code Snipplet foreach($url as $...
1
vote
1answer
91 views

Woocommerce - remove product from category

I'm trying to do the following, but I'm stuck with coding. Hope someone can help me out here. In Woocommerce (on the product-edit page) I can choose in which category the product will be. I made a ...
1
vote
1answer
310 views

Disable Sidebar in the Product Page in Storefront Theme

I am using storefront theme, where there is options for the Full Width in the pages but not in the Product Page and Product Category Page in the Store Front Theme As i played with css and i go this ...
0
votes
2answers
109 views

How do I change the core post search algorithm? Where is it found/constructed?

I have wordpress and woocommerce installed and I noticed that woocommerce's product search seems to use wordpress's search. Well, I don't like the search, and I'd rather alter it at the core rather ...
0
votes
1answer
176 views

WooCommerce - Print Processing orders [closed]

On our WooCommerce webshop we have an PHP page that generates the processing orders. Now I need to show the SKU in the table, but I don't know how to do that :) Below is an example of the page as it ...
0
votes
1answer
252 views

Making changes to woocommerce order before save

I use the hook woocommerce_before_calculate_totals to intercept and make changes to the cart before data is saved. Is there a hook or other way to do the same in the admin area? I need to evaluate the ...
0
votes
2answers
460 views

WooCommerce Storefront - Exclude category from product categories in homepage

How would I exclude a specific category from the product categories in the homepage? The function is in /inc/structure/template-tags.php: function storefront_product_categories( $args ) { if ( ...
0
votes
2answers
216 views

Use WooCommerce function in other Wordpress plugin

I am currently trying to make a plugin which updates the stock count of my WooCommerce products. So I wanted to access the wc_update_product_stock function, but an error got returned instead. Code ...
0
votes
1answer
274 views

Woocommerce Add to Cart function

I'm new to WooCommerce and looking for your help. Here is the challenge: I have 3rd party widget generated on a partner's site to show up on my site with WooCommerce. E.g. I get code and place it on ...
0
votes
1answer
93 views

Display free WooCommerce products

How can I display only my free WooCommerce products on a page? These products change each week, and I want a page that displays my current free products without having to update these products ...
0
votes
1answer
169 views

WP_Query for products always returns empty

I have a simple following logic: $args = array( 'post_type' => array('product'), 'product_cat' => 280, 'posts_per_page' => 3 ); $category_posts = new WP_Query( $args ); ...
0
votes
0answers
11 views

Slug uniqueness for an ecommerce with categories [duplicate]

I come to you because I have a problem and i'm looking either for a solution to it, or alternatives. I've spent all day long trying to find a way to make it work. Let me explain. (Quick recap) ...
0
votes
1answer
204 views

How to remove “From:” before variable product price?

How can I remove the "From" text before product price? I'm running the latest version of woocommerce and I've added this snippet of code to the functions.php file to revert pricing style to that of ...
1
vote
0answers
80 views

Moving WooBookings Calendar to different position using action [closed]

I'm trying to move the WooCommerce Bookings Date Picker to a different position of the Single Product view. This code works with core templates, but I can't figure out how to apply it to the Bookings ...
0
votes
1answer
97 views

Get usermeta info from sql query

I'm using WooCommerce and need to get my users billing name, billing address, billing phone, billing email, etc from wp_usermeta in a good format like this: name,address,phone,email fake name, 123 ...
-2
votes
1answer
1k views

How to show woocommerce login / registration form in modal

I have developed E-commerce Website using Woocommerce Plugin. I would like to show the login/registration form in modal. Is there any way to automatically show the login/registration form when the ...
0
votes
1answer
137 views

How can I hide the entire “Shipping Details” block on the admin side of Woocommerce?

My Woocommerce store has virtual products that don't require shipping. I have disabled the shipping options from the customer on checkout, but now I want to hide it on the backend as well. When ...
0
votes
1answer
149 views

WooCommerce set a min order price for a single country

I'm trying through this code to set a minimum price for orders: // Set a minimum dollar amount per order add_action( 'woocommerce_check_cart_items', __NAMESPACE__ . '\\spyr_set_min_total' ); ...
1
vote
1answer
264 views

Override mini-cart.php from plugin

(Its not the cache thing) Im creating a plugin that among other things modifies woocommerce template files. Before i placed woocommerce overrides in child theme. But i want to move it to the plugin to ...
-2
votes
1answer
70 views

WooCommerce - Complete Order when an action occurs

I'm having trouble with WooCommerce and Custom Post Type/Custom Fields. I have an application where a new WooCommerce order automatically creates a new post (CPT = "audits"). The post has some custom ...
0
votes
1answer
289 views

Add my own function to existing WooCommerce hook

I'm trying to customise my WooCommerce child theme with parent theme Storefront. The parent theme creates single product template (content-single.php) like this: /** * @hooked storefront_post_header ...
0
votes
1answer
77 views

Add text specifically to order-proceessing-email in WooCommerce

I am trying to add some text to the customer-order-processing email from WooCommerce, and it should ONLY be added in this particular email and ONLY if chosen payment method is Paypal. I have come so ...
0
votes
1answer
109 views

Change WooCommerce add_to_cart Button Text?

I am trying to change the add_to_cart button text for all products based on category. For category 'course' with ID 330, I would like the button to read 'Register'. For all other products, I would ...
0
votes
2answers
499 views

“Reset my password” links to itself (page refreshes)

I'm using WooCommerce. When users go to the lost-password page, type in an email address and press "Reset password", the page just reloads. I'm not sure what wordpress normally does, but I would ...
-2
votes
2answers
269 views

How do I put woocommerce cart page to my checkout page? [closed]

I want my cart page to show up on my checkout page. And I want to remove the order review from checkout page. so my cart page will show on the top.
-2
votes
1answer
567 views

how to remove or disable woocommerce order review in checkout page?

In the checkout page, there is a review order table on the bottom. I want to remove the order review in checkout page. What is the remove action ?
0
votes
1answer
207 views

Disable woocommerce product search plugin's autocomplete [closed]

I want to disable woocommerce product search autocomplete feature?
0
votes
1answer
15 views

WooCommerce - missing products when viewed by tag

Has anyone had the same problem as this? A product tag has a count of 68 products to it but when i view that tag page it only shows 47 products ! another tag has 41 and shows 41, another 160 shows ...
0
votes
2answers
205 views

Get product details by url key in Wordpress woocommerce

I want to load products deatails on my custom page.Is there any way that i can use the url key like http://localhost/mysite/product/samsung-1.In this url samsung-1 is the key for that product.I want ...
0
votes
2answers
38 views

Have I got this IF Statement correct?

Based on this snippet, which checks the quantity in cart for MAX value: add_filter( 'woocommerce_quantity_input_args', 'jk_woocommerce_quantity_input_args', 10, 2 ); function ...
0
votes
1answer
382 views

Print Woocommerce product price on cart page

I can access subtotal or total price via like this: $woocommerce->cart->get_cart_subtotal(); But I tried to $woocommerce->cart->product or $woocommerce->product->price then echo, ...
0
votes
3answers
175 views

How do I get slug of term by his name?

The WC_Order_Item_Meta::get_formatted() function returns terms array of the order. Each term is an array of three things: 'key' => $meta->key // attribute key 'label' => wc_attribute_label(...
0
votes
2answers
142 views

How To Create WooCommerce Custom Template For Specific Product?

I know this may be slightly off topic, but this really is the best place to ask a question related to WooCommerce & WordPress. I've search high and low for an answer to this question and there ...
-1
votes
1answer
41 views

Display post_meta-by_key on product catalogue

I'm trying to display a custom field in my woocommerce bookshop catalogue. I have added the field "author" and I want to display it after the product title, and before the price. http://www....
0
votes
1answer
1k views

WooCommerce: change display order of product short description and price [closed]

re: https://modestmix.com/shop/benefit-teas/go-the-fuck-to-sleep/ I'd like to move the price "$4.99–$24.99" below the product short description "Seriously. Drink a cup of this..." Any ideas how to ...
0
votes
2answers
51 views

Cannot Modify Header Information error

I am using Bazar theme and woo commerce. I tried adding a new products but I get this error saying: 'cannot modify header Information - header already sent by (output started at c:\wamp\www\...
0
votes
4answers
315 views

woocommerce send order info by email get post meta not working

I would like to send an email when there is a new order on my woocommerce shop. $order show the good order number but it doesn't work with get_post_meta. If I do it like this, it's working: ...
0
votes
1answer
164 views

There is no existing custom fields' value in functions.php

I'm using WooCommerce and Advanced Custom Fields plugin. I have a function for calculate my product's discount, like this: function woo_add_cart_fee() { global $woocommerce; $discount = ...
-1
votes
1answer
86 views

How do I create a array custom field for use with facetwp.com?

I plan on displaying information on a range of laptop computers, including: Make Model CPU OS Some laptop manufacturers let you choose the OS, between Windows 8 or Windows 8 Pro, say. I thought I ...
0
votes
1answer
28 views

Change WooCommerce Checkout Button - Reverts to normal

I am trying to change the checkout label and placeholder for the postcode field. However using this code: function custom_wc_checkout_fields( $fields ) { $fields['billing']['billing_postcode']['...
0
votes
1answer
42 views

Pagination adds product to cart Woo-Commerce

In my WordPress Woo-Commerce theme when a product is added to cart from shop page its added into the cart with a url e.g /shop/page/3/?add-to-cart=149 and when I switch to another page using ...
0
votes
1answer
177 views

Cannot login in Wordpress even after changing hash password in phpmyadmin

An hour ago I changed the password of my Head Admin user. But after this I was not able to login anymore. So I have tried to reset the password in PHPmyadmin with the md5 encoding and even with this ...
-1
votes
1answer
309 views

Facebook Pixel + WooCommerce + AJAX = Confusion

I am trying to add a Facebook Pixel (tracking) to the WooCommerce Add to Cart button, using: <script> fbq('track', 'AddToCart'); </script> The problem is that when a user clicks on Add ...
0
votes
1answer
423 views

WooCommerce duplicate sub categories and product slugs

I'm building a website that allows you to hire or buy a product. I've set up the following product categories in WooCommerce: Hire Buy Is it possible to have the same sub-category slug under each ...
-2
votes
1answer
66 views

Many variations, best practice?

I think i'm doing something wrong with variations on Wooocommerce My online shop is for clothes. Some products like jeans have a lot of variations Example (attribut, term): Color: Blanc, Bleu foncé,...
0
votes
2answers
429 views

Re-order Woocommerce single product and echo div around moved & duplicated Woocommerce hooks

How do I wrap a div around the actions in the code below? PHP in functions.php file: remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_title', 5 ); add_action( '...
0
votes
1answer
145 views

Woocommerce custom Plugin in wordpress [closed]

I want to access the ID of the product currently being displayed on the page. I am trying to do this in a separate custom plugin. I have tried global $post and global $product and get_the_ID() methods ...