Post by dos659 » Sat Apr 09, 2011 4:30 am

hello i took part in an affiliate project to become an advertiser and because this works with how many users clicking on affiliates websites and buy from you so they can get some profit they gave me a little html code which i have to fill with something i cant figure out. So here we go
the html code is this and it needs to be placed in the order success page:

<IMG SRC="http://affiliate.linkwise.gr/i_track_sa ... e_status=P">

-Where the LINE_ITEM_STRING is i need to put the amount of the sold item BUT without the tax(VAT) and its quantity so it should look like this example :prod:100.00:qty:1
:prod:100.00 is the sold products price without the tax(VAT) and where the :qty:1 is its the quantity of the items that the buyer took (qty stays always 1 it doesnt matter how many items have been sold on the same client)

-Where TRANSACTION_ID is it needs to be filled with the unique order id that opencart uses on its platform.

so lets say that someone comes and buy from my store something that costs 50 euro with Greek VAT (which means 40.65 without the Greek VAT which is 23%) and the order id is 325, so if we have these numbers the link needs to be like this:

<IMG SRC="http://affiliate.linkwise.gr/i_track_sa ... e_status=P">

The question is: What do i need to put on LINE_ITEM_STRING and TRANSACTION_ID to give me the results above?

Thanks in advance
Sorry for the long post i hope you can spend 3 mins from your personal life to read it!
Thanks again :D

New member

Posts

Joined
Sat Apr 09, 2011 4:07 am

Post by dos659 » Sat Apr 09, 2011 6:14 pm

Anyone? Its really important for me! Please help :D

New member

Posts

Joined
Sat Apr 09, 2011 4:07 am

Post by dos659 » Sun Apr 10, 2011 5:13 am

40 ppl and still noone :( cmon guys

New member

Posts

Joined
Sat Apr 09, 2011 4:07 am

Post by qahar » Sun Apr 10, 2011 8:32 am

Affiliate track usually at the end of purchase step at the success page.
You can look into success.tpl and controller/checkout/success.php to find what you need.
From what I remember, transaction ID is available on this page.
But I don't know about the non-VAT Price

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by dos659 » Sun Apr 10, 2011 10:18 am

The non vat price in the code is called "price". Its the pure numbers that you give to the item as a price and after you add the vat in other tab.

i think i found some points by searching inside opencart codes
plz let me know if im in the right direction to solve this puzzle!!

as a price:
<?php echo $text_price; ?>
<?php if ($display_price) { ?>

and:

<td><?php echo $entry_price; ?></td>
<td><input type="text" name="price" value="<?php echo $price; ?>" /></td></tr>


as an order id:
if (isset($this->request->get['order_id'])) {
$order_id = $this->request->get['order_id'];

and:

<?php } ?>
<b><?php echo $text_order_id; ?></b><br />
#<?php echo $order_id; ?><br />



the quantity stays always 1 so i suppose that it needs to be writen exact as the
example which means something like this: :qty:1

show mercy to the newbie :D

New member

Posts

Joined
Sat Apr 09, 2011 4:07 am

Post by dos659 » Sun Apr 10, 2011 9:34 pm

Is there any way of this to be correct?

<IMG SRC="http://affiliate.linkwise.gr/i_track_sa ... prod:<?php echo $price; ?>:qty:1/<?php echo $order_id; ?>/&sale_status=P">

and put it here: /catalog/view/theme/my_template/template/common/success.tpl ???

New member

Posts

Joined
Sat Apr 09, 2011 4:07 am

Post by Xsecrets » Sun Apr 10, 2011 9:52 pm

no it's not going to be that easy. The order session is cleared before the success page is loaded, so the information is not available on that page unless you edit other files to make it available. Hopefully this won't be an issue in future versions where there is supposed to be a more robust sucess page.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by dos659 » Sun Apr 10, 2011 11:56 pm

any idea of what should i edit to make it possible?

New member

Posts

Joined
Sat Apr 09, 2011 4:07 am

Post by spaquet » Mon Apr 11, 2011 5:55 am

Hi,
I'm looking to use, for some product, affiliation programs and I was wondering how you are including the link.
Is this some thing you are passing as a product option ?

Newbie

Posts

Joined
Mon Apr 11, 2011 3:14 am

Post by dos659 » Mon Apr 11, 2011 6:13 am

affiliation is working like this:
you want to advertise yourself? you find a company which finds affiliates (people with websites that they want to put your advertisement as a banner to their home page) for you and you start to become famous. If someone clicks the advertisement on the affiliates website and comes to your site and he buys something the affiliate gets profit from the subtotal (the price without the VAT). It cant be for some of your products its only for everything that you have in your store. You pass this code on the success page after the confirmation.

New member

Posts

Joined
Sat Apr 09, 2011 4:07 am

Post by qahar » Mon Apr 11, 2011 12:22 pm

Xsecret is right, you can see at success.php the order_id is already unset on controller.
May be you can try move the unset to bottom.

User avatar
Expert Member

Posts

Joined
Tue Jun 29, 2010 10:24 pm
Location - Indonesia

Post by dos659 » Mon Apr 11, 2011 5:50 pm

Yes i just saw that. Thought i cant see the price on the controller, it seems to be cleared before, it might gets cleared when you click confirm...

I just need someone to tell me where to start modificating and what to modificate.
I know its difficult but it needs to be happen to one way or another.

thanks in advance

New member

Posts

Joined
Sat Apr 09, 2011 4:07 am

Post by jimaras » Tue Jan 24, 2012 5:09 am

Did you find any solution?
I need this.

How works affiliate code with opencart?
The code is different for the actions from this :<IMG SRC="http://affiliate.program.com/i_track_sa ... e_status=P">

or opencart doesn't support affiliate programs?

http://e-kreopoleio.com/


Active Member

Posts

Joined
Thu Sep 15, 2011 1:45 am
Who is online

Users browsing this forum: Bing [Bot] and 51 guests