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
0 answers
9 views

stop rounding in woocommerce order edit [closed]

my client need to be able to edit quantity of products in woocmmerce orders after the order created and before payment in a way that change the order subtotal according to the exact new quantity. ...
user avatar
0 votes
0 answers
16 views

Woocommerce shortcode to display number of items in stock?

Is there an out of the box Woocommerce shortcode that displays the amount of a single product that is in stock? Something like: 10 tickets available I'm using the following shortcode on a regular WP ...
user avatar
0 votes
0 answers
39 views

Warning: Attempt to read property "term_id" on int - Woocommerce

I would like to create a condition to manually hide product categories within the shop. I already started from a code base but I am trying to understand why if I put the is_product_category() ...
user avatar
  • 21
0 votes
0 answers
13 views

Create new email in WooCommerce

I'm creating a wishlist plugin that is already functional. I want it to be possible to send an email to the customer reminding them of the items they have on their wishlist. How can I create and send ...
user avatar
0 votes
0 answers
14 views

Woocommerce adds a 2rem top padding to existing and new sections [closed]

So I have added woocommerce to my website and created a product, started to edit it with elementor but I have noticed that woocommerce added a 2rem padding to every existing and new section I create ...
user avatar
-1 votes
0 answers
6 views

Search for products [closed]

I made a search. If I enter the whole name it shows me the product page, but if I enter something like "adssadsaqweas" it shows product-archive.php how I can achieve if I enter the name of ...
user avatar
  • 1
1 vote
1 answer
21 views

woocommerce search by sku and title ajax

This snippet works only in Title and i need to add also in Metakey SKU. <?php // Ajax Search. function thb_ajax_search() { check_ajax_referer( 'thb_autocomplete_ajax', 'security' ); $...
user avatar
  • 139
0 votes
0 answers
7 views

Remove SKU at the end of product titles (Woocommerce) [closed]

I'm trying to remove SKU at the end of my product titles (e.g. "Good product DFO314" where DFO314 is a SKU and they are all different for each product). What I have tried: function ...
user avatar
0 votes
0 answers
18 views

$wp_query->found_posts not returning correct value

I am trying to search woocommerce products from DB using wp_query, I have used pre_get_posts action to modify my main query. add_action( 'pre_get_posts', 'custom_query_vars' ); function ...
user avatar
0 votes
0 answers
14 views

Woocomerce single product page [closed]

I need some help with the Singleproduct page, especially with the tabs i took a code snippet to add a different tab. that works fine. but all of the text is in one line. However, the text is always ...
user avatar
  • 1
0 votes
0 answers
26 views

Selling / Shipping location error > basic WC functionality [closed]

We have some orders that are coming through from countries we dont ship to and the order still goes through charging local shipping rates and confirming the order to the customer. I have set up ...
user avatar
  • 1
0 votes
0 answers
6 views

how to add a badge on product based on filter?

