L
L
lightlight2019-12-13 09:04:04
WordPress
lightlight, 2019-12-13 09:04:04

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

2 answer(s)
M
Michael, 2021-06-21
@moonz

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.

A
ADvi, 2019-12-25
@ADvi

Try not to use Cyrillic in attribute slugs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question