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
120 views

WooCommerce product image dynamically

what would be a neat way to dynamically change product pictures based on URL request? Eg. /product/item?id=2&option=1 I want to display a cat as the main product photo, and for /product/item?id=2&...
Konstantin Ilinov's user avatar
0 votes
0 answers
16 views

Mandatory Fields For WooCommerce Products Before Publishing

I have a B2B WordPress (WooCommerce) website where vendors are salespeople are able to upload their own products to their accounts. I am looking at making a couple of the fields "mandatory" ...
Nic Moore's user avatar
0 votes
0 answers
43 views

How to create different templates for woocommerce single-product.php?

I am learning Wordpress development. I have 3 products that I want to add to my woocommerce store. By default woocommerce store comes with a basic template for all products. But I want to make every ...
Frankie's user avatar
  • 11
0 votes
1 answer
134 views

High-Performance Order Storage conflict action `manage_shop_order_posts_custom_column`

I use this to add an Ordered Products column right after the Date column (fits nicely there). Each product is also linked to it's proper edit page. Look like this: This is my code to do this: // -----...
vanloc's user avatar
  • 125
0 votes
0 answers
168 views

How to display pagination for WooCommerce products

I have written this code to display WooCommerce products <div class="products-container container mb-4"> <div class="products-filter-section mt-3"> <?php ...
younes's user avatar
  • 1
0 votes
1 answer
235 views

How to get all child categories of current parent category in product detail page of woocommerce? [closed]

I have a product in child category of a parent category , there are many other sibling of that child category , I want to show them separately in current product page. Clothes (parent) > (child) ...
Ali Raza's user avatar
0 votes
1 answer
67 views

PHP Add products to cart with WooCommerce Addons

I'm trying to add products to the cart programmatically but with addons from WooCommerce Product Addons. I'm not finding anything in their documentation and am struggling to find anything in their ...
dovidev's user avatar
  • 111
0 votes
0 answers
50 views

sort by date in users

