WC Subscriptions – Sub number passed rather than order number
-
Hi
I’ve been using the plugin for a while and it’s great – saves a lot of time when modifying WC emails.
I have a lot of custom code doing various things on my site which all works fine however today I was modifying a WC Subscriptions email and decided to use the Preview plugin again instead of waiting for emails to be sent/received and came across an issue.
It seems that for a switch order with the switch completed email (NB haven’t tried for other type of orders or emails) that the plugin passes the subscription number rather than the switch order number. I’m sure there is a reason for this however what I was trying to test expects the order number as passed in to the switch completed email template. The email itself sends fine (passing the order number to the function to do it’s thing in the process) if triggered when processing an actual subscription switch but causes a fatal error when using the preview plugin.
- The topic ‘WC Subscriptions – Sub number passed rather than order number’ is closed to new replies.