WooCommerce not saving the SKU value - woocommerce

I note that in Woocommerce, in my list of products, some products do not show an SKU number. When I edit the product, and go under Inventory, the SKU is blank. When I type in the correct SKU and update the product and then go back under Inventory, the SKU is blank again. I.e., the SKU is not getting saved. Any suggestions why this behavior is happening and any way to fix it?
Thank you.

Related

Raise price of all products and product variations by category name in Woocommerce

I simply want to raise the price of all products and product variations in the category "T-Shirts" by 10%.
I have seen this question Woocommerce MySQL to update price of products in specific category
But therefore I need to find out the term_taxonomy_id of the category.
How do I achieve that?
Wordpress/Wocommerce DB structure is a mess.

WooCommerce Sort-by SKU - Get numeric order correct

I have a website running WooCommerce and on the Product Category page we have the option "Sort by SKU in Ascending order". The products have SKUs in the format of 4 Alpha and 2 Numeric, e.g. BLHS-20.
The issue we have is when the list of products in the Product Category page is sorted the SKUs aren't in true numeric order.
Example:
BLHS-1
BLHS-10
BLHS-11
BLHS-2
What code would we need to get the SKUs to sort as follows?
BLHS-1
BLHS-2
BLHS-10
BLHS-11
Thanks for any help given.
Ok, we have a workaround. Because the SKU field is a text field the simple fix is to find the largest numeric part of the SKU and for all smaller numbers add leading zeros.
Example:
BLHS-01
BLHS-02
BLHS-10
BLHS-11
This sorts correctly.

How to display the regular price in the order items table in the admin

This is the sale price that is displayed (excluding the VAT) in addition to the quantity and the total price and the VAT, for each item in the order items table.
I would like to display the regular price and the discount of the product item.
I checked in the WC_Order_Item_Product, but I could not find the information and I do not want to retrieve it from the related product attributes because that information can change.
I want the information that was active when the order was created.
I searched on this site and and googled a lot but could find any information. Is it even possible ?

List WooCommerce Product Feed to Amazon Marketplace

I am using WordPress woocommerce. And using "List WooCommerce Product Feed to Amazon Marketplace" plugin for amazon listing from website. But in Report section I am getting below error:
Feed Processing Summary:
Number of records processed 1
Number of records successful 0
original-record-number sku error-code error-type error-message
1 67715 8560 Error SKU 67715, Missing Attributes standard_product_id. SKU 67715 doesn't match any ASINs. Make sure that all standard product ids (such as UPC, ISBN, EAN, or JAN codes) are correct. To create a new ASIN, include the following attributes: standard_product_id. Feed ID: 0. For more troubleshooting help, see http://sellercentral.amazon.com/gp/errorcode/200692370
I have added GTIN in product and my GTIN # is: 677151310900
Kindly help me to solve this problem, also suggest if any better idea for listing in amazon.
Thanks in advance
Most probably, This kind of error occurs when any product is uploaded with different products information for any standard product ids like for your case having GTIN 677151310900 might be already listed by another seller with some other attributes values due to which they got failed to map those details with your products SKU information. In that case, they were asking to send only limited value such as you can just modify the products description, price, title and quantity rather than creating same products with others your custom data in Amazon catalog.
Thanks!

WooCommerce: Out of stock notification issue for a product with low stock

I have set stock for a product to 1. But when I test this setting on front office, trying to buy it, I have this error message:
'Sorry, we do not have enough "product name" in stock to fulfill your order right now. Please try again in 60 minutes or edit your cart and try again. We apologise for any inconvenience caused.'
I don't understand why I have this error, because there is 1 item in stock for this product.
How to get rid of this issue?
For Stock / Inventory product purposes in WooCommerce:
1) Woocommerce settings > Products (tab) > Inventory (sub-tab):
Normally your stock management is enable.
You need to set the Out Of Stock Threshold to 0
You can disable Low Stock Thresold notifications too, if needed.
2) At individual product level (on product pages) > Product data meta box > inventory (tab):
You can "Enable stock management at product level" and have individual settings for a specific product. So you will have to check there too.
I had the same issue and after some digging found that one paypal payment for the product in question is 'pending' that means the person did not have sufficient funds in her paypal account and paypal is waiting to get verification from the bank. The seat will not be released for purchase or show out of stock until paypal secures the funds. Hope this helps.
This is not a perfect solution, but see:
WooCommerce > Settings > Products > Inventory
And clear this settings like this:
Like i said, this is not a perfect solution, since it disables one of the many functions of this plugin, but it helps till the wooteam fix this problem.
The solution is to leave blank "Hold Stock (minutes)"

Resources