Questions tagged [woocommerce-offtopic]

OFF TOPIC. PLEASE CLOSE THIS QUESTION. Questions *specific* for this e-commerce plugin have their own forum at https://wordpress.org/support/plugin/woocommerce. Click the "Learn More" link below for useful links such as Support and Developer Docs.

Filter by
Sorted by
Tagged with
0
votes
0answers
23 views

How to Add “parent category description” in Woocommerce sub category page if there is no description available for child category

In Woocommerce, I have around 6 categories and there are many subcategories in each parent category. Mostly, the description for the subcategory is the same as the parent category except for a few ...
0
votes
0answers
16 views

Custom script/iframe after “Add to Cart” in WooCommerce for every product

I need to add a custom script/iframe for each product on a WordPress/WooCommerce site. I want it to show after the "Add to cart" button. I know I can use WooCommerce Hooks to perform this ...
0
votes
1answer
25 views

Send email notifications to a defined email address depending if a product in order has a specific TAG [closed]

I looking to send new order woocommerce email notification to two diferent emails depending if a product in the order has a specific TAG or not. So far what I came up with was the following: //Custom ...
0
votes
0answers
11 views

Update shortcode when changing varients

With WooCommerce when you change the attribute options to select a variant, the Price and Stock amounts are updated via Ajax. I am currently using a shortcode on the single-product page where one of ...
0
votes
0answers
27 views

WooCommerce mini cart fragments click event

I'm trying to add click event to the WooCommerce cart icon. However it doesn't work I guess because of the WooCommerce Ajax fragments. I want to keep Ajax fragments active and just add click event on ...
0
votes
2answers
22 views

Woocommerce, prevent login after registration and redirect to custom URL

I'm looking for a way to prevent the automatic login after registration (i.e. by logging him out after registration) and redirect him to a custom URL. So far I'm only able to do both of them ...
0
votes
0answers
13 views

how do i filter out the img src in woocommerce

trying to fetch some values through the woo api, I have the following code page = 1 while True: categoryData = wholesale.get("products/categories", params={'per_page': 100, 'page': page})...
1
vote
0answers
26 views

Add custom field to woocommerce variations [closed]

I want to be able to add external links with documentation for my products. With this code I added for simple products and it works as I wish: // This function gets the value for the the custom fields ...
0
votes
0answers
11 views

Separate Register page in woocommerce not work on my site but work on localhost

