The key is set to CNWR_
Printable View
It looks like you've got one of the SEO plugins installed as well. In a "standard" Zen Cart installation, the generated link should be of the form
Looking through the posts in the support thread associated with this plugin's parent, it appears that there are known issues using the affiliates plugins with some (or all?) of the SEO plugins. You might ask in the support forum associated with the SEO plugin that you're using how to include an additional $_GET variable in the URL that they're generating.Code:<a href="http://www.mysite.com/index.php?main_page=index&referrer=CNWR_21362757845">Gifts For All Occasions At GiftaDoodle.com</a>
All users of this plugin, please note that (in the US, anyway) there are tax implications associated with creating an affiliate program for your website. I am neither a lawyer nor an accountant, but you should perform your own due diligence by googling affiliate marketing 1099.
v2.0.0 of the plugin is now available in the Zen Cart Plugins area: http://www.zen-cart.com/downloads.php?do=file&id=1635
I'm preparing (and will submit later today) v2.1.0 with the following changes:
- BUGFIX: Don't display "Details" button if there are no affiliates (yet).
- BUGFIX: Payment email to affiliate always shows $0.00.
- BUGFIX: Approval and payment emails show FILENAME_REFERRER_MAIN for referrer_main page link.
- BUGFIX: Payment email shows referrer_main as link for "Contact Us".
- BUGFIX: Pagination on Customers->Referrers was broken. Also, moved maximum number of affiliates to display to a configuration setting.
- Added a configuration switch to control whether or not a customer receives a commission on purchases made with their affiliate key in their account.
- Added a configuration setting to identify any Orders Status codes that should not receive a commission.
- BUGFIX: Disable the "Pay" button if the affiliate's current commission value is 0.
- "Prettied-up" the account-activation and commission-payment HTML email text.
- Added validation for the commission-rate entry in Customers->Referrers.
- BUGFIX: Missed a couple of admin-side language values (details buttons values).
- If the affiliate's account is not approved, the "Ban", "Pay" and "Update" buttons are disabled.
- Added a section to the readme identifying how to upgrade from previous versions of the plugin.
In addition, I've updated the admin-side auto-install to be version-cognizant so that the configuration additions made for v2.1.0 won't disrupt/change any of your existing configuration settings, they're just added to the database!
Ceon's SEO Plugin is installed.
In the customers account when navigating to 'Marketing tools' The Site Link Generator produces the following code:
<a href="http://www.mysite.com/?zenid=a9oo496a04v6s5ujt7ts7rgi44&referrer=CNEY_7013629850121">Gifts</a>
This code does link to the Home Page.
I understand the standard Zen Cart configuration should produce the following:
<a href="http://www.mysite.com/index.php?main_page=index&referrer=CNEY_7013629850121">Gifts</a>
Is there a problem with the generated code?
The Deep Link Generator Transform Generator Produces the following Code:
http://www.mysite.com/&referrer=CNEY_7013629850121
This code is wrong and links to "Page not found"
Mike, try replacing your copy of /includes/modules/pages/referrer_tools/jscript_tools.php with:
If the link contains a '?', the referrer variable will be added with an & otherwise it'll be added with a ?.Code:<script type="text/javascript"><!--
var referrerPrefix = "<?php echo SNAP_KEY_PREFIX; ?>";
var referrerKey = "<?php echo $referrer->fields['referrer_key']; ?>";
var link_hint = "<?php echo TEXT_PASTE_LINK_HERE; ?>";
function transform() {
var textArea = document.getElementById("referrerLinkDump");
var linkPrefix = '&';
if( textArea ) {
if( textArea.value.indexOf( "&referrer=" + referrerPrefix ) == -1 && textArea.value != link_hint ) {
if (textArea.value.indexOf( '?' ) == -1) {
linkPrefix = '?';
}
textArea.value += linkPrefix + "referrer=" + referrerKey;
}
}
}
function removeTip(textArea) {
if( textArea.value == link_hint ) {
textArea.style.color = "black";
textArea.value = "";
}
}
function addTipIfBlank(textArea) {
if( textArea.value == "" ) {
textArea.value = link_hint;
textArea.style.color = "grey";
}
}
//--></script>
See if that helps.
Thanks for letting me know, Mike. Since that change is "global", I'll include it in a future update.
v2.1.0 is now available in the Zen Cart Plugins ...