Events Made Easy Forums Bug fixed or feature request implemented Imported discounts with multiple groups don’t work

  • This topic has 4 replies, 2 voices, and was last updated 1 month ago by TimB.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #64443
    TimB
    Participant

    When importing discounts which are each being added to multiple discount groups (in the dgroup field), the discount are imported and they correctly show the multiple groups in the Discounts list. But they don’t work on the live site, and when editing one of these discounts in the back end the discount groups field is empty.

    The list of discount groups is comma-separated, and I’ve tried with and without spaces around the comma, and also made sure the character case is the same, but it still doesn’t work.

    #64444
    Franky
    Keymaster

    Indeed, the whole string is considered as the name of 1 discount and in fact won’t work. I forgot to convert the discount groupnames to ids when importing (used to be accepted, but when I started allowing multiple groups for a discount, this was changed to just ids).
    This change should fix it:
    https://plugins.trac.wordpress.org/changeset/2757962/
    but the quickest/best would be to use the discount group ids.

    #64445
    TimB
    Participant

    That’s great, thank you for the fix.

    EME doesn’t seem to show group ID numbers on the Manage Discount Groups page. That’s ok, I’ll wait for this fix in the next version.

    #64446
    Franky
    Keymaster

    The next version will allow to show the ID (will be a default hidden column). This is the changeset on that:
    https://plugins.trac.wordpress.org/changeset/2757996/

    For now, when editing a group, the id is shown in the url too.

    #64447
    TimB
    Participant

    Thanks again!

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