News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Affiliate component and Virtuemart

Started by thefbi, March 15, 2021, 09:58:03 AM

Previous topic - Next topic

thefbi

Hello,

i am searching for an affiliate component for Virtuemart. I find this post on your site : https://virtuemart.net/news/list-all-news/320?task=view

Now, the jafilia project is not about affiliation... I suggest you delete this article.

And if you have an idea if exist an affiliate program for VM ?

Regards

StefanSTS

#1
Hi thefbi,

I do not really know an extension for affiliate functions, but if you explain how the result should look like, I am sure there is a solution to that.

In some cases it might help to just use a small content plugin to exchange some text with an affiliate code.

Regards
Stefan

--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

Milbo

Thank you, it was an archived article from 2008, is now trashed. But in my case it did not link to sex, but to a carseller. ?
Should I fix your bug, please support the VirtueMart project and become a [url=http://extensions.virtuemart.net/support/virtuemart-supporter-membership-detail]member[/url]
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

thefbi

Quote from: Milbo on March 15, 2021, 11:46:26 AM
Thank you, it was an archived article from 2008, is now trashed. But in my case it did not link to sex, but to a carseller. ?

You are welcome. Glad if it can help :)

thefbi

Quote from: StefanSTS on March 15, 2021, 11:30:38 AM
Hi thefbi,

I do not really know an extension for affiliate functions, but if you explain how the result should look like, I am sure there is a solution to that.

In some cases it might help to just use a small content plugin to exchange some text with an affiliate code.

Regards
Stefan

Hi, thank you.

Actually, i use idev affiliate for anothe website (with Membership pro). So i can use this system with Virtuemart.
Basically, idev can work with VM, but too simply. I mean, i just can make some affiliate percentage, depending on the amount they sell. This is not enough.

That was the same with the config for Membership pro. BUT, i was able to configure the commissions manually.
For that, I could use a function in membership pro, which is a php script called after the validation of a member registration.

So for each plan subscription, I made a code that will fetch the info of the plan, then put this info together and send it to idev as a POST request (well, I hope that's it, I don't have too much knowledge in programming, I manage as I can).

But in VM, i cant put php code for that ? Or is there a plugin to do that ?

The exemple of code i have for Membership pro :

Code 1, is subscription stored script (This is the PHP code will be run after subscription record stored into database (before payment stored) :

// insert order id and ip address
$db = JFactory::getDbo();
$query = $db->getQuery(true);

$columns = array('order_id', 'ip_address');
$values = array(intval($row->id), $db->quote($_SERVER['REMOTE_ADDR']));

$query->insert($db->quoteName('#__thename-of-my-table'))->columns($db->quoteName($columns))->values(implode(',', $values));

$db->setQuery($query);
$db->execute();


And code 2, subscription active script (This is the PHP code will be run after subscription status is active(for example, after payment compelted or admin approve subscription record from backend)).

       
        /* Définit le facteur pour la commission */
        $pourcentage_commission = 0.35;
        /* fin pourcentage */       
       
        /* définit la commission affichée sur la confirmation dans idev  Ajouté par fred */
$commission = '35%';
/* fin */
         
       
        $db = JFactory::getDbo();
$query = $db->getQuery(true);

/* get ip address */
$query->select('ip_address')
->from('#__name-of-my-idev-table')
->where('order_id = ' . intval($row->id));
$db->setQuery($query);
$ip_address = $db->loadResult();

/* get product data */
$query->clear();
$query->select('title')
->from('#__name-of-my-membership-pro-table')
->where('id = ' . intval($row->plan_id));
$db->setQuery($query);
$products_purchased = $db->loadResult();
/* get product data */

/* get product currency Ajouté par Fred pour récupérer la devise */
$query->clear();
$query->select('currency')
->from('#__name-of-my-membership-pro-table')
->where('id = ' . intval($row->plan_id));
$db->setQuery($query);
$products_currency = $db->loadResult();
/* get product currency Fin ajouté par Fred */

/* get coupon code */
$coupon_code = '';
if ($data->coupon_id) {
$query->clear();
$query->select('code')
->from('#__name-of-my-membership-pro-table')
->where('id = ' . intval($row->coupon_id));
$db->setQuery($query);
$coupon_code = $db->loadResult();
}
/* get coupon code */

/* get subtotal */
$sub_total = $row->amount - $row->discount_amount;
/* get subtotal */


/* get comm amount Ajouté par fred pour calculer pourcentage commission */
$comm_amount = $sub_total * $pourcentage_commission;
/* fin get comm amount */





/* generate tracking url */
$tracking_url = 'https://url-of-my-idev-installation/sale.php';
$tracking_fields = 'profile=153&ip_address='.$ip_address.'&idev_saleamt='.$sub_total.'&idev_currency='.$products_currency.'&idev_ordernum='.$row->id.'&idev_option_1='.$products_purchased.'&products_purchased='.$products_purchased.'&coupon_code='.$coupon_code.'&idev_commission='.$comm_amount.'&idev_option_2='.$commission;
/* generate tracking url */

/* submit url */
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $tracking_url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $tracking_fields);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$return = curl_exec($ch);
curl_close($ch);
/* submit url */





