Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [woocommerce]

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

0
votes
0answers
17 views

Bifurcate woocommerce cart plugin in two parts

[woocommerce_cart] The above shortcode renders the woocommerce cart page, which will have these looks: What if we want just to generate just Part 1 or Part 2 as shown in the figure. Is that ...
0
votes
0answers
5 views

WooCommerce Attributes Hierachy and Output

After a few weeks of trying to find a good solution to create a Make & Model Relationship, Toolset was used, didn't work. Created 2 Custom Taxonomy with Pods, 1 called Make & 1 called Model. ...
1
vote
2answers
39 views

tracking number field in Woocommerce order [closed]

I am creating a custom field Tracking_ID on Woocommerce, where the admin will enter the tracking ID as value. How can i get the value of the created custom field and display it inside the customer-...
0
votes
0answers
15 views

different cart content for different woocommerce mini-cart

i have two different categories for woocommerce products, when i'm on category A page there should be products in mini cart section from category A only. and when on category B there should only be ...
0
votes
1answer
18 views

Retrieve Woocommerce Cart Url with javascript/jquery [closed]

Is it possible to retrive woocommerce cart url using javascript or jquery? Are there native functions or do I have to perform an ajax call to retrieve it?
0
votes
0answers
21 views

Woocommerce REST API for my account & checkout process

I'm new in WooCommerce REST API, I have worked with custom endpoints but I need some help/tutorial related to WooCommerce REST API. I have research about it but I didn't found any tutorial(s) for this....
0
votes
0answers
19 views

Exclude product content from woocommerce search

