• Resolved agcreateit

    (@agcreateit)


    I can’t get this to work at all, I’ve tried BOTH the custom thank you page and also the normal thank you page. Neither show the message. I’ve also cleared ALL additional CSS that was creating the error messages too.

    We’re going live soon and would love to have this in. It looks like the most ideal plugin I just can’t seem to get it to work!

    Would love your help. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ali Khallad

    (@alikhallad)

    Hello, sorry for the delay.

    Have you tried using the shortcode [wc_pcr_message] for the custom thank you page.

    Some themes will change the default WC filters and hooks resulting in the plugin not displaying the prompt when needed.

    I’m also having this error, the short code doesn’t work on a custom thank you page. It only outputs a non breaking space character.

    Plugin Author Ali Khallad

    (@alikhallad)

    Are you using the latest version 1.0.3?

    If yes, you need to pass the order_id in the custom thank you page URL for the plugin to work, other than that, it will not output the prompt.

    The URL should look something like this: https://yoursite.com/custom-thankyou/order_id=123

    There wasn’t a great way to add the order_id to the URL like that, so I had to hack a solution custom to the project.

    I think the best solution would be to add an attribute to the shortcode to include the order_id instead of relying on the URL to have a $_GET variable storing the information.

    Devs could then use the shortcode on custom pages without having to add variables to the URL, or be able to call the message on other non-order related pages:
    <?php echo do_shortcode('[wc_pcr_message order_id="'. $order->get_id() . '"]') ?>

    Plugin Author Ali Khallad

    (@alikhallad)

    Thanks for the suggestion, this feature is added into the most recent release 1.0.4.

    Please do not hesitate to open another ticket if you’re still having issues.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not appearing using shortcode / or not using shortcode’ is closed to new replies.