Forums / All Other Contributions/Addons / snap-affiliates?

snap-affiliates?

Views: 49,684

Results 61 to 80 of 223
23 Sep 2010, 6:33 PM
#61
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

snap-affiliates?

helpme:

Ok, figured everything else out, but where do I put the path for the banners? I have uploaded them to the templetes/mytemplete/images/referrers folder and changed the sizes to reflect the correct size in the tools file, but they are coming up blank because I don't have the code in. Every way I put the code in it breaks that page.
Can someone post an example and placement please?
Thanks, I am already loving this mod!!

Ok this was a bit difficult and I don't know why I nor the gentlemen who originally wrote this left it off.

To get the Marketing Tools to give you the code for the banners:

  1. Edit your template directory's : /templates/tpl_referrers_tools.php file. Scroll down and look for the following code:
 /* uncomment when images are developed and in-place
print_referrer_image(468, 60);
print_referrer_image(234, 60);
print_referrer_image(80, 15);
print_referrer_image(88, 31);
print_referrer_image(120, 90);
print_referrer_image(120, 60);
print_referrer_image(120, 240);
print_referrer_image(125, 125);
 */
  1. Cut the portion of code that represents the size of the image you want to make. Then past it DIRECTLY ABOVE the line:
/* uncomment when images are developed and in-place

So if you wanted a 468x60 image you file should look like:

print_referrer_image(468, 60);
 /* uncomment when images are developed and in-place
print_referrer_image(468, 60);
print_referrer_image(234, 60);
print_referrer_image(80, 15);
print_referrer_image(88, 31);
print_referrer_image(120, 90);
print_referrer_image(120, 60);
print_referrer_image(120, 240);
print_referrer_image(125, 125);
*/

The name of image file should be /images/referrers/ref.xxx.yyy.jpg where xxx is the length of the image and yyy is the height of it. So for a 468x60 image you should upload a image named: ref.468.60.jpg to your images/referrers directory.

I know that maybe people want to make other images for the same size. (Example: 2 468x60's) CURRENTLY, this isn't possible BUT it is on the list of stuff for the next version. I'll post a code patch up here shortly.

The only thing that is stopping me from posting the new update is that I realize not everyone has the wide site layout like I have. (Some people still use the default narrow "template_default" and that just complicates writing the instructions.

There was also an idea of me charging a small fee for me to "visit" your server and make the changes myself but that isn't exactly ideal. The new version will be ready soon once I get these kinks out of the way. Any suggestions would be welcomed.

27 Sep 2010, 9:03 AM
#62
giveitago avatar

giveitago

New Zenner

Join Date:
Sep 2010
Posts:
2
Plugin Contributions:
0

Re: snap-affiliates?

thelawman:

2- The files includes/languages/english/referrer_main.php
includes/languages/english/referrer_main.php
includes/languages/english/referrer_main.php needed to be in my overides folder to get rid of the NAVBAR_TITLE issue.

You seem to be making some sense of it. I'm still struggling with getting the affiliate script to work. What exactly is the "overrides" folder that you're mentioning?

When I go to mystore/index.php?main_page=referrer_signup
I get the header "Home :: Affiliate Signup " and a blank page. Why is that?

Any help to get this working would be much appreciated!
Thanks.

27 Sep 2010, 6:04 PM
#63
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: snap-affiliates?

giveitago:

You seem to be making some sense of it. I'm still struggling with getting the affiliate script to work. What exactly is the "overrides" folder that you're mentioning?

When I go to mystore/index.php?main_page=referrer_signup
I get the header "Home :: Affiliate Signup " and a blank page. Why is that?

Any help to get this working would be much appreciated!
Thanks.

You need to copy the contents of the folder includes/modules/pages as well. Were these copied?

28 Sep 2010, 8:13 PM
#64
giveitago avatar

giveitago

New Zenner

Join Date:
Sep 2010
Posts:
2
Plugin Contributions:
0

Re: snap-affiliates?

retched:

You need to copy the contents of the folder includes/modules/pages as well. Were these copied?

Thank you for your reply. Yes, the whole package was copied. I still don't understand what is the overrides folder that he's talking about.

However, I understood why nothing displays under the referrer_signup. It was actually pretty simple :) the file is empty... well, apart from a couple of lines displaying title and header.

Now I'm puzzled big time. If I want the referrer_signup to display anything, it actually has to have some content... so, what do I put there?

29 Sep 2010, 8:25 AM
#65
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: snap-affiliates?

giveitago:

Thank you for your reply. Yes, the whole package was copied. I still don't understand what is the overrides folder that he's talking about.

However, I understood why nothing displays under the referrer_signup. It was actually pretty simple :) the file is empty... well, apart from a couple of lines displaying title and header.

