iDev Affiliate Integration

  • Posts: 13
  • Thank you received: 2
  • Hikamarket Multivendor Hikaserial Standard Hikashop Business
4 years 8 months ago #316751

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.16
-- PHP version -- : 7.2.28
-- Browser(s) name and version -- : Firefox 74.0

Hello,

We are integrating the iDevAffiliate generic tracking pixel into our after_end.php view. After viewing past posts in the forum, we have some code almost ready:

echo '<img style="height: 0px; width: 0px; border: 0px;" src="http://www.xyzacm.com/idevaffiliate/sale.php?profile=22118&idev_saleamt='.$this->order->order_full_price.'&idev_ordernum='.$this->order->order_number.'&idev_option_1=#username#&idev_option_2=#first_name#&idev_option_3=#last_name#" alt="" />';

We migrated this from another system and have updated to Hikashop method for order_full_price and order_number.

We now have to replace these three merge variables: #username#, #first_name#, and #last_name#

Would the following be correct references to the final three data values we want to pass into iDev?

$this->user->name or $this->customer->name ??
$this->billing_address->address_firstname
$this->billing_address->address_lastname

Thanks!

Last edit: 4 years 8 months ago by ACMLLC.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 7 months ago #316754

Hi,

The username is available in: $this->order->customer->username
The firstname and lastname are available in:
$this->order->billing_address->address_firstname and $this->order->billing_address->address_lastname

The following user(s) said Thank You: ACMLLC

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum