Newest 'woocommerce' Questions - Stack Overflow

Questions tagged [woocommerce]

WooCommerce is an open source eCommerce plugin available for WordPress. Questions should relate to programming which changes or extends WooCommerce behaviour.

0
votes
0answers
10 views

Create WooCommerce order from product list — bulk actions

I would like to be able to manually create an order in the backend of WooCommerce by selecting specific products. A new order would be created with the selected products. Is it possible to add a "...
0
votes
0answers
15 views

How to edit color of dropdown selection for add to cart widget for woocommerce?

I noticed that the dropdown selection for add to cart has a default color of white/blank and each selection can only be seen when the cursor hovers over each selection highlighting each word. I would ...
0
votes
0answers
7 views

Redirect login button to myaccount

I want to redirect the "register/login" button to myaccount and not show the popup login. I am using the latest woocommerce and ecommerce-market theme. https://staging.streampublications.com.au ...
0
votes
0answers
8 views

Pull in WooCommerce Add to Basket and Quantity on ACF powered pages

I have several ACF powered pages making use of a particular ACF field group. Essentially, there are a ton of ACF fields giving the client flexibility to build pretty nice looking pages. I've decided ...
0
votes
0answers
5 views

Is there a way to change all checkout error messages in Woo Commerce?

Is there a way to change all the messages on the WooCommerce checkout to a video? I have already looked at these links they don't seem to be working at all. WooCommerce Notice Messages, how do I ...
-3
votes
0answers
17 views

How can I make the contents of the Wordpress checkout form fit onto one page? [on hold]

I'm editing a Wordpress ecommerce site and the contents on the check out page are arranged vertically and take up about 4 pages. Before, it was on one page and the contents were displayed on two ...
0
votes
0answers
7 views

Adding WooCommerce Checkout code for Prop65 in California

I am attempting to add a snippet in my functions.php file to adhere to the Prop65 regulation in California. During checkout, I want a box to display showing a text warning with a checkbox prompting ...
0
votes
0answers
18 views

How can i change woocommerce product price on custom page, when i have some GET params?

I have woocommerce products with regular price and sale price. And i have users, who came from special url with GET param like: site.com/customcart/?emailsale=true How can I make regular users ...
0
votes
0answers
4 views

Woocommerce custom taxonomy order

I have a custom order of my taxonomies in Woocommerce/Taxonomy Order. When I display them, they get printed in alphabetical order. How can I prevent this behavior and print them in the order I ...
0
votes
0answers
8 views

Woocommerce Category Loop only showing 1 category multiple times

I'm sure that i've done something wrong, I just can't see it for looking. I have amended the layout for the Woocommerce content-product_cat.php file (and put it in the local Woocommerce folder in my ...
0
votes
2answers
25 views

Add content between <nav> and <ul> in WooCommerce account

I'm making a custom dashboard for WC and need to add content just between the nav and ul elements in WooCommerce's menu in dashboard in the easiest way. I've seen there's a hook called ...
0
votes
0answers
12 views

Woocommerce Function to Ajax

I'm trying to convert a php code i wrote to show the results with Ajax instead of reloading the page and then showing the results. So i made a custom function that put the variation SKU of ...
1
vote
1answer
21 views

Add order_id beneath custom Woocommerce Order Number on Edit Order page

We use the Booster plugin which creates a unique WooCommerce order number such as WC-456544646. I now need to add the original order_id which still works in the background and with the WooCommerce API....
-2
votes
1answer
27 views

Remove code html to wordpress/woocommerce

Good morning to all, I have a problem with a plug for woocommerce, in that inserts a double "buy" button on each product. To work around this problem, I have solved css for now, but unfortunately ...
0
votes
0answers
9 views

Made custom new order e-mail, want products sorted by custom attribute (locationcode)

I have made a custom new order e-mail to mail this to ourselves when a new order arrives. I want to sort the products by the custom attribute 'locatiecode'. How do I do this? I already have a list ...
-4
votes
0answers
18 views

WooCommerce - How to remove the “My Account” menu from my homepage? [on hold]

I don't need the "my account" menu to allow people to log in, do you know what's the way to remove it ?
-1
votes
0answers
13 views

How i can add “View Demo” button in wordpress woocommerce product page

