Stack Exchange Network

Stack Exchange network consists of 175 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
11 views

WordPress Product designer with draggable textarea issues

I am working with gold product designer and when we try to convert cavas2png, i am having a problem with multiline text How to define fix character in a line when converting to canvas to png Please ...
0
votes
0answers
17 views

How I debug ajax checkout in woocommerce?

In my instalattion woocomerce I checkout form I have shipping method but when the order is save to databse in database I see another shipping method. How I debug ajax checkout in woocommerce?
0
votes
0answers
12 views

How do I get values from product dropdown and numberfields?

I'm making an online store and I have a problem. I'm selling rope by the meter and I want the price displayed to change according to the customers selections. So, how do I get the base price for the ...
0
votes
3answers
28 views

Unable to paste google analytics con header.php [closed]

im facing this kind of issue, ie, Unable to paste google analytics on header.php. Error showing : Something went wrong. Your change may not have been saved. Please try again. There is also a chance ...
0
votes
0answers
29 views

Woocommerce check out fields to display in printed receipt

I'm trying to show on my order printed receipt some checkout fields and extras from the products. The website is www.prontoitaliano.co.uk/shop What needs to appear on the receipt are all the extras ...
0
votes
1answer
34 views

add referrer to woo

we just moved from Shopify to Woo and wanted to add a custom field "referrer" to an order, to track our ads. I found this article, but somehow does not manage to make it work. maybe it is a bit ...
0
votes
0answers
12 views

Edit address field on checkout page

Is there any way to display my account edit address page or fields can be displayed in the checkout field so that customer while reaches to the checkout page after login/registration can view both the ...
0
votes
0answers
34 views

Get all Woocommerce queried products in selected category

Is there any function to get all Woocommerce queried products in selected category and filter attributes? In my custom plugin I need to get products in selected category with selected attributes. In ...
0
votes
0answers
14 views

Woocommerce + Astra Pro + Elementor header shop not change

I'm using a astra sites template for build my e-commerce. Customizing the header of my site I realized that in the shop page the header did not change according to the customization of the theme I ...
0
votes
0answers
14 views

How to remove the navigation links above woo-commerce products for specific user in WordPress?

I have placed a filter in the functions.php file on my WordPress website to filter products based on the role (advertiser) assigned to currently logged in user. When I log in to my site from an ...
0
votes
0answers
20 views

I need to put WooCommerce Featured image in Download page

Can you guys help me because I'm stuck with this? I need to have a product image in front of the name of the product in Download page in Woocommerce. Something like on this screenshot This is the ...
0
votes
0answers
19 views

Hook into WooCommerce Update Account

I've added a custom tab to my WooCommerce 'My Account' and need to fire another function when the options are saved. How can I hook into that update process? I found add_action( '...
0
votes
0answers
5 views

Show woo-commerce products which are related to a specific user with advertiser roles

