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

WooCommerce: I Need to hide my page title/header (including menu) from all the WooCommerce related product pages, such as category and keyword pages

I've been trying to hide my page header from showing different WooCommerce related product pages/search. I managed to put the right CSS to hide it from main product page, but when certain category or ...
mjhalonen's user avatar
0 votes
0 answers
57 views

How to create a "plugin" or "block" that can manipulate Wordpress DOM in frontend?

I tried to understand the wordpress plugin dev ecosystem. It is somehow not clear what the right way is for a plugin that displays some HTML/CSS in the frontend of a wordpress/woocommerce page, that ...
user3037960's user avatar
0 votes
1 answer
479 views

What is the meta_query key name for the woo product average rating? [closed]

I am asking about meta_query key name to query the woocommerce all product 5 star average rating in wp_query I have tried to use these names but not working (_wc_average_rating , average_rating, ...
osama B.'s user avatar
0 votes
0 answers
36 views

Woocommerce - display all sold out products

I'm trying to write some custom shortcode to display all Woocommerce products on a page that have been sold. Suprisingly Woocommerce does not seem to include this by default. I am a developer but not ...
Anton Emery's user avatar
0 votes
1 answer
25 views

Can I remove WooCommerce specific product categories from shop managers?

Can I remove WooCommerce specific product categories from shop managers, so that they can publish products only in some specific categories. I tried this, but it's not working. $user = ...
Ricky's user avatar
  • 53
0 votes
1 answer
59 views

How to set variable to specific field when querying

I am trying to validate an input box against a field in a database. My question is, how does one check a single input equal to any field in a column? I am able to connect to my query, but am unable to ...
John Lyons's user avatar
1 vote
0 answers
183 views

How to add my theme's style to woocommerce blocks?

I have found plenty of articles on how to remove the styling from the Woocommerce blocks, but I can find nothing about how to actually use your theme's styling to replace the removed styling from the ...
Seth's user avatar
  • 11
0 votes
1 answer
18 views

Add different sizes packaging boxes to orders plugin

So im selling frozen items in special eps boxes in woocommerce, i need a plugin, i got 2 different sizes. One small can contain 5 items and costs €1,5 and the other medium 15 items €2,5 If someone ...
anton's user avatar
  • 1
0 votes
0 answers
70 views

Wordpress error

Hell, I have an error: Fatal error: Uncaught Error: Call to undefined function apply_filters() in /home4/smakolyk/public_html/pcwordpress/wp-content/plugins/woocommerce/includes/admin/importers/...
Jakub Troczyński's user avatar
0 votes
1 answer
144 views

How to Remove Active css from woocommerce variation?

I have a small pickle. I can't figure out how to turn the css off after it gets activated. If the user changes their mind, I want the yellow to turn off if they deselect the button (variation). I can'...
Mike Loucas's user avatar
0 votes
0 answers
77 views

Automatic recurring payment using YITH subscription and Dokan Stripe

I want to enable automatic renewal of recurring payments for subscription product. I have used YITH wooocommerce subscription plugin for subscriptions and Dokan stripe plugin for payment but for first ...
Rani Rajput's user avatar
0 votes
1 answer
150 views

How to add a text in the checkout page woocomerce?

I would like to add a text in the checkout page in this part: I tried to use this hook: function wh_test_1($order_id) { //<--check this line //create an order instance $order = ...
Rodrigo Franco's user avatar
0 votes
1 answer
113 views

wp_set_object_terms setting only first id from array

Why would wp_set_object_terms save only the first value from an array? I'm using a frontend form to programmatically create a Woocommerce product. The frontend form uses a multiple select field that ...
JVAN's user avatar
  • 23
0 votes
0 answers
42 views

Remove Products From Category

I want to remove all products from a specific category. I thought a solution but I'm not sure that its the best way? It loops all products and remove the specified product_cat term. Another solution ...
oralunal's user avatar
  • 101
0 votes
1 answer
18 views

I need to export all products and images but I don't know which table the images are in

In the wp_posts table, the guid field does not display the url of the item's image, per the ID field. I have poked around in the other tables, but I just can't find it. When I'm looking for a ...
Blondie's user avatar
0 votes
1 answer
79 views

How to hook to function of woocommerce product export _regular_price?

I need to write function to upgrade standard woocommerce product export function of _regular_price meta field. I have pricelist in 'csv' format where i have 'Currency' column. When pricelist is ...
Taras Parashchuk's user avatar
0 votes
0 answers
318 views

Add only sku to product url woocoomerce

I'm referring to following question: Add sku to product url woocommerce The user was looking for a solution to add the SKU to the URL. This also works with the described variant. However, I need it in ...
Willi's user avatar
  • 1
0 votes
1 answer
3k 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() ...
Naycom's user avatar
  • 23
1 vote
1 answer
1k 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' ); $...
DK Thakur's user avatar
  • 149
0 votes
0 answers
69 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.
Chetan's user avatar
  • 1
0 votes
0 answers
17 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 ...
rashidkhan's user avatar
0 votes
1 answer
392 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 ...
Yordan Kostadinov's user avatar
0 votes
1 answer
185 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 ...
Anderson Viviel's user avatar
0 votes
1 answer
157 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 ...
Myltoni's user avatar
1 vote
0 answers
61 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 ...
user223971's user avatar
0 votes
1 answer
190 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 ...
mohammad mahdi khoramnejad's user avatar
0 votes
1 answer
172 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 ...
Akash's user avatar
  • 1
2 votes
0 answers
927 views

Add a custom WooCommerce settings tab with sections [closed]

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 ...
AJT's user avatar
  • 187
0 votes
1 answer
357 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 ...
Jhonny Stanfield's user avatar
0 votes
1 answer
963 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. ...
qUB3r-001's user avatar
0 votes
1 answer
122 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 ...
positivecharge's user avatar
0 votes
0 answers
20 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 ...
Nasya's user avatar
  • 1
0 votes
1 answer
54 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 ...
BeTA iT's user avatar
  • 63
0 votes
1 answer
155 views

Retrieve Data from Custom Endpoint

i created a custom webhook endpoint to receive data from moosend. The idea is to get the email address of a new subscriber and create a new customized coupon in woocommerce. I created an automation on ...
Torpedo Jackson's user avatar
0 votes
0 answers
354 views

manage_shop_order_posts_custom_column() hook is Not working In Functions.php file in my WordPress active theme

As I added the manage_shop_order_posts_custom_column() hook in the functions.php file But the custom column post data not showing on the shop_order page. manage_edit-shop_order_columns Filter is ...
Netizens Dev's user avatar
0 votes
1 answer
39 views

Change product_base programmatically

I'm building a plugin that will be introducing and managing/handling a new product type (like Simple, Variable, etc), and I want to also change the product_base permalink from product to that new ...
Faye D.'s user avatar
  • 127
0 votes
1 answer
353 views

How to set the meta description of a WooCommerce product as its primary category description?

I asked Yoast SEO support about this as I'm using their plugin, but they don't have this feature: Instead of having to set a meta description for each WooCommerce product I sell, I'd like to set it ...
Guillaume's user avatar
  • 103
0 votes
0 answers
36 views

Online wc-blocks-style.css rendering instead of the hosted wc-blocks-style.css

On my archive page is a sidebar which has a style I want to edit. On my local machine, the style is in wc-blocks-style.css. I edited it successfully and it renders fine. However, after deployment of ...
Dotosh Solutions's user avatar
0 votes
2 answers
276 views

Next/Previous Product with custom order by price & products inside the product category [closed]

How to create next/prev buttons that are price sorted and give results inside the product category you are in? This question has been asked multiple times and despite the multiple threads there wasn't ...
John Aps's user avatar
0 votes
1 answer
116 views

Hook "wp_trash_post" executing multiple time in case of bulk trash products

I am currently using hook wp_trash_post to trigger my custom API when a WooCommerce Product is trashed. This is working fine for the case of single trash. But, in case of Bulk trash this event is ...
iqbal malik's user avatar
0 votes
1 answer
165 views

Updating product image

I have been having this problem recently, I want to update quite a few product images on my website with updated versions. I save the image with the exact same name and upload via FTP to my server, to ...
Yaseen's user avatar
  • 1
1 vote
1 answer
182 views

Automated Cart Update With Alert Box Each Time

New To PHP and, I am currently attempting to create a plug in that creates an alert box every time the quantity in a cart is changed. So far I have successfully implemented updating the cart ...
Frasier's user avatar
  • 11
0 votes
1 answer
1k views

How to replace WooCommerce Product Gallery Trigger icon using PHP/CSS? [closed]

How can I modify the hook to change the glass icon to zoom? Or is there a way to do that via CSS avoiding replacing content via JS?
Davide De Maestri's user avatar
0 votes
1 answer
398 views

Product count in archive page Title in WooCommerce [closed]

How to show in the archive page TITLE, the number of products, in WooCommerce? Thanks!
CEDE's user avatar
  • 1
0 votes
0 answers
46 views

Contact form 7 send product PDF after submit

We are trying to display a cf7 form on woocommerce product pages, where users can submit the form and receive a pdf file related to the product (either as an email file attachment, as a link in the ...
Aymen Eddaoudi's user avatar
0 votes
0 answers
186 views

Split in 2 columns add to cart button and variable forms

I'm struggling to separate variation form from the add to cart button in 2 columns. Here is what I need: The data inside the squer comes from a third party plugin called "TM Extra Product ...
Filipe Marques's user avatar
0 votes
0 answers
21 views

How to make WooCommerce payment method field optional?

Here is my current code on a plugin. /** * Field Validation. */ public function payment_process() { if ( 'woo_bkash' !== $_POST['payment_method'] ) { return; ...
mdraselkhan's user avatar
0 votes
1 answer
71 views

How to Get Category Name When Export Products

I'm writing an export plugin for WooCommerce. I want to print the product categories and subcategories in separate columns while exporting the products in the plugin I developed. My code is as below. ...
bekoyzc's user avatar
0 votes
0 answers
16 views

Broken link additional images after moving server

Recently we moved the website of our client to a new server, and in doing so the links to almost all the images were broken. I've been able to fix the majority of them, but somehow in the woocommerce, ...
Michael Flos's user avatar
0 votes
0 answers
36 views

Woo commerce product quantity wise SKU

In woocommerce i have multiple readymade garment VARIABLE product all have multiple variations with size and colour, I want now variations stock wise SKU field Suppose I have variations of t-shirt ...
nevil mandaliya's user avatar

1
3 4
5
6 7
79