I want to exclude the product content from woocommerce search. I tried the following code in my theme functions.php but it not works: if( ! is_admin() ) { function wpb_search_filter( $query ) { ...
0
votes
1answer
41 views

Woocommerce cart is not clear after logout

I am implementing an LMS using one plus theme,learndash and woocommerce plugins. Currently when a user log out, his cart persist and the item in his cart can be edited by a guest user.I want to clear ...
0
votes
0answers
12 views

Calling custom fields value for pages to another page

I'm trying to include a product template in my header.php file and i want to get a custom field value on header from product page. I have added properly when i need to get custom field values from ...
0
votes
0answers
12 views

Woocommerce Registeration

I am building the WordPress Website with the wholesale registration. On woocommerce Account Page, I am registration the user as a wholesaler and once anyone login I manually check the wholesale user ...
0
votes
1answer
27 views

How to change “add to basket” button text in WooCommerce based on product category?

I've created CPT with my events and for each event I've created individual product in WooCommerce. Now I'm using this shortcode in my code <?php echo do_shortcode('[add_to_cart id="'.get_field('...
0
votes
0answers
18 views

Redeclare / override WooCommerce core function

So, I am adding my own drop downs on the shipping section in the checkout of woocommerce. They will filter the options via jquery to only show and hide the valid options of the user (they have to pick ...
0
votes
1answer
24 views

Add WooCommerce vendor slug to auto-generated SKU

I would like to rewrite SKUs generated by WooCommerce Product SKU Generator and prefix them with the vendor slug from WooCommerce Product Vendors into the following format: [Vendor Slug][Generated SKU]...
0
votes
2answers
31 views

CSS change in woo commerce Place Order Text [closed]

add_filter( 'woocommerce_order_button_text', 'woo_custom_order_button_text' ); function woo_custom_order_button_text() { return __( 'Your new button text here', 'woocommerce' ); } Above is the ...
0
votes
0answers
7 views

Get Woocommerce $email->id inside file a file email-order-items.php

I'm customizing some woocommrce files, which need to get woocommrce $email->id, i checked on main email templates like customer-completed-order.php which have $email object but in email-order-items....
0
votes
0answers
15 views

How do I implement a check for correct answer of question on specific page?

I have multiple Woocommerce product pages which would only allow users who had answered a question correctly to view. Each product page would have their own question and should be treated separately. ...
0
votes
0answers
13 views

How to display multi custom types of comments in one loop

there are 3 types of comments in the woocommerce reviews tab: reviews(for customers who bought already), questions (for those who don't bought yet) and comments (it's the reply from shop manager). But ...
0
votes
1answer
29 views

How remove trashed WooCommerce orders from wc_get_orders() result?

I like to use wc_get_orders() function to get WooCommerce orders in front end. Here is my code snippet to get orders. $args = array( 'customer_id' => get_current_user_id(), 'return' => ...
0
votes
0answers
10 views

Edit Product Archive design for Woo theme

Hello, I am very inexperienced in code and WooCommerce themes. I didn't even get a working child theme out of my Upstart parent theme. It would be nice if someone could give me some help because I ...
0
votes
1answer
23 views

How to include a custom field in the woocommerce email?

I have added a custom field on the checkout page using this: add_action( 'woocommerce_checkout_fields', 'woo_add_conditional_checkout_fields' ); function woo_add_conditional_checkout_fields( $fields ...
0
votes
0answers
11 views

Make and Model System

Creating a WooCommerce site that sells truck parts. Products are organised into product categories. Lighting > Bulbs etc. I need a way to store Make and Model of Truck and then assign a product to ...
0
votes
1answer
24 views

Colour of selected radio button seems backwards in Twenty Seventeen + Woocommerce

Help for a novice? I want to use the dark colour choice of Twenty Seventeen with Woocommerce. When I do so, the radio buttons on the "Checkout" page used to choose a payment method seem to be the ...
0
votes
0answers
10 views

WooCommerce Product Import from Unfamilair Feed Type

I am trying to import products into WooCommerce and usually get this done using a WooCommerce product Migration Tool (Like 'WP All Import') which requires the file/url to import be in either XML or ...
0
votes
1answer
40 views

How to get total gross revenue for current month in the woocommerce dashboard status widget

I need to show gross sales for the current month in woocommerce status widget in admin dashboard. Currently it shows net sales amount I need to change to gross sales amount.
0
votes
0answers
11 views

Using WooCommerce account to my other website

I'm is selling online trainings using WooCommerce store. When the client buys the item, he's given an unique key, which he can use to start new training on a dedicated training website (another ...
0
votes
1answer
15 views

How to access deleted term inside delete_product_cat action

I want to run some code after a product category is deleted, in that function I want to access the name of the deleted category, and according to their docs I could do this: add_action('...
0
votes
0answers
20 views

Product categories are not showing up completely

I have used Bulkpress plugin to be able to upload 700+ product categories. Now I wanted to create menu item 'Apple' and there will be a dropdown with all the Apple models (subcategories) listed once ...
0
votes
0answers
47 views

The orders in WooCommerce admin are hidden (they have the “hidden” CSS class)

I have recently moved one WordPress site from an online hosting to a VPS where I have full root access. Everything seems to be working fine. However, on the WooCommerce admin, the orders are hidden - ...
0
votes
0answers
24 views

Using woocommerce, I would like to pull product prices and stock levels from external database in realtime

In the file - wc-template-hooks.php (WC Version 2.1) , I see the action ~146 add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 ); The function lives in wc-...
0
votes
0answers
7 views

Woo commerce import excel file and add contents to shopping cart

I am looking for some code that will allow my site users to upload an excel file and the code will cycle through each row and add the product shut in cell a and the corresponding qty in column b to ...
0
votes
1answer
14 views

Select all product woocommerce

I would select all woocommerce products in my wordpress solution trough wc_get_products() and pass the result in a JSON variable returned by the function created. How did you develop it? I can show ...
0
votes
0answers
16 views

Add total sales after orders count on woocommerce orderson orders page

I like to add the woocomemerce total order sales on admin orders page after orders count for each order status I tried this code to get order total sales for a given order status here function ...
1
vote
1answer
47 views

WooCommerce Country Drop Down colours CSS [closed]

I have been trying to change the colours for the selected and hovered country in the country dropdown on the checkout page on a web site I am developing which is http://chi-medics.com/ No matter what ...
0
votes
0answers
57 views

wc-ajax=get_variation slow speed in WooCommerce

I have an website. i am using WooCommerce plugin. I have added the product with variation. When i add the product in cart by ajax it take too much time. Please help me to resolve this. I checked ...
0
votes
1answer
30 views

Change WooCommerce PayPal Built-in Default Order Status

I want to change the default status the built in PayPal gateway in WooCommerce . Currently, when a new order is created, it's updating to 'processing'. I want to change it but I can't see anywhere to ...
0
votes
1answer
39 views

Woocommerce REST API: creating variations

I'm using the Woocommerce REST API to automatically create product variations when a new product is added. The idea behind it, is that for every new product a variation for the paper size of the ...
0
votes
1answer
29 views

Add max-value to hooked quantity selector in woocommerce [closed]

I have hooked the Quantity Selector to change the design and it works fine. But the problem is I can't set the max value dynamically. If I have only 2 items in the stock I need to set max-value as 2. ...
0
votes
0answers
22 views

How to get Woocommerce cart products with images?

I'm getting list of cart products like this way: $items = array_values($woocommerce->cart->get_cart()); But the products are not returning with images: print_r($items[0]['data']['...
0
votes
0answers
8 views

Woocommerce variable product stock issue

There seems to be an issue with my WooCommerce variations. For my products I have 3 variations of which each had 8 qty. One of the variations has only received 2 orders and now the inventory is -2. ...
0
votes
0answers
39 views

Extend product search with meta in WooCommerce

I would improve the search bar in order to exploit manufacture attribute linked to product. I try to use this to filter product by a custom meta (no product attribute) function custom_search_query( $...
1
vote
1answer
70 views

Fatal error: Call to undefined method WooCommerce::nonce_field()

I am getting an error on the cart page "Call to undefined method WooCommerce::nonce_field()". Fatal error: Call to undefined method WooCommerce::nonce_field() in C:\xampp\htdocs\stemorg\wp-content\...
0
votes
0answers
46 views

Displaying Custom Input Value to Customer Order Details (My Account) page in Woocommerce

I have been looking for a solution to display a custom input field on Checkout page in Payment option area when Cash ON Delivery option is selected. Upon selection it displays a field in which ...
0
votes
1answer
19 views

How to reverse/swap the order of “Sales price” and “Regular prcie” in woocommerce?

By default wooCommerce displays price as "Regular price" first and "Sale price" second. I wish to reverse the order for all types (simple,variation,...). Is this possible? How? Thx
0
votes
1answer
20 views

How to call code when adding WooCommerce menu items via woocommerce_account_menu_items

I'm inserting menu items similar to the code example at https://wordpress.stackexchange.com/a/277080/137417, but I haven't encountered endpoints before and the documentation and tutorial I've looked ...
0
votes
0answers
24 views

Programmatically added variations not showing until clicking Update button

This is starting to give me a headache so hope someone here can help me and together we can help others with the same problem! I built a plugin which generates product variations for WooCommerce ...
0
votes
1answer
20 views

Woocommerce plugin for minimum order and add-to-card-step

I am looking for a way (plugin or code) to set for specific woocommerce products the minimum quantity to add to cart and the quantity increasing step. For example for product A the minimum quantity is ...
2
votes
4answers
138 views

WooCommerce 'all' orders no longer being displayed - how may I debug/fix

I've just noticed that we seem to have a bug with our store. The 'all' orders selection is showing as empty but the other sub catergories such as completed, on hold and pending etc are there. I'm ...
0
votes
0answers
39 views

How to hide / remove duplicated Woocommerce products from Shop page

a simple question. I'm trying to hide / remove duplicated Woocommerce products on our Shop page. You can have a look here www.nottinghamburger.co.uk/order.Use ng as the postcode. I'd like to remove ...
0
votes
0answers
15 views

Ignore / Cancel Menu Order When Using The Price Filter

I have several products with menu order set to various values to control the order of which they are displayed on shop/archive page. When using the price sorting to sort the products - the menu order "...
0
votes
1answer
23 views

Woocomerce add info after order email prouct item

I'm trying to add some labels after woocommrce order email items. Example: We can do that on cart by using this filter. add_filter( 'woocommerce_cart_item_name', array( $this, '...