Support » Plugin: Woo Custom Emails » Wront tag replacement

  • Hello,

    your plugin is great. Unfortunately i have a crazy tag replacement behaviour.

    So i have created a custom tag “{gallery_access_code}” for replacement:

    function convert_template() {


    $order = wc_get_order( $this->object );
    $gallerycode = strval(get_post_meta( $order->id, ‘_gallerycode_field’, true ));
    $this->placeholders[‘{gallery_access_code}’] = $gallerycode;
    ….

    So now if the customer gets the custom generated email, he normally finds the right gallerycode in his mail.

    For example:

    “Die Zugangskarten mit dem Zugangscode 2388238 für Deine persönliche Eventgalerie sind bereits erstellt.”

    But if the gallerycode contains the number 1 or 0 i for example 1234560, the customer gets the following:
    “Die Zugangskarten mit dem Zugangscode {billing_first_name}23456{formatted_billing_address} für Deine persönliche Eventgalerie sind bereits erstellt.”

    Do you have an idea, how i can solve it?

    Thank you in advance!

    BR,
    Artjom

  • The topic ‘Wront tag replacement’ is closed to new replies.