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

  1. useStrict
    Posted 1 year 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

  • eShop
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic