Forums / All Other Contributions/Addons / Snap Affiliates v2.0 for v1.5.0 and later

Snap Affiliates v2.0 for v1.5.0 and later

Views: 68,404

Results 261 to 280 of 464
14 Nov 2014, 9:52 AM
#261
dsvb avatar

dsvb

New Zenner

Join Date:
Jan 2007
Location:
Netherlands
Posts:
8
Plugin Contributions:
0

Snap Affiliates v2.0 for v1.5.0 and later

Thanks for a great plugin. My client wants the referrers to land on an other page then the homepage. Is it possible to change the URL of the page for all referrals? I've been through most of the php but can't find it. I know i can change it with the deeplink generator but my clients expects a vast amount of affiliates so preffers it automated.

14 Nov 2014, 5:38 PM
#262
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Snap Affiliates v2.0 for v1.5.0 and later

dsvb:

Thanks for a great plugin. My client wants the referrers to land on an other page then the homepage. Is it possible to change the URL of the page for all referrals? I've been through most of the php but can't find it. I know i can change it with the deeplink generator but my clients expects a vast amount of affiliates so preffers it automated.
Are you saying that you want a different landing page if the page access was made with the **referrer **parameter set? If so, you could make your modification to /includes/init_includes/init_snap.php to perform your custom redirect.

<?php
/*-----
** Initialize the session's referrer key.
*/
//-bof-v2.1.2a
if (!defined('SNAP_COOKIE_LIFETIME')) {
  define ('SNAP_COOKIE_LIFETIME', 60*60*24*365);
}
//-eof-v2.1.2a
if( isset($_GET['referrer']) ) {
  if( strpos($_GET['referrer'], SNAP_KEY_PREFIX) === 0 ) {
    if( strlen($_GET['referrer']) < 24 ) {
      $_SESSION['referrer_key'] = $_GET['referrer'];
      setcookie("referrer_key", $_GET['referrer'], time() + SNAP_COOKIE_LIFETIME, "/");  /*v2.1.2c*/
[B]//- Insert your custom redirect here[/B]
    }
  }

} else if( $_COOKIE['referrer_key'] ) {
  if( strpos($_COOKIE['referrer_key'], SNAP_KEY_PREFIX) === 0 ) {
    if( strlen($_COOKIE['referrer_key']) < 24 ) {
      $_SESSION['referrer_key'] = $_COOKIE['referrer_key'];
    }
  }
}
17 Nov 2014, 3:30 PM
#263
dsvb avatar

dsvb

New Zenner

Join Date:
Jan 2007
Location:
Netherlands
Posts:
8
Plugin Contributions:
0

Re: Snap Affiliates v2.0 for v1.5.0 and later

Thanks, but what should I put there? Just to be clear: all I want is a different landing URL for all referrers, thanks in advance

17 Nov 2014, 4:03 PM
#264
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Snap Affiliates v2.0 for v1.5.0 and later

Are you planning on creating a brand-new page for the landing or are you going to use an EZ-Page?

17 Nov 2014, 4:18 PM
#265
dsvb avatar

dsvb

New Zenner

Join Date:
Jan 2007
Location:
Netherlands
Posts:
8
Plugin Contributions:
0

Re: Snap Affiliates v2.0 for v1.5.0 and later

preferably a brand-new page

17 Nov 2014, 4:28 PM
#266
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Snap Affiliates v2.0 for v1.5.0 and later

So, what you'd insert at the spot I indicated is

zen_redirect (zen_href_link (FILENAME_NEW_PAGE_NAME));

where you've previously set

define ('FILENAME_NEW_PAGE_NAME', 'new_page_name');

To create a new page is pretty easy, just follow the example provided by the "About Us" plugin.

17 Nov 2014, 4:42 PM
#267
dsvb avatar

dsvb

New Zenner

Join Date:
Jan 2007
Location:
Netherlands
Posts:
8
Plugin Contributions:
0

Re: Snap Affiliates v2.0 for v1.5.0 and later

works ! Thanks a million

17 Nov 2014, 6:28 PM
#268
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Snap Affiliates v2.0 for v1.5.0 and later

Excellent! I'm glad you got it working.

7 Dec 2014, 12:39 PM
#269
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Snap Affiliates v2.0 for v1.5.0 and later

I've submitted v2.7.3 to the Plugins for review. This update adds the home-page link to the admin's Customers->Referrers page, making it possible for the admin to copy/paste the information.

10 Dec 2014, 3:19 AM
#270
kumi avatar

kumi

New Zenner

Join Date:
Nov 2014
Location:
United States
Posts:
2
Plugin Contributions:
0

Re: Snap Affiliates v2.0 for v1.5.0 and later

Is there anyway to give people a choice of either X dollars in cash or Y dollars in credit for our site?

