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
1answer
23 views

Change WooCommerce Image Size in One Product CAtegory

I have one Product Category that needs to have 300 x 300px uncropped thumbnail images. All of the other products have 300 x 300px, cropped thumbnails. This would be on the Shop page and the Category ...
0
votes
2answers
23 views

Display attribute on shop page after the title

I am using the following code for displaying a custom attribute on the Woocommerce shop page. But for some reason, the year is displayed above the product image instead of after the product title (In ...
0
votes
1answer
19 views

ActionScheduler is filling up the database, slowing down the site [closed]

The problem I have a problem with a new WooCommerce store (no customers yet. Just went live today). It appears that the ActionScheduler is filling up the wp_comments table and wp_post table with ...
0
votes
0answers
10 views

Metabox variable into url help - Woocommerce [closed]

Hope I can tr Using a code example to make custom meta boxes for Woocommerce. What I however want to achive is having whatever you put into a specific box to turn that into the url you have typed in, ...
0
votes
0answers
23 views

Display products wich share custom taxonomy with a Custom Post Type

I would like to create a shortcode that display products wich share custom taxonomy with a Custom Post Type. Example: I have a Custom Post Type called "Songs". I have a Custom Taxonomy called "Music ...
0
votes
0answers
36 views

Woocommerce Checkout page - Ajax refresh shipping cost [on hold]

I'm using an API to calculate the shipping cost based on the user's location. The user fills in their location on a Google Places Autocomplete text input field. On filling in, the location's latitude ...
0
votes
0answers
8 views

moving a frontend gui to a backend gui for a plugin in woocommerce [on hold]

I have Dokan plugin installed. and I want to make an admin page for it so I could move frontend gui to an admin page gui, just to make it really WordPress-like website. currently, the dashboard ...
0
votes
1answer
11 views

Change Category Widget Dropdown List Select Name

How can change the text for "Select a category" in the product category widget?
0
votes
0answers
15 views

WooCommerce add-to-cart url method, variations override each other in cart? [closed]

My url is built as ?add-to-cart=id&variation_id=vid&quantity=# It works however if I'm trying to add two variations of a product as separate items in cart, the newest item is kept/the oldest ...
0
votes
0answers
14 views

Getting products categorized of multiple woocommerce stores by API [on hold]

How can I get products categorized of multiple woocommerce stores by API? Note that products can have a different category with each other but with common meaning. Like 'toy' and 'plaything'.
0
votes
0answers
11 views

reCAPTCHA wont show in woocommerce_review_order_before_submit [on hold]

If I try to add ReCAPTCHA into woocommerce_review_order_before_submit and woocommerce_review_order_after_submit it does not show. But I can see the div with the correct classes. Iframe and text area ...
0
votes
0answers
11 views

Display Price Range in simple product

I like to display price range {Minimum price and Maximum price range} in woocommerce in simple product. i.e 2$ - 4$ in product price field. Thanks in advance :-)
0
votes
1answer
25 views

Woocommerce - How to Show product tags in shop page

I want to display my product tags under the price area for every products in shop page . and when someone clicks on the tags, products be Filtered by the tag
0
votes
0answers
13 views

Admin bar only showing on shop page in custom theme

To anyone who may be able to help me. I recently re-installed wordpress (and woocommerce) to start developing themes again for clients. To go straight to the point, I have been trying to figure out ...
0
votes
1answer
26 views

Using category and its sub-categories products attributes as filter in products pages

I have some categories and subcategories for each of them. And finally, some products under these subcategories. What I want is to choose some attributes of these categories and subcategories ...
0
votes
2answers
35 views

Remove Bulk Action For non admin user