Now I'm puzzled big time. If I want the referrer_signup to display anything, it actually has to have some content... so, what do I put there?

That's not right. You should see the referrer terms on that page... even if you're not signed in.

29 Sep 2010, 7:28 PM
#66
yosemirza avatar

yosemirza

New Zenner

Join Date:
Aug 2009
Posts:
25
Plugin Contributions:
0

Re: snap-affiliates?

I tested snap affliates with Zencart 1.3.9f, everything work but:

  1. Not working on multi currency. I set my default currency other than USD, but the commission currency symbol still $(USD). When I changed the currency into USD, the amount not changed as well as the symbol.

  2. On Pending order status, the commission has been set and displayed on affiliate tools.

Thanks

29 Sep 2010, 9:08 PM
#67
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: snap-affiliates?

yosemirza:

I tested snap affliates with Zencart 1.3.9f, everything work but:

  1. Not working on multi currency. I set my default currency other than USD, but the commission currency symbol still $(USD). When I changed the currency into USD, the amount not changed as well as the symbol.

  2. On Pending order status, the commission has been set and displayed on affiliate tools.

Thanks

  1. The USD$ is hard coded into the language files. I haven't had a chance to set up for Multi-Currency yet.

  2. The order status isn't checked, yet, as well... I haven't been able to get a good system going with this.

30 Sep 2010, 5:10 AM
#68
yosemirza avatar

yosemirza

New Zenner

Join Date:
Aug 2009
Posts:
25
Plugin Contributions:
0

Re: snap-affiliates?

Thanks for reply

  1. The USD$ is hard coded into the language files. I haven't had a chance to set up for Multi-Currency yet.

Which language file do I need to edit to change ($) USD symbol into other currency?
Thanks

1 Oct 2010, 12:11 AM
#69
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: snap-affiliates?

yosemirza:

Thanks for reply

Which language file do I need to edit to change ($) USD symbol into other currency?
Thanks

I'm sorry I made a wrong statement. It's hardcoded on the files of snap affiliate itself.

Edit the following in tpl_referrer_main_default.php found in your templates directory:

Around 80-86:

          <td><strong>Current sales</strong></td>
          <td> $<?php echo number_format($unpaid_total, 2); ?></td>
        </tr>
        <tr>
          <td><strong>Unpaid commission</strong></td>
          <td><strong>$<?php echo number_format($unpaid_commission, 2); ?></strong></td>
        </tr>
        <tr>
          <td><strong>Year to date sales</strong></td>
          <td> $<?php echo number_format($yearly_total, 2); ?></td>
        </tr>
        <tr>
          <td><strong>Year to date commission</strong></td>
          <td><strong>$<?php echo number_format($yearly_commission, 2); ?></strong></td>
        </tr>
      </table>
```Edit the $ that appears **before** the <?php echo statement to your currency.

Then further down in the same file:

Look for:

```php
  printf("<td>$%s</td>\n", number_format($entry['amount'], 2));
```and 

```php
  printf("<td>$%s</td>\n", number_format($entry['commission'] * $entry['amount'], 2));
```And change the $ in each $%s to the currency of your choosing. For example, to switch to the Yen, change $%s to ¥%s.

And then finally:

Change the $'s **before** the <?php statements in each of the below:
```php
<tr>
 <td style='border-top: 1px dashed grey;'>
  <strong>Totals</strong>
 </td>
 <td style='border-top: 1px dashed grey;'>
   <strong>$<?php echo number_format($activity_total,2); ?></strong>
 </td>
 <td style='border-top: 1px dashed grey;'>
 </td>
 <td style='border-top: 1px dashed grey;'>
  <strong>$<?php echo number_format($activity_commission, 2); ?></strong>
 </td
 <td style='border-top: 1px dashed grey;'>
 </td>
