WordPress.org

Ready to get started?Download WordPress

Forums

eShop
Discount code creation: empty remain set to 0 (1 post)

  1. useStrict
    Member
    Posted 7 months ago #

    Hi guys,

    A client pointed out that when he creates a new discount code with unlimited uses it's actually being inserted as 0 instead of the empty string. I was able to replicate it.

    Debugging the code, I found that $wpdb->prepare() is returning the 0 for insertion even though $eshop_remain is set correctly as the empty string. Updating the discount code to fix it works.

    I'm using WP 3.8.1, and eShop 6.3.11.

    https://wordpress.org/plugins/eshop/

Reply

You must log in to post.

About this Plugin

About this Topic