add a column with date, I bring the date with a shortcode from a plugin, I have the problem when trying to order it. how could i do function fc_new_modify_user_table( $column ) { $column['vencimiento']...
fakasmile1's user avatar
0 votes
0 answers
47 views

Woocommerce permalink URL change in DB

I am changinf URL structure and product URL on the wwebsite. Problem is this: When I change permalink structure on the WordPress admin, it creates directly new URL with new structure for each product. ...
Aleksandre Khachaturov's user avatar
0 votes
0 answers
140 views

Critical error on woocommerce checkout page

I am facing an issue on my website. I am using woocommerce plugin with stripe payment method to checkout. I can checkout successfully on desktop/laptop and after that I can see Thankyou page.But when ...
Shoaib Saleem's user avatar
0 votes
0 answers
58 views

Is it possible to set the first image from a gallery as the product image, rather than the featured image?

I'm trying to replace the featured image of related products (woocommerce) with the first image from the product's gallery. Basically I don't want to affect the products in general (shop page). I want ...
Alex's user avatar
  • 1
0 votes
0 answers
23 views

How to use `$order->get_discount_total()`, avoiding defoult WC decimal rounding?

I am trying to build a custom functionality for my WP website, where I need to get the full amount of discounts aplied in given order. So far I am able to get the amount, rounded to a whole number (...
Mihael Manolov's user avatar
0 votes
0 answers
17 views

Export Woocomerce Image Product URL

Hi I am try to export with mysql url image of woocommerce. For export orders I using this method and that work perfect. select * from wp_posts where post_type like 'shop%' into outfile '/var/lib/mysql-...
kuribo's user avatar
  • 1
0 votes
2 answers
139 views

How do I check if a post has a term with a particular ancestor/parent?

I'm trying to show a message on a product if the user is logged in, and the product is in the chains category, but I have assigned children/grandchildren of that term, not chains itself, and I don't ...
Martin's user avatar
  • 11
0 votes
0 answers
47 views

Add Woocommerce Customers link to custom admin menu

I'm creating a custom admin menu with my plugin and I want to add the Woocommerce Customers page as a submenu item. That was simple enough with add_submenu_page. Now I'm trying to set my custom top ...
FinnFIN's user avatar
0 votes
0 answers
60 views

Add a custom meta column to a built-in import CSV file

I have an Excel file that came from a built-in products' export of a WC e-shop. I don't know how it ended up being an Excel file. I know that built-in WC export sub system produces CSV files. Anyway, ...
Faye D.'s user avatar
  • 127
0 votes
0 answers
411 views

Woocommerce product variations getting created without attribute values selected

I am programmatically generating variations for a product. But it generates the variations without their attribute values selected, so all the variations have no attribute values selected. function ...
KWS's user avatar
  • 1
0 votes
1 answer
125 views

Convert from Portfolio post to WooCommerce products [closed]

Is there a way to somehow turn portfolio posts into WooCommerce products at once, maybe through some plugin or code?
m1rz4's user avatar
  • 3
0 votes
0 answers
229 views

How to add SKU and remove product title from WooCommerce url?

My current url structure is this: shop/category/article-name I would like to change it to; shop/category/sku Unfortunately my regex doesn't seem to work properly as only a few products don't give a ...
Lisa's user avatar
  • 3
0 votes
0 answers
22 views

How to display product variations on same row

I'm having trouble displaying variations on the single product page in woocommerce. I would like to show the product variations on the same row and not separate, like the attached pic. Currently on ...
Kuba's user avatar
  • 1
0 votes
0 answers
18 views

Sort by price when price is set in multiple keys

I am performing a query, using WP_Query. I am trying to sort products by price ( from lowest to highest ), and I have a problem, namely that the price value is set in the key "_price" in ...
Daniel Garcia Sanchez's user avatar
0 votes
1 answer
36 views

Display product categories + child-categories on a single product page

I currently use that code to display product category on woocommerce single-product pages : add_action( 'woocommerce_product_meta_end', 'add_cat_single_title', 6 ); function add_cat_single_title() { ...
Trevize's user avatar
0 votes
1 answer
226 views

Hide/show button for the password field in the Woocommerce My Account page

How can I add a hide/show button for the password field in the Woocommerce My Account page? A button or a eye icon Thanks
Fade's user avatar
  • 1
0 votes
0 answers
39 views

Reposition variation stock message

Due to some requirements, I had to make a change so the price for a variable product replace the price range. However, the stock status remains visible after the variations dropdown. Is there a way to ...
milenmk's user avatar
  • 113
0 votes
0 answers
56 views

Hide 'Downloadable' and 'Virtual' checkbox options from Woocommerce Variations?

I am trying hide / unset the 'Downloadable' and 'Virtual' checkbox options from Woocommerce entirely. I have managed to unset them everywhere EXCEPT in the Woocommerce Variations Panel here: Looking ...
dekkyd's user avatar
  • 5
0 votes
0 answers
100 views

How do I fix this "Uncaught ReferenceError: woodmartThemeModule is not defined"?

The issues in console: at headerBuilder.min.js?ver=7.1.4:1:14 at headerBuilder.min.js?ver=7.1.4:1:2394 (anonymous) @ headerBuilder.min.js?ver=7.1.4:1 (anonymous) @ ...
darylvickerman's user avatar
0 votes
1 answer
285 views

Add a custom code with custom link after add to cart for every product

Let's say I need to add a custom code so visitors can visit the product's external site. That way they can visit the product's site. What I want to achieve is as follows: Add a custom code after the ...
Dev NAAN LLC's user avatar
0 votes
0 answers
10 views

How can I solve WordPress error "Cannot load product_attributes" and "Cannot load product-reviews"?

I'm using WordPress and WooCommerce to create my website. Every time I click on "Attributes" and "Reviews" link under PRODUCTS menu I get the errors as shown in the screenshots ...
Amos's user avatar
  • 1
0 votes
1 answer
11 views

How do I add multiple custom menu Woo-commerce my account page?

How do I add multiple custom menu Woo-commerce my account page? this code works but how do i show content for each my custom menus? function pa_custom_endpoint() { foreach(pa_custom_endpoint_keys()...
Behzad's user avatar
  • 1
0 votes
0 answers
107 views

how to get the current page endpoint

i need to get the endpoint of active tab in myaccount page from WooCommerce for example: $currnt_endpoint="the active tab endpoint(for example edit-account)";
Behzad's user avatar
  • 1
0 votes
1 answer
177 views

WooCommerce product permalink based on product's current category

I did some research but was unable to find a clue. Here is the scenario: There is a product called "Album" which is assigned to both the "Music" & "Others" categories....
atiquratik's user avatar
0 votes
0 answers
126 views

Creating a custom archive page for WooCommerce products based on tags

I'm looking for some help in creating a custom archive page for my WooCommerce products. Currently, my products are assigned to different categories and some are linked to a event (custom taxonomy). ...
Jelle Tempelman's user avatar
0 votes
0 answers
73 views

Add text when displying attribute with a hook on single product page

I have books as products in woocommerce and I'm trying to show the order of the book in the series. It should look something like this: "The book 1 of Series" I've managed to add the link to ...
Mrs Vanklik's user avatar
0 votes
0 answers
11 views

I need help with CPT for a food delivery business

We have a food delivery service company, and work with woocommerce for the website We wanted to start a brand new website with CUSTOM POST TYPES so that each restaurant has its menu displayed. What we ...
Maximo Tristan Jenkins's user avatar
0 votes
0 answers
20 views

Disable duplicate WC product category URLs

WC generates duplicate URLs when using category slugs. Example: demoshop.com/cat-1/product-a The same product can be accessed from any URL if slug "cat-1" is modified, e.g.: demoshop.com/...
Mirko's user avatar
  • 1
0 votes
0 answers
48 views

how should i get products based on tags in woocommerce

i want to write a shortcode to get or filter products by tags. for example, i want to get all products that have both 'male' and 'sport' tags. i don't want to separately find product that have 'male' ...
sina barsa's user avatar
0 votes
0 answers
33 views

Woocommerce admin order email customize - remove product short description

I am currently trying to remove the short description from the product from the admin email (new order). I have already used the search but can't really find a suitable solution. Maybe you have ...
Felix Sommer's user avatar
0 votes
0 answers
108 views

Allow HTML in product attributes and variation for WooCommerce

I want to add TM to the name of attribute and a variation in woocommerce but it ended up a plain text. How can I do apply HTML there?
Shubham Bathla's user avatar
0 votes
0 answers
34 views

Product Search in search.php

i make a custom product search in woocomerce search.php. but I am not getting correct product name,image, link. Although it worked fine with posts. Tell me what I need to change in my code so that I ...
Владислав Губанов's user avatar
0 votes
0 answers
32 views

Woocommerce - add tracking code to another email template

I'm using the "WooCommerce UPS Shipping Plugin with Print Label" plugin to process my orders. The plugin provides the tracking code to the customer as long as I set the order status to "...
Felipe.br's user avatar
0 votes
1 answer
1k views

PayPal button not showing and cannot retrieve order error in PayPal

I am having a big issue and I tried everything best to solve this issue but unfortunelyy I cannot. I need you guys to help me to solve this issue I have enable the woo commerce in my client website, ...
Jhyaps's user avatar
  • 1
0 votes
1 answer
120 views

Per-Day booking with customer-supplied start time using Woocommerce Bookings

I am using WooCommerce Bookings (https://woocommerce.com/products/woocommerce-bookings/) to offer rentals of equipment on my website. The rentals must be "per day", so that we have time to ...
hockey2112's user avatar
0 votes
0 answers
25 views

Custom product sorting archive page

I would like to create a sorting products custom. The result I would like is the following all featured products Most sold products in the last year All other products. Is it possible to do ...
Mail Mail's user avatar
0 votes
0 answers
156 views

Hide empty categories on widget

I excluded some products from woocommerce_product_query with this code: function en_archive_products_by_rol( $query ) { if (is_admin()) { return; } $meta_query = (...
Elianalu's user avatar
0 votes
1 answer
194 views

I want to Display custom woocomerce meta box in orders list

I run a WooCommerce store and work with lots of delivery companies. To keep things organized, I added a custom post type where I can add new delivery companies. The meta box in the order details shows ...
Shady M Rasmy's user avatar
0 votes
0 answers
21 views

I want to update shipping charge $0 for all Woocommeerce Subscription auto-renewal orders

Do we have any woocommerce subscription auto-renewal hooks where we can update the shipping charges? In my case for all the auto-renewal I want to update the shipping charge to $0.
kd patel's user avatar
  • 101
0 votes
0 answers
93 views

Add custom text to product category page

I am using Advanced Custom Fields and want to add a display a custom text below the product image on the Woo product category page. I used this but nothing is showing: add_action( '...
stgore9453's user avatar
0 votes
0 answers
23 views

using custom pages for myaccount in woocommerce

at the moment I'm trying to use custom pages for "my account/dashboard page". This worked fined since now as I use Shoplentor(woolentor) which lets me add widgets for that use. Anyways I'm ...
Alex K's user avatar
  • 1
0 votes
1 answer
43 views

How to handle Wordpress account for terminated employee

An employee was terminated and I want to know the best way to handle this individual's Wordpress/Woocommerce account. He was in the Shop Manager role and he mostly worked doing order fulfillment. I ...
shaune's user avatar
  • 101
1 vote
0 answers
19 views

Translate Woocommerce tab

I have added a new tab in Woocommerce but I can not find how to add translation to it (I am using WPML plugin) do anyone has an idea how to deal with that? I need translation of the content of title ...
codingteam's user avatar

1 2
3
4 5
79