Post by NoScope » Tue Feb 04, 2014 10:29 am

Hello everyone,

I am posting because I have 3 issues that I can't figure out with emails relating to affiliate account emails.

1) The links in the affiliate welcome email and the affiliate approval email are different. One works and the other does not. The welcome email says...
Thank you for joining the NoScope Glasses Store Affiliate Program!

Your account must be approved before you can login. Once approved you can log in by using your email address and password by visiting our website or at the following URL:
https://www.noscopeglasses.com/demon-gl ... iate/login
This links works fine, it brings you to the affiliate log in page. However, the link in the activatiom email below does NOT work (it brings you to the home page)
Welcome and thank you for registering at NoScope Glasses Store!

Your account has now been created and you can log in by using your email address and password by visiting our website or at the following URL:
https://www.noscopeglasses.com/index.ph ... iate/login
The code for my /admin/language/english/mail/affiliate.php is as follows:

Code: Select all

<?php
/*
* @package		MijoShop
* @copyright	2009-2013 Mijosoft LLC, mijosoft.com
* @license		GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @license		GNU/GPL based on AceShop www.joomace.net
*/

// No Permission
defined('_JEXEC') or die('Restricted access');


// Text

$_['text_approve_subject']      = '%s - Your Affiliate Account has been activated!';

$_['text_approve_welcome']      = 'Welcome and thank you for registering at %s!';

$_['text_approve_login']        = 'Your account has now been created and you can log in by using your email address and password by visiting our website or at the following URL:';

$_['text_approve_services']     = 'Upon logging in, you will be able to generate tracking codes, track commission payments and edit your account information.';

$_['text_approve_thanks']       = 'Thanks,';

$_['text_transaction_subject']  = '%s - Affiliate Commission';

$_['text_transaction_received'] = 'You have received %s commission!';

$_['text_transaction_total']    = 'Your total amount of commission is now %s.';

?>

What should I change to get a properly working link?

2) my /admin/language/english/mail/affiliate.php file does not contain the text for the affiliate program sign up email. Where is the code for that?

3) The activation email for affiliates does not give them their affiliate link to the site. I only have one product on the site, and I want them to get an email automatically when activating telling them "Use this link ..." so they know how to start making money. Is this possible?

Thank you in advance for all of the help I may receive. Thanks!

New member

Posts

Joined
Tue Dec 31, 2013 11:33 am

Post by ocmta » Tue Feb 04, 2014 12:39 pm

  1. In /admin/model/sale/affiliate.php, find:

    Code: Select all

    $message .= HTTP_CATALOG . 'index.php?route=affiliate/login' . "\n\n";
    and replace with:

    Code: Select all

    $message .= HTTP_CATALOG . 'demon-glasses/affiliate/login' . "\n\n";
  2. /catalog/language/english/mail/affiliate.php
  3. In /admin/model/sale/affiliate.php, find:

    Code: Select all

    $message .= $this->language->get('text_approve_services') . "\n\n";
    and after that line, add the folowing new line:

    Code: Select all

    $message .= 'Use this link: ' . HTTP_CATALOG . 'demon-glasses/?tracking=' . $affiliate_info['code'] . "\n\n";
    Edit 'Use this link: ' and put actual text you want to appear there before the link.

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by NoScope » Tue Feb 04, 2014 1:11 pm

WOW! Thank you so much for your quick, clear, and detailed reply. Every single thing you said worked perfectly, thank you so much! Could you possibly help me with a few other affiliate issues as well? You seem to be an expert on the topic :)

4) On the affiliate login page, it says,
For more information, visit our FAQ page or see our Affiliate terms & conditions.
However, the FAQ is not linked to any page and neither is the Affiliate terms and conditions, they are just plain text. How can I hyperlink them to the appropriate pages?

5) How can I remove payment options of cheque and bank transfer and only keep PayPal?

6) How can I remove Tax ID field under payment information?

