• Hi,

    I would like to ask you if your plugin is compatible with the default WooCommerce CSV import. I am currently uploading multiple products via CSV on my shop but in order to get latin characters on slugs I have changed the below core file of WooCommerce:

    1) file path : /woocommerce/includes/import/abstract-wc-product-importer.php
    2) functions
    – set_variation_data (line no-460)
    – get_variation_parent_attributes (line no-513)
    3) old code
    `if ( $attribute_id ) {
    $attribute_name = wc_attribute_taxonomy_name_by_id( $attribute_id );
    } else {
    $attribute_name = sanitize_title( $attribute[‘name’] );
    }`
    4) new code
    `if ( $attribute_id ) {
    $attribute_name = wc_attribute_taxonomy_name_by_id( $attribute_id );
    if ( ‘el’ === get_locale() ) {
    $attribute_name = sanitize_title( $attribute_name );
    }
    } else {
    $attribute_name = sanitize_title( $attribute[‘name’] );
    }`

    The above change works for me but I have to replace the file at every update of the plugin. Is it maybe possible via your plugin to change the Greek slugs to Latin at the product names and attributes after their CSV import? Can it maybe handle this in a way that even I have the names with Greek letters on CSV, they will be imported with latin letters on their slugs?

    I am asking you this because my current used theme doesn’t support greek letters at slugs of the attributes (it causes issues on their front-end appearance). I am not sure if this is a default WooCommerce behaviour for Greek letters due to 28 characters limitation on slugs.

    Thank you in advance.

Viewing 1 replies (of 1 total)
  • Plugin Author Pano Kontogiannis

    (@elpak)

    Καλημέρα Δημήτρη, δεν το έχω χρησιμοποιήσει ποτέ σε Woocommerce σαιτ και δεν ξέρω πως θα δουλέψει εκεί. Το plugin φτιάχτηκε για να μετατρέπει τα Ελληνικά σε λατινικούς χαρακτήρες ώστε το slug να μην γίνεται τεράστιο και να σπάει εύκολα 😉

Viewing 1 replies (of 1 total)
  • The topic ‘Compatibility with WooCommerce CSV import’ is closed to new replies.