Hi i want to add 'View Demo' button next to add to cart button please help and also i want to change the add to cart button to 'purchase now' when someone will click it will redirect him to checkout ...
0
votes
0answers
20 views

Get Categories based on Product Tag

In WooCommerce, I have assigned the Product Tag Test Tag 1 to numerous products. I have 5 categories: Cat1, Cat2, Cat3, etc... Only Cat2 and Cat5 have products that have the Test Tag 1 product tag. ...
0
votes
1answer
15 views

Checkbox value not saving in Woocommerce cart and checkout

I'm having a problem with saving custom checkbox value in woocommerce cart and checkout. I've added custom checkbox to checkout shipping table that adds custom bag if certain shipping method is ...
0
votes
0answers
16 views

Charge tax on shipping only when shipped to specific location

WooCommerce supports the option under Product > General > Tax Status to have the tax apply only to the shipping. However, I have two shipping zones and the law is different depending on the zone ...
1
vote
1answer
20 views

Find / Edit the order details meta text on WooCommerce emails

I'm trying to translate the customer emails into Chinese but I can't find these anywhere in the Source code: I've been able to find everything else and I think these are also hardcoded but I can't ...
0
votes
0answers
10 views

Add image in product-thumbnails.php in Woocommerce

I am using plugin Advanched Custom Files for display additional thumbnails in product categories. Everything works wonderfully. But I want this image to also be displayed in the product image gallery. ...
0
votes
0answers
6 views

i want to limit the number of words displayed in my product category description how to acheive it

I need to display product category description in my front page and it's working, I need to limit the words in the description please help me add_action( 'woocommerce_after_subcategory_title','...
2
votes
1answer
20 views

Add custom field as item meta data on the Order

I have added a custom field to the woocommerce products, it is working well with the following code. But my problem is how to add it to the cart_item_data // Display Text in Admin Panel add_action('...
0
votes
0answers
21 views

I can import one product with the Woocommerce Rest API but I am having trouble figuring out how to import the whole array of products

The code will import one product when I set the variable to a single item in the array as expected. When I take off $product_name[0] and change it to $product_name in order to import the whole array ...
0
votes
0answers
22 views

Timber and WooCommerce show custom category in loop

I'm using Timber and WooCommerce. I have a custom taxonomy called 'Brands' where each product is assigned a brand category. This brand needs to be shown above the product title inside the product loop ...
0
votes
1answer
13 views

display a meta item with every product where multiple products are shown on one page ( i.e. not just the single product pages )

when i show a few products on a wordpress page from a woocommerce product table i would like to show the short description + a link to an associated pdf ( ideally using a pdf icon as the link ) i ...
-1
votes
0answers
11 views

Child order is coming as Completed status when creating new order in deposit and down payments using Yith and Dokan for multivendor plugins

I'm using the Yith plugins for the deposit and the down payments along with the Dokan for the multivendor plugin. When the order is creating by paying the deposit it's actually creating two order in ...
0
votes
0answers
20 views

WooCommerce: Product Loop by Vendor?

I managed to get the store names of all of the current vendors to display in a <ul> tag but it seems that when I loop to get the products, all of the products registered gets displayed under the ...
0
votes
2answers
12 views

How do I get the woocommerce product price via functions.php