i want to make a compatibility badge based on the user filter, basically its an autoparts wordpress shop and i need the user to choose their car first and then save it for future (it's like a filter ...
user avatar
0 votes
0 answers
12 views

Woocommerce Product permalinks "product" word is not working

I have facing one issue with Woocommerce Product permalinks. When I used the "Product" keyword on Product permalinks at that time product detail page came with 404 not found.
user avatar
  • 1
0 votes
0 answers
11 views

WooCommerce shared categories

I am working on a WooCommerce site where different electronics products are sold. A Product can be either a used or a new product. There are different categories e.g. Refrigerator, Freezer, Microwave ...
user avatar
0 votes
0 answers
14 views

Is it a connection or relationship between 2 custom post types?

im working on it now for two days and no outcome. I have woo products and custom post types called "lankytinos", what I need to do: You open product and there are the list of "...
user avatar
  • 1
0 votes
0 answers
19 views

How to show the urls inside the simple product when the customer buys it?

I would like to add a list of urls for example of post within a product and when the customer buys the product, this is displayed in a personalized way in my account or elsewhere. How do I show the ...
user avatar
0 votes
0 answers
27 views

What is better way to sync wp multisite woocommerce products

now we have Wordpress Multisite network with Main WooCommerce store(~500 products), we copy this "master" shop to subdomains of multisite with plugin NS Copy Multisite, create copy of main ...
user avatar
0 votes
0 answers
17 views

How can i programmatically change the SKU of a product based on product variation?

In cart page I have added a button for each line to be able to add a variation (gift package) to the products. Now I need to add a SKU suffix displayed on the order page in the backend if this ...
user avatar
0 votes
1 answer
8 views

Remove required from a custom field created from WooCommerce Checkout Field Editor plugin

I'm using the following code the remove checkout fields when the Local pickup shipping method is selected. The code work as espected for the native woocommerce billing fields but it doesn't remove the ...
user avatar
0 votes
0 answers
10 views

apply_filters(woocommerce_get_item_data, ...) Causing errors when adding to cart

The /wp-content/plugins/woocommerce/includes/wc-template-functions.php file has a function called wc_get_formatted_cart_item_data() that runs whenever I attempt to add a product to cart. Within that ...
user avatar
  • 101
0 votes
0 answers
8 views

Custom template - query issues

I have developed a custom template for a woocommerce and for filtering categories and taxonomies i use the WOOF - WooCommerce Products Filter (paid version). I contacted them because when i load a URL ...
user avatar
0 votes
1 answer
74 views

How do I create a filter to hide the One Click Accessibility plugin button in WordPress?

I would like to add a filter to hide the One Click Accessibility plugin button, but I want to hide it on several specific pages and WooCommerce pages. I just want to show it on a custom post type ...
user avatar
0 votes
0 answers
17 views

customers are not showing up in woocommerce

when users register as customer they only show up on the word press user menu, how can I automatically add the registered customers to Woocommerce customers?
user avatar
0 votes
0 answers
12 views

Woocommerce Export and import Orders

I need plugin/script with I can export All orders and Import to My new website. I found plugins, but most plugins don't have import function. I need free plugin.
user avatar
0 votes
1 answer
24 views

Execute PHP code only with specific user role

I have a WordPress website with woocommerce and I want to set a minimum order quantity for products. I have found code online which does exactly what I need it to do and it works perfectly.(the code ...
user avatar
0 votes
0 answers
10 views

How do I make the product image smaller on a WooCommerce product page?

The template in WooCommerce for product pages makes my product images huge. I have a portrait-style picture of a book cover on each product page. Is there any way to make the image smaller, not ...
user avatar
1 vote
0 answers
14 views

WP/WooCommerce multisite with polylang, product duplication between websites [closed]

I am looking for a way to duplicate products between multisite websites with one of the websites working as a master for product management (this is no the main site but one of the subsites). The ...
user avatar
0 votes
1 answer
28 views

Sort downloads by most recently purchased first in my account WooCommerce [closed]

Currently my-downloads.php shows the customer the oldest files first. It would be really nice to sort it by their most recent downloads at as on large file download sites, its a lot of scrolling and ...
user avatar
0 votes
0 answers
11 views

displaying the last product comment in the woocommerce category

Good day! The task was set to display the last comment on woocommerce products in the parent category. Each product has its own last comment, if there are no reviews, nothing is displayed. As an ...
user avatar
0 votes
0 answers
17 views

Woocommerce Custom Meta Boxes- How to only display if they actually have content

I've managed to add two custom meta fields to the backend of woocommerce, shipping and size guides, using the add_meta_boxes function, as I don't want to use the woocommerce custom fields section as ...
user avatar
0 votes
0 answers
7 views

Make all scripts and styles be placed in <head> [duplicate]

I have approximately 25 scripts and styles, and wanted to know if it's possible to make a function that hooks into the wp_register_scripts and then apply the $in_footer to false on all assets. So far ...
user avatar
  • 101
0 votes
0 answers
18 views

Edit all $wp_scripts at once to $in_footer = false

How can I make all styles and scripts enqueued from theme and plugins be registered in <head>, I have over 30 styles and scripts, so would be nice to make a function that does this. So what I ...
user avatar
  • 101
0 votes
0 answers
11 views

Displaying Single Product Page Parent and Child Category

Is it possible to display separated terms of single product category? Example: SKU: PRODUCT SKU PARENT 1 CATEGORY : PRODUCT CHILD1 PARENT 2 CATEGORY : PRODUCT CHILD 2
user avatar
0 votes
1 answer
33 views

How to change status of woocommerce orders when post status is changed

I have created a custom post type in wordpress called appointment. Whenever someone books a product in woocommerce a new apppointment is created. The appoinment has 3 status Publish, Draft and Pending ...
user avatar
  • 1
0 votes
1 answer
36 views

Add a custom WooCommerce settings tab with sections

I'm trying to add a custom settings tab to the WooCommerce settings screen. Basically I want to achieve a similar thing to the Products settings tab, with the subsections/subtabs: I haven't been able ...
user avatar
  • 167
0 votes
0 answers
24 views

Hide shipping method in woocommerce if custom checkbox field is selected

So, i'm trying to hide a shipping method when a custom checkout checkbox field is checked. The custom checkbox field is "enabledropshipping" and the custom shipping method i need to hide is &...
user avatar
  • 1
0 votes
1 answer
19 views

Woocommerce check if email already created order recently [closed]

I'm using woocommerce for my client to sell product worldwide. We don't force to create an account during the checkout so the user can buy without registration. Some times we get multiple order from ...
user avatar
0 votes
0 answers
22 views

Trigger a JavaScript function based on the data fetched from Woo commerce hook

I have read quite a lot of possible ways to do it but after going through each of them I'm still not able to understand what should be the correct way of doing it and how the correct way works. ...
user avatar
0 votes
0 answers
8 views

How do i make this snippet work for order history page woocomerce

I have this snippet which changes the title for the billing on checkout But when you view in order history after order is placed, it does not change it and still says billing // Change the 'Billing ...
user avatar
0 votes
0 answers
24 views

Display vendor phone number on single product page

I'm using WordPress + WooCommerce + WCFM + ShopEngine + Elementor. I have widget Vendor Store: Info (see the picture), I need to display Vendor's (Seller's) phone number on it, instead of rating stars ...
user avatar
  • 101
0 votes
0 answers
12 views

3 Different Prices for Woocommerce Product

I want 3 different prices for my woocommerce products. First is Regular Price and then we have Sale price which we already have, but I want to add different discounted price for the customers who pay ...
user avatar
0 votes
0 answers
20 views

how to change add to cart button to call for price button in one of product variation?

I want to replace add to cart button for one of my woocommerce product variation options to call for price button. how can I check that variation is selected to reach this goal?
user avatar
0 votes
0 answers
9 views

Set QTY to 0 With WP All Import from CSV

I'm working with Woocommerce WP All Import to import stock quantities from my supplier's CSV Feed. However, when the item is out of stock at the Supplier, the product is removed from the CSV file, and ...
user avatar
0 votes
1 answer
23 views

Conditionally run function based on custom meta value?

I’m looking for a way to conditionally display an image within certain Woocommerce hooks that I choose based on whether a value is true within a custom meta field for the products on my site. For ...
user avatar
0 votes
0 answers
15 views

Display Sibling WooCommerce Product Categories on Archive Page

To the lovely people of StackExchange, I've created the following code to list WooCommerce categories on category archive pages, and it's mostly working as I'd like. However, I'd like to modify it so ...
user avatar
0 votes
0 answers
16 views

Wordpress Phone Field Check (use numbers, spaces and pluses)

I'm a newbie in PHP, I use this PHP code that works like a charm. It's a custom form that sends to Woocommerce different fields. I want to add a "preg_match" check for each of those fields ...
user avatar
  • 1
0 votes
0 answers
19 views

Checking page before applying image restrictions while uploading

so users can upload images on my website and I want to put some restrictions on these images while they are uploading. The catch is that these image restriction can only apply on one page, being the ...
user avatar
0 votes
0 answers
11 views

Custom reduce stock code affecting date_modified - How to bypass?

I have a stock reduction script that works perfectly. The only problem is, when a purchase is made and the stock is reduced, the date_modified meta is updated. This causes problems for other scripts I ...
user avatar
0 votes
0 answers
15 views

Can export gallery but can't import it Wp all import

I have a store with WordPress and alidropship plugin no woocommerce , I tried to update some galley images with CSV file but I can't do it because alidropship gallery images are different than ...
user avatar
0 votes
1 answer
24 views

A function to add arguments to a taxonomy

I use a plugin that adds the taxonomy "Vendors" - but not with arguments I need to be able to use a layout designer (Avada-> Layouts) and assign that layout to all "vendors" I ...
user avatar
  • 63

1
2 3 4 5
79