</tr>
</table>
```If you need assistance, send a PM and I'll act on this for you.

Whatever you do... **DO NOT DO A GLOBAL FIND/REPLACE** to change the $ or else you may break the coding.
5 Oct 2010, 9:36 PM
#70
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Re: snap-affiliates?

retched:

Ok this was a bit difficult and I don't know why I nor the gentlemen who originally wrote this left it off.

To get the Marketing Tools to give you the code for the banners:

  1. Edit your template directory's : /templates/tpl_referrers_tools.php file. Scroll down and look for the following code:

/* uncomment when images are developed and in-place
print_referrer_image(468, 60);
print_referrer_image(234, 60);
print_referrer_image(80, 15);
print_referrer_image(88, 31);
print_referrer_image(120, 90);
print_referrer_image(120, 60);
print_referrer_image(120, 240);
print_referrer_image(125, 125);
*/

>  
> 2) Cut the portion of code that represents the size of the image you want to make. Then past it DIRECTLY ABOVE the line: 
>  
> ```php
/* uncomment when images are developed and in-place

So if you wanted a 468x60 image you file should look like:

print_referrer_image(468, 60);
/* uncomment when images are developed and in-place
print_referrer_image(468, 60);
print_referrer_image(234, 60);
print_referrer_image(80, 15);
print_referrer_image(88, 31);
print_referrer_image(120, 90);
print_referrer_image(120, 60);
print_referrer_image(120, 240);
print_referrer_image(125, 125);
*/