I am curretly trying to create a shortcode that shows 3 products and the snippet looks like this: function show_recent_products(){ $args = array('posts_per_page' => 3, 'post_type' => '...
0
votes
0answers
9 views

Adding Attribute to Single Product (not Variable)

I'm currently working on a clients shop, they don't want the tabs which I all ready disabled them. function woo_remove_product_tabs( $tabs ) { unset( $tabs['description'] ); unset( $...
0
votes
1answer
44 views

How to send JSON data to a REST API?

I'm sending data to a Wordpress site with the WooCommerce plugin installed using libcurl in C++ and the WooCommerce REST API. The data seems to get sent but the expected result is not shown on the ...
2
votes
1answer
19 views

Saving form data from a custom WooCommerce My Account tab

I have created a new Member Details tab in My Account and populated the tab with form fields to gather member details like hobbies, birthday, etc. These details are then displayed on the My Account ...
0
votes
2answers
41 views

How can I fix this inline-block alignment problem on my Woocommerce site?

Trying to wrangle some css and I need a bit of guidance. I am displaying the amount of product reviews on our shop page, but the number of reviews displays under the star rating. I'm trying to get the ...
0
votes
0answers
13 views

Adding a category conditional out-of-stock text to woocommerce 3 button

Someone kindly posted a link to code which would allow 'in-stock' and 'out-of-stock' to be added to the products 'add to cart' buttons. I assume there is a way to tweak this code so that I can ...
1
vote
2answers
53 views

How to adjust text in a table

How can I break the long text in a table to adjust to td width? Here is a sample of my table The text made it wider and I have been trying to adjust it with CSS but nothing seems to help. ....
0
votes
0answers
12 views

Correct url to view woocommerce products filters by product tag and category

I am trying to view products filtered by a name category and a named tag. E.g: myurl.co.uk/product-category/shoes/product-tag/red. Oddly, for some tags this url structure works, but for others it ...
1
vote
0answers
8 views

Order Itemmeta woocommerce

I must to edit a product name in woocommerce when in the product was add ('_aggiunte), _aggiunte is a custom field of woocommerce_order_itemmeta tabs. I try with this code but don't word. function ...
0
votes
0answers
16 views

Looking for the ability to authorize a credit collection/token on pre sale products

I want to implement pre-sales in woocommerce and charge the amount once the product is shipped. A collection or token on the credit card will be made when the client sends the order details. I'm ...
0
votes
0answers
13 views

Sort products woocommerce

I'm trying to add sort by option to the shop page of my woocommerce web site. I can not find the proper plugin for this only. So, the user needs to sort the products by price, reviews ... and, of ...
0
votes
0answers
8 views

How can i turn an ordered 3D model into a woocommerce product with variations?

i want to make an wp multi vendor website with woocommerce, where visitors use this plugin https://www.wp3dprinting.com/product/3d-print-demo/ to calculate the cost of 3D printing for their model and ...
0
votes
2answers
19 views

Woocommerce action hooks not firing

I have a wordpress proejct with woocommerce plugin installed. I'm trying to add some woocommerce action hooks to my functions.php file just for testing purposes and none of them are firing add_action(...
0
votes
0answers
20 views

Remove Woocommerce category-class-names from Category page markup

Every time I place a product in a category, the product gets the category-name as a div-class on the category pages. If the product is "Curtains" and its in multiple categories like "Bedroom Curtains"...
1
vote
0answers
8 views

How does the Push Notifications work in WooCommerce Coupons?

While creating a new coupon in WooCommerce, there is an option to enable "Push Notification". I understand what a push notification is, but curious to how it works. Can it be modified to send at a ...
0
votes
0answers
8 views

set_price in woocommerce version 3.6.4 gets overridden for logged out user. Works fine only for admin when logged in

I am changing product price dynamically in woocommerce while adding to the cart but the set_price seems to work properly only when the admin user is logged in. It doesn't work for other users when ...
0
votes
0answers
48 views

React Native Woocommerce API fails when parameters are set

I recently decided to give React Native a shot. I am running into some trouble communicative with Woocommerce using the react-native-woocommerce-api. When I get all the products, it works great, but ...
0
votes
1answer
26 views

some product thumbnails doesn't show up

Hi a have a store with woocomerce and noo theme. Im having trouble with some product thumbnails. Some considerations: The image are loaded from my wordpress gallery (4 for each product) and loaded ...
0
votes
0answers
15 views

Prevent Duplicate Transactions in GA & FB Pixel using GTM

Initial page load, as well as subsequent visits to the same URL and page reloads record additional Purchase Events within Google Analytics and Facebook Pixel. I have searched and even followed the ...
0
votes
0answers
22 views

$order->get_checkout_payment_url() different behavior for product and subscription

I'm trying to create subscription order by code. I'm using the latest version of Woocommerce and Woocommerce Subscription plugins. It's working fine, but I got different order-pay page when the order ...
0
votes
0answers
12 views

Wordpress Lazy Loading using Pagination

im doing a lazy loading with WP_Query Pagination it's working fine but the content duplicate itself when it reaches it's end and when i search for a specific result it shows the result correctly but ...