7) The website does not email me when a new user registers for an account waiting my approval. How can I get it to email me saying that there is an account pending?

Thank you SO MUCH you are a life saver!

New member

Posts

Joined
Tue Dec 31, 2013 11:33 am

Post by ocmta » Tue Feb 04, 2014 1:36 pm

  • 4. This is in /catalog/language/english/affiliate/login.php, look for $_['text_description'] . I'd suggest you just hardcode links there, e.g. <a href="https://www.noscopeglasses.com/faq">FAQ</a>
  • 5. In /catalog view/theme/<default_or_your_theme_name>/template/affiliate/register.php, find:

    Code: Select all

              <tr>
                <td><?php echo $entry_payment; ?></td>
                <td><?php if ($payment == 'cheque') { ?>
                  <input type="radio" name="payment" value="cheque" id="cheque" checked="checked" />
                  <?php } else { ?>
                  <input type="radio" name="payment" value="cheque" id="cheque" />
                  <?php } ?>
                  <label for="cheque"><?php echo $text_cheque; ?></label>
                  <?php if ($payment == 'paypal') { ?>
                  <input type="radio" name="payment" value="paypal" id="paypal" checked="checked" />
                  <?php } else { ?>
                  <input type="radio" name="payment" value="paypal" id="paypal" />
                  <?php } ?>
                  <label for="paypal"><?php echo $text_paypal; ?></label>
                  <?php if ($payment == 'bank') { ?>
                  <input type="radio" name="payment" value="bank" id="bank" checked="checked" />
                  <?php } else { ?>
                  <input type="radio" name="payment" value="bank" id="bank" />
                  <?php } ?>
                  <label for="bank"><?php echo $text_bank; ?></label></td>
              </tr>
    
    and replace with:

    Code: Select all

              <tr>
                <td><?php echo $entry_payment; ?></td>
                <td>
                  <input type="radio" name="payment" value="paypal" id="paypal" checked="checked" />
                  <label for="paypal"><?php echo $text_paypal; ?></label>
                 </td>
              </tr>
    
  • 6. Same file, delete:

    Code: Select all

              <tr>
                <td><?php echo $entry_tax; ?></td>
                <td><input type="text" name="tax" value="<?php echo $tax; ?>" /></td>
              </tr>
    
  • 7. The easiest way would be - In /catalog/model/affiliate/affiliate.php find :

    Code: Select all

    public function addAffiliate($data) 
    and after that add new line:

    Code: Select all

    mail('youradminemail@domain.com', 'New affiliate', 'New affiliate account is pending');
    Replace youradminemail@domain.com with your actual email address.

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by NoScope » Tue Feb 04, 2014 2:59 pm

I'm trying all of these steps right now, you are amazing, thank you so much for all of your help. I will let you know if I have any questions about your latest response, but they look super clear and detailed. I seriously really appreciate all of your help with these affiliate fixes, and your super quick responses. You rock!

New member

Posts

Joined
Tue Dec 31, 2013 11:33 am

Post by NoScope » Tue Feb 04, 2014 6:45 pm

Hey,

So I couldn't get 4 to work and 7 had a strange issue and sort of worked

4) I updated the file and now the code is

Code: Select all

$_['text_description']              = '<p>%s affiliate program is free and enables members to earn revenue by placing a link or links on their web site which advertises %s or specific products on it. Any sales made to customers who have clicked on those links will earn the affiliate commission. The standard commission rate is currently %s.</p><p>Payment will be made to the affiliate when the balance reaches $10. Cash outs before $10 are available upon request.</p><p>For more information, feel free to <a href="https://www.noscopeglasses.com/contact">contact us</a> </p>';
But after refreshing the page and hitting f5 and clearing cache and site cache, the page still shows the original old description. Nothing seems to change. What am I doing wrong?

7) I added the code, but the email I receive is from a strange email address from my hosting company not from my default and it is marked as spam. How do I get it to send from the email address that all the other affiliate emails get sent from?

