Answer the question
In order to leave comments, you need to log in
Why when importing a product in woocommerce gives an error that the label is more than 28 characters?
When importing a product in woocommerce, it gives an error - The label "country of origin" is too long (more than 28 characters). Shorten it please. - firstly, as he thinks there are less than 28 characters, but the question is, tell me where to set up the import to skip this, because if I set this attribute not to import, then it starts to swear at the next attribute, and so on.
I import with native woocommerce settings
Answer the question
In order to leave comments, you need to log in
In the file at
/wp-content/plugins/woocommerce/includes/wc-attribute-functions.php
Find lines
// Validate slug.
if ( strlen( $slug ) >= 28 ) {
Replace 28 with a higher number, like 256 or 1024, save.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question