• Resolved pascalost

    (@pascalost)


    Hi guys,

    Until yesterday I had this piece of code working fine and now it give me the following error:

    echo (do_shortcode(“[wp_cart_display_product name=’ $name ‘ price=’ $product_price ‘ thumbnail=’ $image ‘ var1=’ $var1 ‘]”));

    Error! Special characters like [, ], <, > are not supported in the product name.

    Any idea why? thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Thank you for reaching out to us. I have not tested your code above. However your code above is different to the solution you shared in the following forum post a while back.

    https://wordpress.org/support/topic/wp_cart_display_product/#post-10964995

    Also which payment method are you currently using?

    Kind regards.

    Thread Starter pascalost

    (@pascalost)

    hi, thanks for responding. I fixed it using sanitize_text_field() function. I should have done it in the first place. Another question if I may. Is there a way to resize the column in the shopping cart table?

    Best regards,

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Can you provide a screen capture pin pointing what you want to resize? I just want to make sure I understand your question correctly.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.