Awaiting your reply, thanks for your help!

New member

Posts

Joined
Tue Dec 31, 2013 11:33 am

Post by ocmta » Tue Feb 04, 2014 7:50 pm

4 - i don't know, it must work. I see you use mijoshop, i'm not that familiar with it, maybe it's some mijoshop issue, maybe it's caching files somewhere or something. Make sure you actually save the file etc.

For 7 try replacing previous code with this (again, use your actual email):

Code: Select all

mail('youradminemail@domain.com', 'New affiliate', 'New affiliate account is pending', 'From: ' . $this->config->get('config_email'));

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by NoScope » Tue Feb 04, 2014 8:18 pm

4) OK I'm not sure either, thanks for the info I will check and see if I can find any other cache to clear

7) That works, thank you!

You are awesome :)

New member

Posts

Joined
Tue Dec 31, 2013 11:33 am

Post by NoScope » Sat Feb 08, 2014 4:48 pm

Hey so I found out where the file is that needed to be edited for #4, /public_html/language/en-GB/en-GB.com_mijoshop.ini

I have a few more questions if you don't mind :)

8-I have had several customers tell me they can't change their affiliate code. They said that when they try, it just stays the same when the page refreshes. I can change it on the back end no problem though. Do you know of a way to fix this?

9) In the back end, I can sort by name, date added, etc for affiliates, but I can't sort by the balance in their affiliate account. Is there a way to sort by this?

10) Is there a way to add some sort of leader board for top earners of the affiliate program?

Awaiting your reply, thank you so much for your continued help.

PS - Is there a way I can donate to you for your help?

New member

Posts

Joined
Tue Dec 31, 2013 11:33 am

Post by ocmta » Sat Feb 08, 2014 5:47 pm

I don't know about mijoshop, but regular openCart doesn't allow affiliates to change their tracking code, only admin can do that.

Also, in regular openCart you can't sort by balance.

Not sure what exactly do you mean by leader board of top earners, but anyway i don't think it's possible without some additional custom programming. Those two functions above are also possible with custom programming, but that's way too compilcated for the forum.

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by atomikarts » Sat Feb 08, 2014 7:13 pm

ocmta wrote:
  • 5. In /catalog view/theme/<default_or_your_theme_name>/template/affiliate/register.php, find:

    Code: Select all

              <tr>
                <td><?php echo $entry_payment; ?></td>
                <td><?php if ($payment == 'cheque') { ?>
                  <input type="radio" name="payment" value="cheque" id="cheque" checked="checked" />
                  <?php } else { ?>
                  <input type="radio" name="payment" value="cheque" id="cheque" />
                  <?php } ?>
                  <label for="cheque"><?php echo $text_cheque; ?></label>
                  <?php if ($payment == 'paypal') { ?>
                  <input type="radio" name="payment" value="paypal" id="paypal" checked="checked" />
                  <?php } else { ?>
                  <input type="radio" name="payment" value="paypal" id="paypal" />
                  <?php } ?>
                  <label for="paypal"><?php echo $text_paypal; ?></label>
                  <?php if ($payment == 'bank') { ?>
                  <input type="radio" name="payment" value="bank" id="bank" checked="checked" />
                  <?php } else { ?>
                  <input type="radio" name="payment" value="bank" id="bank" />
                  <?php } ?>
                  <label for="bank"><?php echo $text_bank; ?></label></td>
              </tr>
    
    and replace with:

    Code: Select all

              <tr>
                <td><?php echo $entry_payment; ?></td>
                <td>
                  <input type="radio" name="payment" value="paypal" id="paypal" checked="checked" />
                  <label for="paypal"><?php echo $text_paypal; ?></label>
                 </td>
              </tr>
    
Hi ocmta,

