- Posts: 18
- Thank you received: 0
Using Varables in Code in after_end.php
11 years 7 months ago #192495
by Geoffc
Using Varables in Code in after_end.php was created by Geoffc
-- Joomla version -- : 3
Hi,
How can variables be inserted into java/html/php code at the final stage of checkout after the payment has been received? I understand the after_end.php fronted template is the one to edit but don't know how to pass sales detail variables to the code within it.
Example for iDevaffiliate the image code requires the sales amount (XXX) and order number (YYY):
<img border="0" src=" www.site.com/idevaffiliate/sale.php?prof...XX&idev_ordernum=YYY " width="1" height="1">
How can the XXX and YYY be replaced by the sales data in this code?
Regards,
Geoff
Hi,
How can variables be inserted into java/html/php code at the final stage of checkout after the payment has been received? I understand the after_end.php fronted template is the one to edit but don't know how to pass sales detail variables to the code within it.
Example for iDevaffiliate the image code requires the sales amount (XXX) and order number (YYY):
<img border="0" src=" www.site.com/idevaffiliate/sale.php?prof...XX&idev_ordernum=YYY " width="1" height="1">
How can the XXX and YYY be replaced by the sales data in this code?
Regards,
Geoff
Please Log in or Create an account to join the conversation.
11 years 7 months ago #192508
by nicolas
Replied by nicolas on topic Using Varables in Code in after_end.php
Hi,
You can use such code:
<?php echo $this->order->order_full_price; ?>
and:
<?php echo $this->order->order_number; ?>
You can use such code:
<?php echo $this->order->order_full_price; ?>
and:
<?php echo $this->order->order_number; ?>
Please Log in or Create an account to join the conversation.
Time to create page: 0.166 seconds