I want to remove bulk action for non admin user (shop manager to be specific), so I got this code that let me to remove the bulk action for all users. add_filter( 'bulk_actions-edit-shop_order', '...
1
vote
1answer
46 views

Show special field when correct shipping is chosen

I tried this approach: add_action( 'woocommerce_review_order_before_payment', array( $this, 'my_custom_checkout_field') ); add_action('updated_checkout',array( $this, 'my_custom_checkout_field')); ...
0
votes
0answers
23 views

How to show links of sub categories on sub category pages ? Woocommerce

I have a woocommerce where i have categories and sub categories of products. I would like to show links of sub categories on sub categories pages. But only the sub categories of the parent category. ...
0
votes
0answers
14 views

Menu in appearance not functional due to woocommerce plugin

Basically yesterday, the menu section (appearance) in the dashboard of my website stopped working in the sense that the menu structure does not display and literally no links in the page are ...
0
votes
0answers
21 views

Widget Logic : a widget only in the sub categories (Woocommerce) [on hold]

In my Woocommerce I have categories and sub categories of products. I would like to show the widget : category products (I have a french Wordpress) in order to show to my customers all the other sub ...
0
votes
0answers
8 views

Products originating from multiple facilities

I have two products that come from Facility A. I have added two new products that come from Facility B. My WooCommerce store address is Facility A, yet I cannot find a way to add a potential 2nd store ...
0
votes
0answers
34 views

How to change the displayed image src not the upload path in WordPress

I am new to PHP. I am currently develop an E-commerce application in WordPress. As per my requirement if I enter some name in home page the name displayed in all images in shop page. Now I achieved ...
0
votes
1answer
19 views

Bulk edit orders to 'wc-processing' status

I searched for an answer but couldn't find any. How can I allow bulk edit orders to wc-processing status? Currently I can any other status but this one and it's making the work harder, making me go ...
0
votes
1answer
12 views

How can I put the contents of My Account > Order into a separate page, Woocommerce

How can I output the contents of my account > orders on a different page in php? I managed to output the table when there are orders, but when there are no orders, it shows blank. How can I show the ...
0
votes
1answer
12 views

Disaply products from category

I have a working script responsible for displaying woocommerce products on my page which goes something like this: <?php $params = array('posts_per_page' => 99, 'post_type' => 'product'); $...
0
votes
1answer
20 views

How to set up and use a custom upload directory for post type 'product'

I try to set up a custom upload directory for just product images. I use this code to create the folder 'product' in the uploads directory function fcsp_type_upload_dir( $args ) { // Get the ...
0
votes
0answers
24 views

woocommerce custom order status to core

is there any way to add a custom status to core i am using plugin to add custom status but another plugin does not recognize them so i am trying to find a way to add them as core order status i ...
0
votes
1answer
24 views

Woocommerce section name? [closed]

What is the customizer section name? I want to add a field option under customizer woocommerce section. Or how will I add a field under woocommerce option? Can someone help me with that?
-1
votes
0answers
27 views

Not receiving new order notification emails

We are not receiving new order notifications to the gmail and hotmail on the settings page (screenshot attached, with our email names replaced by xx). I wonder if the issue is connected to the ...
0
votes
0answers
12 views

Woocommerce / Wordpress: woocommerce_add_order_item_meta question

I'm adding custom meta to my products in Woocommerce with this function which works fine: function wdm_add_item_meta($item_data, $cart_item) { //here we get the name of the protein source name which ...
0
votes
0answers
9 views

Is there an after or before_remove_product_image hook?

I am using WooCommerce and want to change some custom meta for the product thumbnail when it is unattached, so I searched everywhere for an action that fires when you "remove product image", or ...
0
votes
1answer
33 views

How do I merge WooCommerce categories with the same name?

I have duplicate product categories - they share the same name but different slugs eg., The category 'Adhesives' has a slug of "adhesives" but since updating my products via CSV import, there is now ...
3
votes
1answer
32 views

Hide certain tags on Product Edit tag cloud

On my site I now have over 800 different product tags. When adding products it takes a very long time to scroll through them all to tag them. I tried to target specific product tags in CSS with ...
-1
votes
0answers
11 views

Move brand on product page and product listing

I have the Woocommerce Brands plug in and my theme places it near the bottom of the listing. How can I position it under the product title? It also doesn't appear on the product listing page is ...
0
votes
1answer
14 views

how to change value return by _stock_status

i am finding how to change the value from _stock_status on single product. I have display the product stock status by that code: <?php echo get_post_meta( get_the_ID(), '_stock_status', true ); ?&...
0
votes
0answers
13 views

Taxonomy Brand Archive with Product Categories Integration

The following code is inserted in a the taxonomy brand page and it shows all product_cats for a specific brand. <?php $argsproduct = array( 'post_type' => '...
0
votes
0answers
11 views

WooCommerce- Order Details Thank You page Add Random Number for each product?

I am stuck on one problem, for my E-commerce website after placing order on i want to show random number for each product in order details section. I have tried this : in theme(function.php) ...
0
votes
0answers
5 views

Woocommerce - Category not work after import to database

I imported database in the phpMyAdmin - only woocommerce tables. When I go to product categories page then I have only a few categories, there must be more. UPDATED I just added a new category as a ...
0
votes
0answers
38 views

Woocommerce: Update SKU after add to cart button

Some products have the standard SKU (inventory) field from woocommerce (SKU1) and an extra SKU (sku2) custom field. I added a mandatory selection box: "With barcode", "without barcode", if the user ...
0
votes
0answers
32 views

enable shortcode in woocommerce short product description on archive page

I'm using a shortcode in the woocommerce "Product short description" field. It displays fine on a single product page, but I need it to fire on the archive page as well. On that page, the shortcode ...
0
votes
0answers
19 views

WooCommerce Error when individually sold item put into cart twice

I'm selling only 1 digital item on my woocommerce store and use this link from the landing page so the user lands directly in the checkout page: domain.com/checkout/?add-to-cart=11 The digital ...
0
votes
0answers
7 views

include product variants in woocommerce search - the hanger theme

I am using the hanger theme for my woocommerce shop. The search function of the theme doesnt include products variants. Which is a huge problem for our shop. I figured out that Smart WooCommerce ...
0
votes
0answers
10 views

Woocommerce Bookings: change price based upon user role

I'm trying to change the price for bookable products using the Woocommerce Bookings plugin. The price needs to be set to 0 if a user has a specific role. I'm using both the hook '...
0
votes
0answers
9 views

Woocommerce: Reallocate orders to a new user within a date range

A site migration didn't go as planned on a woocommerce site and this was uncovered only late. The consequence is that as new users register and place an order, the order history from the user who used ...
0
votes
0answers
16 views

Ajax Add to cart with custom fields

So I'm using WooCommerce TM Extra Product Options to create custom fields for product page and WoodMart theme. This theme is using an Ajax ADD to cart button and I can't disable it but I don't want to ...
0
votes
0answers
10 views

Woocommerce - cancel variation size chart on hover

im trying to get rid of the size chart variation when hovering over the product on the main page. any one tackled this before?
0
votes
0answers
24 views

WooCommerce Product save() function returns php notice: Trying to get property 'name' of non-object

I can't figure this one out. I've written the following function which updates the stock quantity of a particular item: public function update_stock( $sku, $quantity ) { $id = $this->...
1
vote
0answers
11 views

Woocomerce custom billing address fields display in order details [closed]

In woocommerce I register a custom billing field to can track the house number separately function addCheckoutHouseNrField($fields) { $fields['billing_house_nr'] = array( 'label' => __(...
1
vote
1answer
20 views

Error after woocommerce update from 2.6 to 3.5 [closed]

Fatal error: Uncaught Error: Call to a member function get_breadcrumb() on string in /home/elaieu/domains/elfai.lt/public_html/assets/plugins/woocommerce/includes/class-wc-structured-data.php:321 ...
0
votes
0answers
9 views

WooCommerce change product in order

It's less a coding question and more of operating question. When I am trying to edit an order and I want to add a variation, I can only add the variable product. For example, if I want to add "...