I have an issue with my Woocommerce products. This issue is fixed if I just update the product (edit the product and click in the Update button) with no changes at all. I have around 2000 products in my site, then I am thinking of doing this using a function in my function.php file. It should be something like this,
Tag: product
Display the published date of every product on Woocommerce shop page
I’m looking for solution to display products published date on shop page. I tried the following code, but it show only for first product Any help will be greatful Answer the_date function assumes you are inside a loop that is properly setting up the post data, which in your case seems not to be done. You could manually provide the
Pass custom product text field as cart item data in WooCommerce
The goal here is to have a text field on the product page. The customer fills it in and adds to cart. The text is added to the product and included in the cart and on the checkout and on the order. …
Change “You cannot add another (product) to your cart” notice in Woocommerce
I can’t find a way to change the Woocommerce default message when you try to add another product to your cart marked as sold individually. I found out that this is how you edit the default success …
Sell some products only on a specific day in WooCommerce
With Woocommerce I would like to sell certain defined items on Sunday only. If anyone tries to purchase outside of Sunday, it should give an error. The remaining items in the shop can be purchase anytime. Is this possible? Any track is really appreciated. Example – I have a product called “Sunday Tapas” which is product code “2795”. I want
Disable specific cart item quantity fields based on WooCommerce product category
In woocommerce I am using Hide “remove item” from cart for WooCommerce product category answer code and I would like to disable the cart quantity field too, avoiding customer to change the item quantity to zero. Is that possible? Any track on this will be appreciated. Answer The following code will remove the “quantity field” from cart for items from
Hide “remove item” from cart for WooCommerce product category
I would like to Hide “remove item” from cart for a specific product category in WooCommerce, just like in “Hide “remove item” from cart for a specific product in WooCommerce” answer thread, but for a specific product category. Any help would be appreciated. Answer The following code will hide “remove item” from cart for a specific product category (that you
Display specific formatted product attributes in WooCommerce cart items [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 years ago. Improve this question In woocommerce I am able to display some formatted product attributes under my products on the archives pages with the following code: How can I
Add a custom text under featured products price in Woocommerce product widget
I am trying to add a line of text under the price of my featured products on my homepage. I have tried editing the content-widget-product.php so it looks like this – I added the “Delivery throughout line”… but it doesn’t do anything though. Can someone please tell me why it’s not working. Thanks! Answer Try the following code that will
Display the stock availability for all product types in Woocommerce archive pages
I am using this code in showing the stocks of products: And if the product is a variable I use this answer code to display the stock availability: Get the total stock of all variations from a variable product In Woocommerce How can I merge this codes in a single conditional function? For example. if the products is a simple