Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter unicco

    (@unicco)

    Btw. Have you ever heard about “high cohesion” in programming. Your import function is like 5000 lines long. What the freaking **** have you been thinking?

    • This reply was modified 6 years, 9 months ago by unicco.
    Thread Starter unicco

    (@unicco)

    In \wpai-woocommerce-add-on\libraries\XmlImportWooCommerceProduct.php you should change line 585 from

    $this->pushmeta($pid, '_variation_description', wp_kses_post($product_variation_description[$i]) );

    to

    $this->pushmeta($pid, '_variation_description', htmlspecialchars_decode( wp_kses_post($product_variation_description[$i]) ) );

    That fixed the problem.

    • This reply was modified 6 years, 9 months ago by unicco.
    Plugin Author WP All Import

    (@wpallimport)

    Hi @unicco,

    This is actually how WooCommerce works, if you manually try to save this URL http://www.example.com/products/?/products/?product=6321,01,74,00&lng=DK&category= in the variation description you will see $amp as well.

    To fix that, in your import template you can wrap your variation description in the htmlspecialchars_decode function, like this: [htmlspecialchars_decode({my_var_desc_data[1]})]

    • This reply was modified 6 years, 9 months ago by WP All Import.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Encoding problems with “&”’ is closed to new replies.