I was hoping to change the options too, though I don't need cheque as an option, what's edits should I do?
Lastly, I'd like to change wording in the emails that customers and affiliates receive (attached email subjects), where do I find these files?


Thanks!

Attachments

emaills.JPG

emaills.JPG (17.88 KiB) Viewed 8595 times


Newbie

Posts

Joined
Sun Oct 28, 2012 7:22 pm

Post by ocmta » Sat Feb 08, 2014 8:38 pm

I'm not sure what options are you talking about. Email messages are normally in various files under admin/language/english/mail/ and catalog/language/english/mail/ .
Last edited by ocmta on Sat Feb 08, 2014 9:06 pm, edited 1 time in total.

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by atomikarts » Sat Feb 08, 2014 8:53 pm

The options are what noscope mentioned earlier in this thread:
5) How can I remove payment options of cheque and bank transfer and only keep PayPal?

I just need paypal and bank transfer, not cheque :)

Thanks for email locations, will have a look!

Newbie

Posts

Joined
Sun Oct 28, 2012 7:22 pm

Post by ocmta » Sat Feb 08, 2014 9:05 pm

Find the same thing and replace with:

Code: Select all

          <tr>
            <td><?php echo $entry_payment; ?></td>
            <td>
              <?php if ($payment != 'bank') { ?>
              <input type="radio" name="payment" value="paypal" id="paypal" checked="checked" />
              <?php } else { ?>
              <input type="radio" name="payment" value="paypal" id="paypal" />
              <?php } ?>
              <label for="paypal"><?php echo $text_paypal; ?></label>
              <?php if ($payment == 'bank') { ?>
              <input type="radio" name="payment" value="bank" id="bank" checked="checked" />
              <?php } else { ?>
              <input type="radio" name="payment" value="bank" id="bank" />
              <?php } ?>
              <label for="bank"><?php echo $text_bank; ?></label></td>
          </tr>

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by atomikarts » Sat Feb 08, 2014 10:24 pm

Thanks ocmta, I've applied your code but the cheque radio button and textfield still show, if there something else I need to update?
Also in the directory you mention, there's only .tpl files, no .php files, or am I looking at the wrong place?

/catalog view/theme/<default_or_your_theme_name>/template/affiliate/register.php .. all I see is .tpl files in this dir.

Cheers,
Adam

Newbie

Posts

Joined
Sun Oct 28, 2012 7:22 pm

Post by ocmta » Sat Feb 08, 2014 10:35 pm

Yes, .tpl, not .php, sorry. Don't know how you applied it, but if you replace everything correctly in that file (register.tpl, not .php), cheque shouldn't be there anymore.

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by atomikarts » Sat Feb 08, 2014 11:37 pm

Yeah I replaced it as you described and I still get cheque radio button and text field. :(
On second thoughts, can Tax ID: field also be removed, as it isn't needed?

Cheers

Attachments

aff.JPG

cheque still showing - aff.JPG (26.74 KiB) Viewed 8563 times


Newbie

Posts

Joined
Sun Oct 28, 2012 7:22 pm

Post by ocmta » Sat Feb 08, 2014 11:43 pm

You didn't mention that you use Account Combine extension. You should make the same replacement in vqmod/xml/acc_combine.xml . Also regarding Tax ID see answer 6 to NoScope questions above, also make replacement in vqmod/xml/acc_combine.xml instead of register.tpl .

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by atomikarts » Mon Feb 10, 2014 9:29 am

Hi ocmta

Thanks for that, I replied the other day but comment is gone, tax ID issue and cheque selection all fixed now :)
Cheers!

Newbie

Posts

Joined
Sun Oct 28, 2012 7:22 pm

Post by NoScope » Tue Feb 11, 2014 5:23 pm

Hey,

So I really really need to sort by balance, is there a VQMod for this, or something that you could create for me for a price? Please advise, thank you so much.

New member

Posts

Joined
Tue Dec 31, 2013 11:33 am
Who is online

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