Has anyone been able to make Snap Affiliates play nice with the SSU (Simple SEO Urls) module? The problem i'm having is with the referral links and the fact that they need to be re-structured to work through SSU's mod-rewrite of URLs.
Has anyone been able to make Snap Affiliates play nice with the SSU (Simple SEO Urls) module? The problem i'm having is with the referral links and the fact that they need to be re-structured to work through SSU's mod-rewrite of URLs.
Yeah, you would need to change the URL for using SEO
instead of ABC.com/&referrer=CNWR_11280387020
The correct one would be ABC.com?referrer=CNWR_11280387020
I am experiencing the same problem as buildingblocks:
Once I input an address to submit I get this page....
1054 Unknown column 'REFERRER_DEFAULT_COMMISSION' in 'field list'
in:
[insert into referrers (referrer_customers_id, referrer_key, referrer_homepage, referrer_approved, referrer_banned, referrer_commission) values(24,"REFERRER_KEY_PREFIX241280770555","www.testaffiliates.com", 0, 0, REFERRER_DEFAULT_COMMISSION)]
So, where can I go from here. I am using 1.3.8a and have used the sql file accordingly by copy/paste/send and have installed everything properly to my knowledge.
I am stuck at this point. I'm not seeing where buildingblocks fixed this.
Thank you.
To expand upon the above in my last post. I would like some clarification on the "Edit the includes/snapconfigure.php file to reflect your site preferences."
Maybe that's it.
Thanks again
Fix to the above...
OK - So it seems to be version 1.0.2 that you want found on the creators website - I had 1.0. The file that I had to swap out was \includes\modules\pages\referrer_signup\header.php
That seemed to get rid of that fault when signing up.
This mod works great!
I am trying to add customer name to the referrer page in admin when an order is displayed for that referrer's commission. I have the layout in the table correctly, but need better code to actually display the customer's name in the currently blank field. Here is my current code:
This is what I added to the below, what I am missing here?
printf("<tr>\n");
printf("<td class='%s'>\n", $toggle ? "historyA" : "historyB" );
printf("%s\n", $order['customer_name']);
foreach( $referrers[$selected]['orders'] as $order ) {
$total = floatval( $order['order_total'] ) - floatval( $order['value'] );
$commission = floatval( $order['commission_rate'] );
if( $total < 0 ) {
$total = 0;
}
printf("<tr>\n");
printf("<td class='%s'>\n", $toggle ? "historyA" : "historyB" );
printf("%s\n", $order['customer_name']);
printf("</td>\n");
printf("<td class='%s'>\n", $toggle ? "historyA" : "historyB" );
printf("%s\n", $order['date_purchased']);
printf("</td>\n");
Thanks
I'm running into the same problem here...
I edited the functions_email.php file to echo the filename being used for the template...
The logic is obviously correct but here's the weird thing:
C:/Program Files/Abyss Web Server/htdocs/zencart/email/email_template_referrer_banned.html
C:/Program Files/Abyss Web Server/htdocs/zencart/email/email_template_default.html
It's outputting BOTH the default AND the name of the file that I want to use. Obviously, something is wrong here...
And after some time looking into this... I figured it out.
Evidently, if you are using Plain Text.. You'll get this looking the right way... however, if you're HTML... You're screwed.
So here are the edits you'll need to make, some might be redundant but feel free to let me know (so that I can change mine as well)
You'll need to make these changes to admin/referrers.php
- Look for
PHP Code:
function send_notification_email($referrer, $subject, $text) {
- Change this to
PHP Code:
function send_notification_email($referrer, $subject, $text, $block, $module_used) {
- Look for
PHP Code:
zen_mail($customer['customers_firstname'] . " " . $customer['customers_lastname'],
- Now, this one is tricky. In this code block you need to make some changes here... after $admin['admin_email'] add and a comma (,) and then this
PHP Code:
$block, $module_used
- Now when you're ready... find
PHP Code:
"Your " . TITLE . " referrer account has been approved!",
$main_body
- Then after $main_body add a comma, and then add:
PHP Code:
$content_map,
"referrer_approved"
- Now find
PHP Code:
"Your " . TITLE . " referrer account has been suspended.",
$main_body
- After $main_body, add a comma then add
PHP Code:
$content_map,
"referrer_banned"
- Lastly find,
PHP Code:
"Your " . TITLE . " commission payment has been made.",
$main_body
- Then add a comma after $main_body, then add
PHP Code:
$content_map,
"referrer_paid"
And After this you should have emails being sent to people that aren't using EMAIL_TEMPLATE_DEFAULT.PHP but the right one.
Something to work on:
- Ability to edit details in ACP.
- Ability to deny applications in ACP.
- Ability to edit details on the customer side. (Some might change websites.)
- Ability to add "Where to send my check?"
Thanks for working on the email issues retched and please keep posting your fixes!!!
The man who smiles when things go wrong has thought of someone to blame it on. - Robert Bloch
Bookmarks