[Skip to main content](#vessel-content)

#   Using Varables in Code in after\_end.php

##

- **[Geoffc](/forum/user/35341-geoffc "View Geoffc's Profile")**
- [![Geoffc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35341-geoffc "View Geoffc's Profile") Topic Author
- [ Offline](/forum/user/35341-geoffc)

Less More

- Posts: 18
- Thank you received: 0
-
-

11 years 7 months ago [\#192495](#192495) by [Geoffc](/forum/user/35341-geoffc "View Geoffc's Profile")  *[Using Varables in Code in after\_end.php](/forum/30-integrations/875306-using-varables-in-code-in-after-end-php#192495 "-- 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&#95;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):   How can the XXX and YYY be replaced by the sales data in this code?  Regards, Geoff")* was created by *[Geoffc](/forum/user/35341-geoffc "View Geoffc's Profile")*

-- 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):
&lt;img border="0" src="[ www.site.com/idevaffiliate/sale.php?prof...XX&amp;idev\_ordernum=YYY](http://www.site.com/idevaffiliate/sale.php?profile=72198&idev_saleamt=XXX&idev_ordernum=YYY)" width="1" height="1"&gt;

How can the XXX and YYY be replaced by the sales data in this code?

Regards,
Geoff

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzUzMDYtdXNpbmctdmFyYWJsZXMtaW4tY29kZS1pbi1hZnRlci1lbmQtcGhwP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 7 months ago [\#192508](#192508) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Using Varables in Code in after\_end.php](/forum/30-integrations/875306-using-varables-in-code-in-after-end-php#192508 "-- 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&#95;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):   How can the XXX and YYY be replaced by the sales data in this code?  Regards, Geoff")*

Hi,

You can use such code:
&lt;?php echo $this-&gt;order-&gt;order_full_price; ?&gt;

and:

&lt;?php echo $this-&gt;order-&gt;order_number; ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMwLWludGVncmF0aW9ucy84NzUzMDYtdXNpbmctdmFyYWJsZXMtaW4tY29kZS1pbi1hZnRlci1lbmQtcGhwP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.116 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
