• Resolved abdelhadys3d

    (@abdelhadys3d)


    hello
    I have an issue since I installed the plugin on my site .

    lets say I have a variable product called “VELVET BOMBER JACKET” and I have a variation child of size “M” (stands for medium) then the variation name of the variation ?becomes
    “VELVET BOMBER JACKET<span> – </span>M” Appears when i export the products through csv and cause issues with the payment api I’m using since it does not accept html tag in the data it receives it.
    I tried to rename this variations by exporting the names and modify it then reimport it but that didn’t work as it gains the <span> tag again by itself

    [Moderator note: Please, No bumping].

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello there,

    Thanks for reaching out about your issue.

    Please try using the following code to remove the span variation:

    Create an empty plugin like this: https://gist.github.com/sareiodata/76f701e01db6685829db

    Add the following code to the end of it:

    add_action(‘init’, ‘trpc_remove_woo_wrap_variation’, 9999);
    function trpc_remove_woo_wrap_variation(){
    remove_filter( ‘woocommerce_product_variation_title’, ‘trp_woo_wrap_variation’, 8, 4;)
    }
    Install this plugin via FTP (copy it inside wp-content/plugins) or create a zip archive with it and install it via the WordPress plugin upload functionality.

    Let me know if this helps.

    Best Regards,

    Thread Starter abdelhadys3d

    (@abdelhadys3d)

    getting error while activating the plugin
    Fatal error: Uncaught Error: syntax error, unexpected ‘;’, expecting ‘)’

    Hey there,

    We deeply apologize for the delayed response.

    There has been a great load on our support team in the past few days, but such a long reply time is very uncommon.

    Please feel free to open another ticket here mentioning this conversation so we can have a better look at your problem (if it is still relevant).

    Thanks you for your patience so far.

    Best Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘html tag in product variation names’ is closed to new replies.