I have different users registered on my WordPress website with different roles. Apart from the rest of users, I want to allow advertisers (users with advertiser role - advertiser is a custom role that ...
0
votes
0answers
16 views

I need to refresh the checkout page if someone changes the zip code

As per one of issues I am facing I need to refresh the entire checkout page if anyone makes the change in the zip code . Kindly let me know how can this be done
0
votes
2answers
19 views

Trying to link to a custom css file in a new folder

I'm trying to link to a custom css file in a new folder of a small plugin I'm trying to make. I can't seem to get it to work. This is the line I have echo '<link rel="stylesheet" href="' . ...
0
votes
0answers
8 views

How to update the stock of a variable product by attributes

I'm designing an intranet of internal orders where I choose the product list by means of php code and woocomerce functions, all good but as they are variable products and each attribute has a stock, ...
0
votes
1answer
15 views

Adding a second button next to the shop button Woocommerc [closed]

So what my clients wants is on the shop page, on each product there to be a second button next to the shop button. This button should lead to a custom for each product pdf file, that the client can ...
0
votes
0answers
26 views

woocommerce_order_status_completed hook does not run

I need to add a new role to my recently registered user (upon buying any of my four specific subscriptions products). Until now, every recently registered user (those who buy a subscription product) ...
0
votes
0answers
9 views

The Orders on Woocommerce Admin page are hidden inside CSS. What could be the reason?

I am working on WooCommerce Setup. The Orders on Woocommerce Admin page are hidden inside CSS. What could be the reason? How do I make them visible?
0
votes
0answers
17 views

Choosing a WooCommerce Default Product Template

How can I make a page the default template for WooCommerce? I want to specify a default page for product pages.
0
votes
0answers
107 views

Change Woocommerce Product Search Results Page

0 Hi I have a woocommerce site and when you search for products the results page is very weak looking. I used to use the Revelannsi plugin with success to get my search results to look just like my ...
0
votes
0answers
10 views

Woocommerce query result as Redux Framework field option

I would like to use an Array returned by a Woocommerce filter as a value in a Redux Framework field. I do understand the filter returns after the Woocommerce plugin has loaded. I've tried to move the ...
0
votes
1answer
17 views

How can I replace WooCommerce “add to chart” button with same, just AJAX version?

so I am doing this shop page for my brother and encountered a problem. I have this main shop page here: https://pramogama.lt/kavine/ There are lots of products with variables. I want that people ...
0
votes
1answer
130 views

Notice: Trying to get property of non-object in

hope someone of you can help me. On my wordpress-page, i get the following messages, when I use the search function and there are no results: Notice: Trying to get property of non-object in /var/www/...
0
votes
1answer
26 views

Updating WooCommerce product field when product author updates profile field

This is a continuation/variation on this issue: Adding existing user custom field value to a woocommerce product While this solution worked, ideally, it would be great if when the product author ...
0
votes
1answer
42 views

How to trash multiple post/product programmatically

I need help with figuring out how to trash multiple product at once. I'm trying to trash all products in a category is its order is successfully created. I.e when i buy 2 or more products from machine ...
0
votes
1answer
31 views

WooCommerce: add different order item meta for each item in order

now with this function i can add new custom order item meta to all item of order. add_action( 'woocommerce_add_order_item_meta', 'add_order_item_meta', 10, 2 ); function add_order_item_meta($item_id, ...
0
votes
0answers
22 views

Is it possible to intercept all ajax requests and get the parameters and the returns?

Is there any hook that always goes through it, where I can see all the requests, and also the returns after the "action" that is executed? I need to intercept all requests, including requests from ...
0
votes
0answers
38 views

How to integrate an airtime payment to woocommerce in wordpress

I use woocommerce to sell digital products (audio) on my website. I found about a service that powers an airtime payment gateway so I want to know how to integrate it to woocommerce as a payment ...
0
votes
0answers
14 views

Integrating Amazon & eBay orders into Woocommerce on WP Multisite

I am trying to integrate Amazon & eBay store orders into Woocommerce which is on a WP multisite and can't seem to get anything working even third party plugins such as Codisto LINQ don't want to ...
0
votes
0answers
11 views

Pagination woocommerce

i am using Woocommerce plugin. So, i created a page in Divi theme and i connected my own template to that page for displaying all products. All works fine, but i want to add the pagination at the ...
0
votes
1answer
73 views

JWT on Woocommerce cannot work with “Customer” role user

I developing mobile apps, that connect directly to woocommerce rest api. I use this plugin for authenticating, like registering, login, make an order, etc. So the issue come, when I register new user ...
0
votes
0answers
16 views

How to paginate through digital downloads woocommerce PHP

So I know that Wordpress has a lot of pagination functions but they only seem to work with posts. On the users my-account page of woocommerce there is a section for "Available Downloads". I sell ...
0
votes
1answer
25 views

change billing and shipping address 1 and 2 field placeholders [closed]

I'm trying to change the placeholder text for the billing and shipping address 1 and address 2 fields but I can't get it to change at all. This is what I have for billing address 1 // This function ...
1
vote
1answer
33 views

Adding existing user custom field value to a woocommerce product

I am assigning each product in WooCommerce to an author. Each author, when they sign up, adds in a short bio and this is saved with the author's user account. People are signing up with Profile Press. ...
0
votes
0answers
12 views

Woocommerce product import - cannot set post_date

I’ve imported a couple of thousand variable products and variations successfully, however I would like to be able to set the post_date (to force the order of the products displaying) I cannot choose ...
1
vote
1answer
20 views

Hook to use when customer placing order

Currently I am using woocommerce_thankyou action to run a function that creates an order at a third party service. However, sometimes customers don't return to the Thank You page after visiting our ...
1
vote
0answers
21 views

Storefront child theme not applying parent theme [closed]

I've followed, word for word, the Storefront guide for creating a child theme: https://docs.woocommerce.com/document/set-up-and-use-a-child-theme/ I've got a new folder in my themes folder, added a ...
0
votes
0answers
11 views

Get Specific Product ID WooCommerce Comments

I am trying to place the WooCommerce comment fields but for an specific product id <?php global $withcomments; $withcomments = true; comments_template( '', true ); ?> And this custom field ...
0
votes
0answers
53 views

How do I use a combination of switch_to_blog() and wc_create_order()?

I'm looking for a way to create a WC order programmatically for a subsite in my multisite environment. When I use the following, the order is created on the main site and not the subsite with ID 7: ...
0
votes
0answers
52 views

wp_options Table keeps growing

wp_options Table keeps growing. I few days ago this issue started on my blog. I though it was a plugin problem but couldn't find a way a out so I delete it everything, wp, database, all. New ...
0
votes
0answers
17 views

Can the WooCommerce image sizes be removed?

Is it safe to remove_image_size() on WooCommerce's built-in image sizes (woocommerce_thumbnail, woocommerce_single, woocommerce_gallery_thumbnail, shop_catalog, shop_single, shop_thumbnail)? I'd like ...
0
votes
0answers
12 views

Woocommerce caterogies show next category

I have 2 categories level for 1 product : House Room When I click on House caterogy, page display all products from House. I want when click on House, to display all caterogies of House Room, and ...
0
votes
1answer
79 views

Hide prices from certain category in woocommerce

I have next code: add_action('init', 'bbloomer_hide_price_add_cart_not_logged_in'); function bbloomer_hide_price_add_cart_not_logged_in() { if (!is_user_logged_in()) { remove_action('...
0
votes
2answers
67 views

Return custom product in ajax call loop

Working on Wordpress / Woocommerce architecture, I'm new in woocommerce, before i've worked on django and laravel framework, the project is a plugin wp, where a little form is fit with select tags ...
0
votes
1answer
296 views

Does the woocommerce_order_status_changed hook fire when WooCommerce updates an order status automatically? [closed]

We have a plugin that uses the woocommerce_payment_complete hook which calculates an orders point value for our customers based on the items and order total. This generates a CSV file and then uses ...
0
votes
1answer
33 views

i want add conditional for add category in wordpress

i have marketplace plugin when the seller want add product first he will choose category i want change this code to for example i have 2 main category ( A - B ) and i have ( C - D - E ) under A ...
0
votes
1answer
60 views

Remove generated category and tag class names from woocommerce product & blog listings markup

I noticed in my wordpress/woocommerce setup that every time i add a tag to a product or a blog post. It adds that tag as a class into the listed item (Product/blog) I also noticed it adds a class in ...
1
vote
0answers
27 views

call_user_func_array() error in class-wp-hook.php

I have this message when I try to add a new variation of a product on Woocommerce/WP: Warning: call_user_func_array() expects parameter 1 to be a valid callback, array must have exactly two ...
1
vote
0answers
29 views

How to extend WooCommerce API to show bookable product availability rules?

I've made a custom plugin with a custom API end point. I would like to access my bookable products availability times so I can use the API with a react front end. So far I have this function that ...