thilinabrat
Forum Replies Created
-
Thank you for letting me know. 🙂
Hi, thank you for the update. After updating the plugin I tried using the PHP code with the code module in the page builder, but it didn’t work. Therefore, I created a shortcode and put the php code inside that and used it in the builder instead and it worked well.
add_shortcode(‘one_click_register’, ‘wc_pcr_message_function’);
function wc_pcr_message_function() {
$order_id = get_query_var(‘order-received’);
return do_shortcode(‘[wc_pcr_message order_id=”‘ . $order_id . ‘”]’);
}I’m using Divi and BodyCommerce on my WooCommerce website, and I created a custom thank you page layout in Divi and assigned it using Divi BodyCommerce. I’ve tried to use the shortcode “[wc_pcr_message]” on my custom thank you page, but it didn’t work. I also attempted to use “<?php echo do_shortcode(‘[wc_pcr_message order_id=”‘. $order->get_id() . ‘”]’) ?>” but it still didn’t work.
but the plugin works with the default thank you page without using any shortcode.
my thankyou page URL looks like this checkout/order-received/987469714/?key=wc_order_rHbbHrhnZMRW1
I’m using version 1.0.1.
- This reply was modified 3 years, 1 month ago by thilinabrat.