i use code to separate regiter form in woocomerce this code work on wamp local server but i have error in my website not work(https://khutwabooks.com/reg/ ) . so what the problem here ? and how i can ...
1
vote
0answers
21 views

Display product category taxonomy terms in WooCommerce shop loop

I am looking to display a list of product categories in the shop loop. Parent Term | Child Term | Child Term I have tried wp_list_categories() but this breaks the links and puts in duplicates of the ...
0
votes
1answer
86 views

wc_get_product_id_by_sku() returns 0 for products added programatically via update_post_meta

I am parsing some products from XML and adding them into the database in woocommerce programmatically. SKU along with other data is saved with update_post_meta($post_id, '_sku', (string)$product->...
1
vote
0answers
9 views

Creating a multisite registration form that also creates a woocommerce post

I'm pretty new to wordpress in general. I'm trying to create a multisite registration form, which will ask for details for a woocommerce product posting as well (product name, product image, product ...
0
votes
1answer
20 views

Woocommerce - Hide shipping at all, if only certain product or products with certain shipping class is in the cart

I am looking forward on how to hide shipping at all from the checkout page of Woocommerce when only certain product (magazine) is in the cart or much better would be, if the only product/s with ...
0
votes
0answers
15 views

My customize pice function is showing price on shop and single product but not on cart page and checkout page

My customize price function is showing price on shop and single product according to function of my custom price but not on cart page and checkout page. Woocommerce is showing no value (blank) on cart ...
0
votes
0answers
9 views

How to limit users to a single subscriptions on different products

I have 2 different subscription products on my site and I want to make it impossible for a user to buy them both.
0
votes
0answers
20 views

UX Builder not loading for product description edits

I have a wordpress site running the Flatsome theme with WooCommerce activated. Everything worked fine on localhost, but then I uploaded it to a live server (ubuntu running Apache2). The UX Builder ...
0
votes
0answers
19 views

How to add custom code or a action to the woocommerce subcategory count html hook

I am trying to add a button below my category title of my woocommerce site. This is the function that delivers the category title. How can i add a hook to this section that i can use to get my button ...
1
vote
0answers
16 views

changing meta value and meta key of price field

I have theme that uses price field. its price is stored in "S1" meta key. next is woocommerce that use simple _price meta key to tore price values. i want that when user enter price in theme ...
0
votes
1answer
21 views

Adapt shipping surcharge code [closed]

Looking to adapt the following code, so currently this adds 1% to the basket if the country is US I need £35 amount not a percentage and to only apply with Country UK and postcode BT* (all BT ...
0
votes
0answers
9 views

why my function of woocommerce wordpress only pick first row from customize database table

I have a selection of cities and the price will change according to city selection. I have a customized selection of cities which is coming from the table from the database in front-page-features.php &...
0
votes
0answers
8 views

Wordpress Product Authentication

Is there any plugins or any option available in WordPress for check authentication of products quality. I'm selling physical products.So prevent any local (duplicate) products. We put scratch card ...
0
votes
1answer
21 views

Change class woocommerce on function.php

I would like to change the woocommerce password reset button class. Is it possible from the function file of the child theme? How can I do?
1
vote
0answers
9 views

How to enable specific plugin only based around shop manager role?

I have created a nice clutter free dashboard for the shop manager role which gives permissions to edit, maintain the store and hidden unnecessary junk i.e widgets, updates etc The problem: The current ...
0
votes
0answers
12 views

I need help with removing the a href file from all of the item on the content-product.php

I am needing to remove the product link as pictured below from the I'm not sure how to do it. can some one please help me, any method such as PHP, html or other can be used. Thanks again Kind Regards
0
votes
0answers
8 views

How to add class to page if WooCommerce contains specific product?

I am trying to style the Woocomerce checkout page for when it contains a specific product category. If the checkout page contains the product of the category "Home" and no other type of ...
0
votes
2answers
27 views

Display “Add to basket” and “Read more” buttons in the products shop page with woocommerce

I've been playing a little bit with the woocommerce storefront theme and woocommerce, and I wanted to display the "Add to basket" and "Read more" at the same time on the shop page ...
0
votes
0answers
11 views

woo commerce display price as written

I would like to show price as written in admin page. The problem is the decimals: I have products with € 10,50 but I have also products with € 0,0850. If I set num of decimals to 2 in Woo Settings ...
0
votes
1answer
8 views

One Time Access URL after purchasing subscription

Here's the scenario: A client is selling a product which allows for ONE use of a Web App. The Web App has a simple URL, like www.company.com/app/the-awesome-tool (it's not publicly accessible) I've ...
0
votes
0answers
7 views

Sort terms of attributes by date modified or as per user selection, in product backed of woocommerce

Sort terms of attributes by date modified or as per user selection, Right now it is sorted alphabetically when we select any terms from the box in a product backed of woocommerce
0
votes
0answers
5 views

Woocommerce add custom item to cart

I am working on an item that cannot be defined in Woocommerce because it has too many options and customizations. I am programming a heavy ajax/html5 interface for this particular product and it's ...
0
votes
1answer
14 views

Is there a way to get plugins and themes not built for multisite to work on a network subsite?

Certain plugins and themes are yet to be multisite-compatible and i need to add important functions to some subsites. So i was wondering if there is way to enable such plugins to work on those ...
0
votes
0answers
12 views

How to fetch WooCommerce products with 50% discount?

I want to make a deal page. where there will be different banners showing different deals and discounts. Now lets say a user clicks on the 50% discount banner he should be redirected to product page ...
0
votes
0answers
11 views

How can I add an input to an Order Item on the Checkout page?

I want to add an input text for every Order Item so the user can set some information for that Order Item on the Checkout page. I just found articles about adding input text to the product page and ...
0
votes
1answer
15 views

WooCommerce adding product to cart programatically [closed]

I have checkbox that when clicked should add a product to the cart ans when unclicked should remove it. Developer before me solved the problem using Fee's which should be changed to product. He used ...
0
votes
0answers
24 views

Create order actions from custom fields woocommerce

I am using Custom Order Fields Plugin in Woocommerece: I am using for eg Call status as a custom order field here which have multiple options like Positive, Call Not Picked, Pending, Wrong Number, ...
0
votes
0answers
12 views

Woocommerce Custom product fields need to be editable after purchase in View Orders Page

I am Using https://stackoverflow.com/questions/46612499/display-a-custom-field-value-in-woocommerce-orders-edit-view/#answer-46615303 answer code, which works fine. I want to display that checkout ...
0
votes
0answers
5 views

filter products with first letter of product tittle an all product archive pages

I want to filter woocommerce products with first letter of their titles by request of get method like: ?alph=A I try bellow code but had no success: in function.php add_filter( 'posts_where', '...
1
vote
0answers
14 views

how to get the categories for a single product in a hierarchical way

It's the first time I write here, but I really appreciate your work from long time. Well, I know there is a very similar question, but I can't get out the solution for my particular case. In a ...
0
votes
0answers
14 views

WooCommerce - Echo ID of Variable Product Default Attribute

I am trying to dynamically echo out the ID of the default attribute for variable WooCommerce products. Using $default_variation = $product->get_default_attributes(); so far I am only able to echo ...
0
votes
0answers
8 views

How can I get variation products that their variations are on sale with raw sql

I'm building a WordPress multisite. And I have shortcode that fetches on sale products. But it doesn't get variation products because they can't be "on sale". Only their variations can be &...
0
votes
1answer
13 views

How to access product's meta data when deleting a WooCommerce product?

I'm not able to access the individual products for an order before the order is deleted. add_action('before_delete_post', 'removeCheckDetail', 99, 2 ); function removeCheckDetail( $order_id ) { ...
1
vote
0answers
8 views

I want to get the value of a select attribute in the checkout page, and then use it to show or not the delivery data

I want to get the value of a select attribute in the checkout page on WooCommerce, and then use it to show or not the delivery data. I have tried everything but it still does not appear, the object of ...
0
votes
1answer
19 views

I need help with storefront theme shop page

I know I might be asking for a huge request and I would appreciate it if anyone can help me with my storefront theme on woocommerce. I am planning to have a shop page similar to https://bloomscape.com/...
0
votes
0answers
12 views

woocomerce Order cancel Not Calculate with meta

i just try some great snippet code from [here][1] [1]: https://jeroensormani.com/custom-stock-quantity-reduction/ and it work better but i have some trouble when user canceled order, stock qty not ...
1
vote
2answers
12 views

Target WooCommerce Product Gallery Image (rather than Featured Image) for og:image

I'm using the following code to set my Open Graph meta data in functions.php It works great for selecting the featured image, however I would like to set it to use the product gallery image instead (...
0
votes
1answer
18 views

Run a sql (update) after 12 hours after the user login. Woocommerce users

How can I Run a sql (update) after 12 hours after the user login (for Woocommerce users) After 12 hours after a user login, I want to run a sql/ function to update a value in the database. To set a ...
1
vote
0answers
28 views

dividing sub-categories by parent category - WordPress

I am aware this question is very similar to previous questions however none of the provided answers seem to work for me. but my question is, how do I divide sub-categories by parent category? For ...
0
votes
1answer
17 views

Show audio player only in specific post type category

I have a code that autoplays audio and it is working well but the stuff is I want the autoplay to only run in a specified woocommerce category. Any help will be appreciated. The code is below. ...
0
votes
0answers
13 views

Add product category thumbnail to subcategories of the current product category in Woocommerce archives

I'm currently using an answer from this question to Get the subcategories of the current product category in Woocommerce archives. I want to also add category thumbnails to the listed subcategories of ...
0
votes
1answer
18 views

How Can I fix Woocommerce Billing Address Field? [closed]

I am trying to fix the Woocommerce billing address field in my Wordpress website. This field is inside the "my account" tab. It looks weird and I do not know how can I fix it? Note: "...

1 2
3
4 5
83