VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: tygo on July 28, 2014, 16:05:36 PM

Title: Affiliate Tracking of Payment
Post by: tygo on July 28, 2014, 16:05:36 PM
Hello,

I need to place a tracking pixel, that is activated, when a sale is submitted, regardless, which way of payment is choosen. I currently dont know, where to put the skript.
It has the following structure:

<img src="http://www1.belboon.de/adtracking/sale/000014437.gif/oc='<<__order_id__>>?value=<<__amount_without_taxes__>>">

The parameters order_id and amount_without_taxes must be filled dynamically.

THanks for any ideas!
Title: Re: Affiliate Tracking of Payment
Post by: GJC Web Design on July 28, 2014, 17:55:38 PM
depends on which payment plugin your using - some that redirect back to the confirmation page produce their html in the plgVmConfirmedOrder() function of the plugin

have a look at the standard vm payment plugin to see

$order['details']['BT']->order_number & $order['details']['BT']->order_total are normally available there







Title: Re: Affiliate Tracking of Payment
Post by: tygo on July 29, 2014, 10:28:51 AM
yes, i use this standard plugin, but i have the problem that i use sofortüberweisung and paypal as well. Thus do i have to set a confirmation for each payment individually? isn´t there a smart way?
Title: Re: Affiliate Tracking of Payment
Post by: GJC Web Design on July 29, 2014, 11:00:54 AM
No - because your wanting to track a comfirmation response from the individual payment methods - so the response should come from them when they are confirmed...
Title: Re: Affiliate Tracking of Payment
Post by: GJC Web Design on July 29, 2014, 12:50:59 PM
Perhaps you could suggest to Alatak (she builds the majority of payment plugins) to add a field in the plugin config to incl. some custom html in the confirm output?

Arranging the different parameters needed (e.g. order number and confirmed amount) will need more fields though to config...   :(
Title: Re: Affiliate Tracking of Payment
Post by: tygo on July 30, 2014, 15:13:27 PM
is there any way to track the orders without a verification? because i have to verify each order manually in the backend of our affiliate-partner
Title: Re: Affiliate Tracking of Payment
Post by: GJC Web Design on July 30, 2014, 15:18:48 PM
you will have to build a plugin that sends a track url when you click confirm order
Title: Re: Affiliate Tracking of Payment
Post by: GuidoS on July 30, 2014, 17:10:51 PM
Well I use Onepagecheckout for this, I needed this for two affiliates, beslist and webgains. It also can send the feed for the products and the pixel which send all the orders to beslist.
Title: Re: Affiliate Tracking of Payment
Post by: GJC Web Design on July 30, 2014, 17:41:32 PM
But he's talking about sending when he manually updates to Confirmed in the admin....
Title: Re: Affiliate Tracking of Payment
Post by: tygo on July 31, 2014, 17:36:34 PM
Quote from: GJC Web Design on July 30, 2014, 15:18:48 PM
you will have to build a plugin that sends a track url when you click confirm order

isnt it possible to modify the code a little bit ("hard-coded") not very comfortable, but i have never built a plugin.
Title: Re: Affiliate Tracking of Payment
Post by: tygo on August 08, 2014, 12:04:29 PM
isnt it possible to implement a little pice of code to track the payments manually?