pinochico

#5
Hello,

exist - VMAffiliate
We use on 8 shops for one client and continue with develop with app VM Affiliate from Romania for VM3 and J3 (this project officiall was stopped on 2019, but we continue with develop)
You can see example on cannadorra.com

Affiliate from iDev we are tried too, but is not comfortable for bussines.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

StefanSTS

There are a lot of triggers these days in VirtueMart that could be used to get inbetween these processes.

Try to search for "plgVmOn" to find "plgVmOnSomething" in the code. E. g. plgVmOnPaymentResponseReceived

You could write your own plugin to make use of these triggers. There might be some programmers here who have done similar.

--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

thefbi

Quote from: pinochico on March 15, 2021, 13:43:14 PM
Hello,

exist - VMAffiliate
We use on 8 shops for one client and continue with develop with app VM Affiliate from Romania for VM3 and J3 (this project officiall was stopped on 2019, but we continue with develop)
You can see example on cannadorra.com

Affiliate from iDev we are tried too, but is not comfortable for bussines.

Hi, yes i have seen this component, and seen it was stopped. So how can i get it ? And who will perform update etc ?

thefbi

Quote from: StefanSTS on March 15, 2021, 13:45:15 PM
There are a lot of triggers these days in VirtueMart that could be used to get inbetween these processes.

Try to search for "plgVmOn" to find "plgVmOnSomething" in the code. E. g. plgVmOnPaymentResponseReceived

You could write your own plugin to make use of these triggers. There might be some programmers here who have done similar.



OK thanks, i will try to search like this.

pinochico

QuoteHi, yes i have seen this component, and seen it was stopped. So how can i get it ? And who will perform update etc ?

https://www.minijoomla.org/extensions/virtuemart-extensions/vma-affiliate
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

thefbi


thefbi

Hello,
just a come back in this post, to share my bad experience with pinochico.

I bought the component vmaffiliate on the site of minijoomla.org as suggested by pinochico.

First of all, this component was not compatible with an updated Joomla system. I had to wait for its developers to start programming the component to make it compatible. OK, I want to understand that sometimes things don't go as planned, and I want to be patient. I was asked to wait 10 days.

It has been more than 2 months now, and the component still doesn't work. After several reminders from me to be able to use this component, and after several messages telling me that it still doesn't work, I have no answer from pinochico, to whom I asked for a refund of my purchase (about 150 Euros).

As I said before, I can understand that sometimes things don't work out the way you want.

What I can't understand is the lack of professionalism of some people who sell products that are not functional, who don't give solutions in a reasonable time, and who finally don't even answer anymore. As a result, I got ripped off 150 Euros for a component I bought that doesn't work.

I am aware that this forum is not made for that, but I hope that by sharing this bad experience, other people will not make the same mistake as me by seeing this post.

As for me, I will continue to look for something else for my affiliate idea.

Regards

thefbi

I found (finally) an affiliate system for Virtuemart.
It is AWO Affiliate, which works with AWO coupons (which I already had).

This system is quite simple. You have to define who will be affiliated according to the members on the site.
This involves creating coupon codes via AWO coupon, with which you can easily make prices according to items, categories, conditions, etc., and then use these codes for the affiliate.

We then define a commission for the affiliate, based on the coupon.
When a customer uses the coupon, the commission is attributed to the affiliate, who receives an email and can access his affiliate account on the site.

When the minimum payment amount is reached, the affiliate can request a Paypal payment through their account.

So this system is relatively simple, but will allow me to create discounts for customers, which affiliates will be able to promote.

It requires some manual work for the creation of the coupons by affiliates, but it's a good system.

Hopefully it will help people like me who are looking for a simple but flexible affiliate system on Virtuemart.

(Translated with DeepL).