>  
> The name of image file should be /images/referrers/ref.xxx.yyy.jpg where xxx is the length of the image and yyy is the height of it. So for a 468x60 image you should upload a image named: ref.468.60.jpg to your images/referrers directory.
>  
> I know that maybe people want to make other images for the same size. (Example: 2 468x60's) CURRENTLY, this isn't possible BUT it is on the list of stuff for the next version. I'll post a code patch up here shortly.
>  
> The only thing that is stopping me from posting the new update is that I realize not everyone has the wide site layout like I have. (Some people still use the default narrow "template_default" and that just complicates writing the instructions.
>  
> There was also an idea of me charging a small fee for me to "visit" your server and make the changes myself but that isn't exactly ideal. The new version will be ready soon once I get these kinks out of the way. Any suggestions would be welcomed.
 
Ok, I understand I think but when I pull up the page the image is still just an x.  I have it named ref.468.60.jpg and placed it in the www/images/referrers folder  :(   any other help?  thanks!!
6 Oct 2010, 8:20 AM
#71
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: snap-affiliates?

helpme:

Ok, I understand I think but when I pull up the page the image is still just an x. I have it named ref.468.60.jpg and placed it in the www/images/referrers folder :( any other help? thanks!!

Can you provide a link to your site?

6 Oct 2010, 12:22 PM
#72
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

Re: snap-affiliates?

retched:

Can you provide a link to your site?

Never mind, I figured it out! Thanks!!

7 Oct 2010, 9:48 AM
#73
yosemirza avatar

yosemirza

New Zenner

Join Date:
Aug 2009
Posts:
25
Plugin Contributions:
0

Re: snap-affiliates?

retched:

I'm sorry I made a wrong statement. It's hardcoded on the files of snap affiliate itself.

Edit the following in tpl_referrer_main_default.php found in your templates directory:

Around 80-86:

      <td><strong>Current sales</strong></td>
      <td> $<?php echo number_format($unpaid_total, 2); ?></td>
    </tr>
    <tr>
      <td><strong>Unpaid commission</strong></td>
      <td><strong>$<?php echo number_format($unpaid_commission, 2); ?></strong></td>
    </tr>
    <tr>
      <td><strong>Year to date sales</strong></td>
      <td> $<?php echo number_format($yearly_total, 2); ?></td>
    </tr>
    <tr>
      <td><strong>Year to date commission</strong></td>
      <td><strong>$<?php echo number_format($yearly_commission, 2); ?></strong></td>
    </tr>
  </table>
> 
> Then further down in the same file:
> 
> Look for:
> 
> ```php
  printf("<td>$%s</td>\n", number_format($entry['amount'], 2));
```and 
> 
> ```php
  printf("<td>$%s</td>\n", number_format($entry['commission'] * $entry['amount'], 2));
```And change the $ in each $%s to the currency of your choosing. For example, to switch to the Yen, change $%s to ¥%s.
> 
> And then finally:
> 
> Change the $'s **before** the <?php statements in each of the below:
> ```php
<tr>
 <td style='border-top: 1px dashed grey;'>
  <strong>Totals</strong>
 </td>
 <td style='border-top: 1px dashed grey;'>
   <strong>$<?php echo number_format($activity_total,2); ?></strong>
 </td>
 <td style='border-top: 1px dashed grey;'>
 </td>
 <td style='border-top: 1px dashed grey;'>
  <strong>$<?php echo number_format($activity_commission, 2); ?></strong>
 </td
 <td style='border-top: 1px dashed grey;'>
 </td>
</tr>
</table>
```If you need assistance, send a PM and I'll act on this for you.
> 
> Whatever you do... **DO NOT DO A GLOBAL FIND/REPLACE** to change the $ or else you may break the coding.

Thank you for reply...I will try this first..
10 Oct 2010, 6:29 PM
#74
glamourdolleyes avatar

glamourdolleyes

New Zenner

Join Date:
Mar 2009
Posts:
86
Plugin Contributions:
0

Re: snap-affiliates?

I have this mod installed on v1.3.9g however, I do have a problem with some of the entries. If you have more than 50 entries and a second page of referrers, you have to change the last name of the people to actually click on them to change their info.

This way, they will jump to the first page, change their info and then change their last name again.

Also, there's no way to delete an entry if someone doesn't "qualify" and there is no way to take $ away if an order was canceled.

11 Oct 2010, 5:57 AM
#75
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: snap-affiliates?

glamourdolleyes:

I have this mod installed on v1.3.9g however, I do have a problem with some of the entries. If you have more than 50 entries and a second page of referrers, you have to change the last name of the people to actually click on them to change their info.

This way, they will jump to the first page, change their info and then change their last name again.

Also, there's no way to delete an entry if someone doesn't "qualify" and there is no way to take $ away if an order was canceled.

So two problems...

  1. With the admin panel I'm guessing revolving around the listing? I haven't used it beyond 50 myself.

  2. Regarding deleting affiliate transactions: This has troubled me a bit. I don't know if I should include a DELETE option or an EXCLUDE option. I would like to go ahead and make a change that would allow a person to select which orders to pay for.

25 Oct 2010, 1:11 PM
#76
sephiroth avatar

sephiroth

New Zenner

Join Date:
Nov 2008
Posts:
24
Plugin Contributions:
0

Re: snap-affiliates?

Great mod! Thanks! :hug:

Are there any plans to add a kind of hit counter on the referreral account page to track the number of hits the referrer is sending?

Thanks again!

26 Oct 2010, 2:35 AM
#77
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: snap-affiliates?

sephiroth:

Great mod! Thanks! :hug:

Are there any plans to add a kind of hit counter on the referreral account page to track the number of hits the referrer is sending?

Thanks again!

I suppose analytics can be added to this mod though you can easily (kind of) configure Google Analytics to track this for you.

28 Oct 2010, 5:48 PM
#78
independenteasel avatar

independenteasel

New Zenner

Join Date:
Jun 2009
Posts:
33
Plugin Contributions:
0

Re: snap-affiliates?

Great Mod! Istructions a little vague but it is easy enough to figure out for someone who has experience applying mods!

Thank you! This was relatively effortless. :clap:

I added the affiliate mod to https://www.heartsathomestore.com!

30 Oct 2010, 8:06 AM
#79
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: snap-affiliates?

independenteasel:

Great Mod! Istructions a little vague but it is easy enough to figure out for someone who has experience applying mods!

Thank you! This was relatively effortless. :clap:

I added the affiliate mod to www.heartsathomestore.com!

Yeah those instructions are going to be updated soon... I was barely able to follow them when I first started.

6 Nov 2010, 12:05 AM
#80
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: snap-affiliates?

Turns out I forgot to include the instructions on how to do this... that or I forgot where did I include it.

Many people here, hopefully everyone unless you're local testing, changed their ZenCart Admin directory. Since there is no way to call the admin directory via a constant, when coding you have to make a little work around.

When a new affiliate submits their information, you will get a link to "log in to the affiliate control panel" that will take you to the /admin directory. Obviously, this is not correct.

To fix this, follow the following steps:

  • Open root/includes/modules/pages/referrer_signup/header_php.php where root is the root directory of the ZenCart install.
  • Go to line 62 and/or look for:
    HTTP_SERVER . DIR_WS_CATALOG . "admin/referrers.php?referrer=" . $_SESSION['customer_id']. "&mode=details";
  • In line change the admin/ to match the name of the directory where your admin is. For example, if your directory was mxyzptlk you would change the above to:
    HTTP_SERVER . DIR_WS_CATALOG . "mxyzptlk/referrers.php?referrer=" . $_SESSION['customer_id']. "&mode=details";

Reupload and from that point forward, affiliate apps will have the correct link.