10 Dec 2014, 12:39 PM
#271
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Snap Affiliates v2.0 for v1.5.0 and later

kumi:

Is there anyway to give people a choice of either X dollars in cash or Y dollars in credit for our site?
Not currently, but I'll add your request to the plugin's feature-request list!

14 Dec 2014, 4:48 PM
#272
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Snap Affiliates v2.0 for v1.5.0 and later

v2.7.3 is now available for download.

28 Dec 2014, 9:08 PM
#273
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Snap Affiliates v2.0 for v1.5.0 and later

v2.8.0 is now available from the Plugins area. The update provides downwardly-compatible changes required for Zen Cart v1.5.4.

29 Dec 2014, 2:40 PM
#274
shopville avatar

shopville

Zen Follower

Join Date:
Aug 2012
Posts:
331
Plugin Contributions:
0

Re: Snap Affiliates v2.0 for v1.5.0 and later

Hi was wondering if someone could help me (no idea how it is built might be impossible) limit certain coupon codes should not work if the order is an affiliate order?
TIA

29 Dec 2014, 3:30 PM
#275
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Snap Affiliates v2.0 for v1.5.0 and later

ShopVille:

Hi was wondering if someone could help me (no idea how it is built might be impossible) limit certain coupon codes should not work if the order is an affiliate order?
TIA
There's a session variable set if the current customer has entered your store using an affiliate link, so you'd bracket your custom coupon-limiting code with:

    if (isset($_SESSION['referrer_key']) && zen_not_null($_SESSION['referrer_key'])) {
      <your custom code here>
    }
14 Jan 2015, 8:09 PM
#276
semide avatar

semide

New Zenner

Join Date:
Aug 2009
Location:
Waltham, Massachusetts, United States
Posts:
22
Plugin Contributions:
0

Re: Snap Affiliates v2.0 for v1.5.0 and later

I have an odd issue. We installed v2.7.1 in a new store running Zen 1.5.3. We imported a number of affiliates from a different system, synced affiliate codes, and launched and all seemed well.

We just had our first new affiliate sign-up. We got their info, they were assigned a number, but when we go to approve them the screen refreshes and the first affiliate in our list is toggled to unapproved.

To trace the flow:
List affiliates, find an unapproved one. Click the row to bring up the record: ( I am wrapping urls in code to avoid munging, I hope...)

https://www.naturalpetrx.com/XXXXXX/referrers.php?page=2&referrer=938&mode=details

Correct referrer record displays. Click the Approve button. Code tags have post info from request:

commission	35
mode	
mode	Approve
referrer	938
securityToken	a4812229a2be4e95f4d661686bdc1b36

Screen refreshes to details of first referrer in list, and they are now marked Not approved. They are not referrer 938, that was the original referrer.

Has anybody seen something similar, or can anyone point me in the right direction?

14 Jan 2015, 8:19 PM
#277
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Snap Affiliates v2.0 for v1.5.0 and later

Hmm, two mode variables?

commission	35
mode	
mode	Approve
referrer	938
securityToken	a4812229a2be4e95f4d661686bdc1b36

I'll need to investigate further.

14 Jan 2015, 8:32 PM
#278
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Snap Affiliates v2.0 for v1.5.0 and later

I'm not seeing this behavior on SNAP v2.7.3 on Zen Cart v1.5.1.

What method did you use to import/sync those affiliate codes?

14 Jan 2015, 10:57 PM
#279
dsvb avatar

dsvb

New Zenner

Join Date:
Jan 2007
Location:
Netherlands
Posts:
8
Plugin Contributions:
0

Re: Snap Affiliates v2.0 for v1.5.0 and later

hi Cindy,

Maybe a stupid question but i'm struggling with the sign_up procedure. Am I correct in understanding that the only way to sign up as an affiliate is by entering the URL for wich the customer already has to be registered and signed in?

Unless I didn't set up the plugin correctly this means, the affiliate-to-be creates an account (regular ZC account) then has to click on "Our Partner Programm" in the informationbox again to get to the sign_up form (the URL that is). This seems a complicated way to sign up. And rather hard to explain to a wannabee Affiliate. Isn't there some kind of shortcut? In my case just simply filling out a form and getting a notice that a Affiliates needs approval would be sufficient.

many thanks in advance. Sander

15 Jan 2015, 1:24 PM
#280
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Snap Affiliates v2.0 for v1.5.0 and later

As the code/process sits today, an affiliate to your store needs to have an account with your store -- that's how the admin side of the processing maps the affiliates's "code" to a person.

That said, you could look at also installing the "Encrypted Master Password" plugin. That would allow you (the Zen Cart admin) to create the account for the customer/affiliate and go through the "difficult" steps of requesting an affiliate link.