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

  1. Vinny
    Posted 2 years 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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic