• Resolved BeDotMediaGroup

    (@bedotmediagroup)


    Hi,

    We used this product for a year or so, the Text in Product Description previously allowed us to add HTML and we use a jQuery drop down (to visually make it look nice).

    However since the update, it appears that it is stripping any tagging out completely?
    Really want to get this resolved, how can we do about it?

    Thanks
    Robert

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Robert,

    Please give me a couple of screenshots and mention the exact version number which was working for you. I will surely fix it asap.

    Thanks,
    Fahad

    Thread Starter BeDotMediaGroup

    (@bedotmediagroup)

    Hi Fahad,

    So originally we installed the Discount Plus plugin.
    And were were able to add code into the text box:
    https://www.bedot.com/files/with_code.png
    https://www.directsealants.com/product/bond-it-bath-mate/

    Now, when we update products (which contains the code) when you update the product it strips all the code and leaves the following:
    https://www.bedot.com/files/without_code.png
    https://www.directsealants.com/product/bond-it-gp200/

    We are now on version 2.50

    Thanks
    Robert

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Robert,

    Please check index.php on line number 1539. Try to modify this line and let me know if that works for you? If yes, i will change it in next release for you in a way so you can use this field without stripslashes.

    Thanks,
    Fahad

    Thread Starter BeDotMediaGroup

    (@bedotmediagroup)

    Hi Fahad,

    i think my line 1539 differs to yous, on mine it says:
    //$quantity = $valuesInner[‘quantity’];

    I cant see that has any relevant to the description?
    What does code is on 1539 for you and i can search by that.

    Thanks
    Robert

    Thread Starter BeDotMediaGroup

    (@bedotmediagroup)

    Hi Fahad,

    It actually looks like its the sanitize_wdp_data process you added:

    if ( isset( $_POST[‘plus_discount_text_info’] ) ) update_post_meta( $post_id, ‘plus_discount_text_info’, $_POST[‘plus_discount_text_info’])

    I have removed that from this line, and now works fine — it did originally also have strip slashed, which i removed also.

    is there a better way of doing this? or are you happy with this update?

    Thanks
    Robert

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    Robert,

    In fact it was suggested by the TEAM WP. Initially it wasn’t like that, i will find a way that how can we keep it without strip slashed. Thank you for understanding but TEAM suggested me this else they consider it as a potential threat.

    Thanks,
    Fahad

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Text in Product Description strips HTML’ is closed to new replies.