Customizing order confirmation page
Good evening,
I need to add a code segment onto my order confirmation page for the customer to have the ability to rate their transaction:
<script type="text/javascript"><!--
// Adjust the values of popup_pos_x, popup_pos_y to change the location of the popup layer on your confirmation page
popup_pos_x=50;
popup_pos_y=50;
// fill in the order number below
popup_order_number = '';
// fill in the email address below
popup_email = '';
//-->
</script>
<!-- PriceGrabber Merchant Evaluation Code -->
<script type="text/javascript" charset="UTF-8" src="https://www.pricegrabber.com/rating_merchrevpopjs.php"></script>
<noscript><a href="https://www.pricegrabber.com/rating_merchrev.php6" target=_blank>
<img src="https://images.pricegrabber.com/images/mr_noze.jpg" border="0" width="272" height="238" alt="Merchant Evaluation"></a></noscript>
<!-- End PriceGrabber Code -->
BUT I am unsure how to get the correct values into the order number and the email. Can anyone tell me how I need to tackle adding this code segment into my order confirmation page?
Thanks in advance,
Wade
Re: Customizing order confirmation page
hey dude,
on tpl_checkout_success_default.php
<script type="text/javascript"><!--
// Adjust the values of popup_pos_x, popup_pos_y to change the location of the popup layer on your confirmation page
popup_pos_x=50;
popup_pos_y=50;
// fill in the order number below
popup_order_number = '<?php echo $zv_orders_id; ?>';
// fill in the email address below
popup_email = '<?php echo $orders->fields['customers_email_address'] ; ?>';
//-->
</script>
<!-- PriceGrabber Merchant Evaluation Code -->
<script type="text/javascript" charset="UTF-8" src="https://www.pricegrabber.com/rating_merchrevpopjs.php?retid=11668"></script>
<noscript><a href="https://www.pricegrabber.com/rating_merchrev.php?retid=11668" target=_blank>
<img src="https://images.pricegrabber.com/images/mr_noprize.jpg" border="0" width="272" height="238" alt="Merchant Evaluation"></a></noscript>
<!-- End PriceGrabber Code -->
Now, if you have any idea why mine isn't actually popping up at all that would be excellent... because i know the codes right and its populating in the source code, but its just refusing to pop up...