Loving the update Lat9 :hug:
Printable View
Loving the update Lat9 :hug:
Just a thought to add to the 'wish'/update list;
Admin tracking of the banner images that are selected by affiliates, which banner is more popular/best return of sales.
Thanks :hug:
Having an issue with secure site and images. For some reason the tools page with banners on it is throwing up an non-secure warning. I couldnt find where to change it in the files, but shouldnt it be setup with a relative link so it automatically changes to secure when pple login.
Right now its throwing people the warning message that there are non-secure items on the page.(from the banners)
Any work around for this?
Latest version downloaded yesterday, also running ultimate seo. Tried it with seo on and off, same result.
Everything else works great. Pretty easy to install also, once you get past all the edits for a shop with lots of customized files.
Thanks in advance
Bill H.
www.bug-water.com
@BugWater, I believe that this will fix the issue (I don't currently have an HTTPS test site with the plugin installed). Make the following modifications to the get_referrer_image function in /includes/templates/YOUR_TEMPLATE/tpl_referrer_tools_default.php (starts on line 23):
Please let me know if this corrects the issue; I've got another correction in the queue ...Code:function get_referrer_image($width, $height, $filename) {
global $request_type; /*v2.5.1a*/
$image_html = '';
$alt = TEXT_IMAGE_ALT_TEXT;
$filename = (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG . $filename; /*v2.3.0a,v2.5.1c*/
$image_html .= '<div class="imagewrap">';
$image_html .= '<div class="imagetitle">' . sprintf(TEXT_X_BY_Y_PIXELS, $width, $height) . '</div>';
$image_html .= "<img class=\"referrer_image\" src=\"$filename\" width=\"$width\" height=\"$height\" alt=\"$alt\" /><br />";
$image_html .= '<textarea rows="3" cols="1"><a href="' . get_referrer_link(FILENAME_DEFAULT) . "\"><img src=\"$filename\" width=\"$width\" height=\"$height\" alt=\"$alt\" /></a></textarea><br />";
$image_html .= '</div>';
return $image_html;
}
It most certainly did, that was awesomely fast support.
Thanks
Sweet, im off to email my freak out pple that sweat the little things in life.
(fricken browser popups created for those that dont know better create more work then they are worth)
No problem; thanks for the bug report (and letting me know that the fix worked)!
Now thats its all working smooth I got a few sites to add it too. So im just going to make both variations in the file and just comment out the one not needed.
Maybe i can just put it in an includes file, and add it into the folder structure. Then I can change it anytime needed. Hmmm.
Thanks Again
Here's the update I was alluding to for /includes/modules/pages/referrer_main/header_php.php. The issue was that if you have no orders-status exclusions that the referrers' activity details won't display:
Code:<?php
// +----------------------------------------------------------------------+
// |Snap Affiliates for Zen Cart |
// +----------------------------------------------------------------------+
// | Copyright (c) 2013, Vinos de Frutas Tropicales (lat9) for ZC 1.5.0+ |
// | |
// | Original: Copyright (c) 2009 Michael Burke |
// | http://www.filterswept.com |
// | |
// | This source file is subject to version 2.0 of the GPL license. |
// +----------------------------------------------------------------------+
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
$breadcrumb->add(NAVBAR_TITLE);
$today = getdate();
$referrer = null;
$submitted = false;
$approved = false;
$banned = false;
$is_referrer = false;
$is_logged_in = isset ($_SESSION['customer_id']);
$total_total = 0;
$total_commission = 0;
$unpaid_total = 0;
$unpaid_commission = 0;
$yearly_total = 0;
$yearly_commission = 0;
$last_payout = 0;
$next_payout = 0;
$activity_begin = mktime(0, 0, 0, $today['mon'], 1, $today['year']);
$activity_end = mktime(23, 59, 59, $activity_begin['mon'] + 1, 0, $today['year']);
$activity_total = 0;
$activity_commission = 0;
$activity = array();
if (isset($_GET['start'])) {
$activity_begin = intval ($_GET['start']);
}
if( $activity_begin > time() ) {
$activity_begin = time();
}
if (isset ($_GET['end'])) {
$activity_end = intval( $_GET['end'] );
}
if ($activity_begin > $activity_end) {
$tempDate = getdate ($activity_begin);
$activity_end = mktime (23, 59, 59, $tempDate['mon']+1, 0, $tempDate['year']);
}
if (!$is_logged_in) {
zen_redirect(zen_href_link(FILENAME_REFERRER_SIGNUP, '', "SSL"));
} else {
$query = "SELECT * FROM ". TABLE_REFERRERS ." WHERE referrer_customers_id = " . (int)$_SESSION['customer_id'];
$referrer = $db->Execute($query);
if (!is_object($referrer) || $referrer->EOF ) {
zen_redirect(zen_href_link(FILENAME_REFERRER_SIGNUP, '', "SSL"));
} else {
$submitted = true;
$approved = (bool)$referrer->fields['referrer_approved'];
$banned = (bool)$referrer->fields['referrer_banned'];
if ($approved) {
if (!defined('SNAP_ORDER_STATUS_EXCLUSIONS')) define('SNAP_ORDER_STATUS_EXCLUSIONS', ''); /*v2.1.0a*/
if (!defined('SNAP_ORDER_TOTALS_EXCLUSIONS')) define('SNAP_ORDER_TOTALS_EXCLUSIONS', 'ot_tax,ot_shipping');
//-bof-v2.1.0c (changed $exclude_array to $totals_exclude_array
$totals_exclude_array = explode(',', SNAP_ORDER_TOTALS_EXCLUSIONS);
for ($i = 0, $totals_exclude_clause = '', $n = count($totals_exclude_array); $i < $n; $i++) {
if ($i != 0) {
$totals_exclude_clause .= ' OR ';
}
$totals_exclude_clause .= ("t.class = '" . $totals_exclude_array[$i] . "'");
}
if ($totals_exclude_clause != '') {
$totals_exclude_clause = " AND ( $totals_exclude_clause ) ";
}
//-eof-v2.1.0c
$year_start = mktime(0,0,0, 1, 1, $today['year']);
//-bof-v2.1.0a: Don't show commission for orders status values in the "exclude list".
$status_exclude_array = explode(',', SNAP_ORDER_STATUS_EXCLUSIONS);
//-eof-v2.1.0a
$no_status_exclusions = (sizeof($status_exclude_array) == 1 && $status_exclude_array[0] == '') ? true : false; /*v2.5.1a*/
$query = "SELECT o.orders_id, o.date_purchased, o.order_total, c.commission_paid, c.commission_rate, o.orders_status
FROM ". TABLE_ORDERS ." o, " . TABLE_COMMISSION . " c
WHERE c.commission_referrer_key = '" . $referrer->fields['referrer_key'] . "'
AND o.orders_id = c.commission_orders_id"; /*v2.1.0c*/
$orders = $db->Execute($query);
while (!$orders->EOF) {
$commission = floatval($orders->fields['commission_rate']);
$purchase_date = strtotime($orders->fields['date_purchased']);
$current_date = $orders->fields['commission_paid'];
$query = "SELECT t.value
FROM " . TABLE_ORDERS ." o, ". TABLE_ORDERS_TOTAL ." t
WHERE o.orders_id = " . $orders->fields['orders_id'] . "
AND o.orders_id = t.orders_id" . $totals_exclude_clause; /*v2.1.0c*/
$totals = $db->Execute($query);
$current_exclusion = 0;
while (!$totals->EOF) {
$current_exclusion += floatval($totals->fields['value']);
$totals->MoveNext();
}
$current_amount = floatval($orders->fields['order_total']) - $current_exclusion;
if ($current_amount < 0) {
$current_amount = 0;
}
if ($current_date != "0000-00-00 00:00:00") {
$current_date = strtotime($current_date);
} else {
$current_date = 0;
}
if ( $no_status_exclusions || !($current_date == 0 && in_array($orders->fields['orders_status'], $status_exclude_array)) ) { /*v2.5.0a,v2.5.1c*/
$total_total += $current_amount;
$total_commission += $commission * $current_amount;
if( $purchase_date > $year_start ) {
$yearly_total += $current_amount;
$yearly_commission += $commission * $current_amount;
}
if ($current_date === 0) {
$unpaid_total += $current_amount;
$unpaid_commission += $commission * $current_amount;
}
if ($current_date > $last_payout) {
$last_payout = $current_date;
}
if ($activity_begin < $current_date && $current_date < $activity_end) { /*v2.5.0c*/
$activity_total += $current_amount;
$activity_commission += $commission * $current_amount;
array_push( $activity, array('amount' => $current_amount, 'date' => $purchase_date, 'paid' => $current_date, 'commission' => $commission) );
}
} /*v2.5.0a*/
$orders->MoveNext();
}
}
}
}
v2.5.1 has been submitted to the Plugins area:
- BUGFIX: Introduced in v2.5.0, no order details were displayed on referrers_main if the configuration contained no orders-status exclusions.
- Updated language file for referrers_main page to make it more obvious that the activity report is based on commission payments.
- BUGFIX: Banner images displayed using HTTP_SERVER on SSL pages, resulting in mixed-content warnings from the browser.
v2.5.1 is now available in the Plugins ...
I've read though the whole thread so far and I'm looking forward to adding this to my site. Since our site is being setup so that organizations (booster clubs, youth groups, churches, etx) can sell our products as a fundraiser is there a way to "force" someone shopping on our site to use an affiliate? We do not want to sell the products ourselves but only through the groups that are doing business with us.
Sorry, that could have been a bit clearer on my part. It is products that we're selling but since the point of our business is to help organizations raise money we don't want to be in "competition" with them on the sale of our products. Our business is not selling coffee, our business is helping THEM to sell coffee as a fundraiser. For example, our first client is a High School Football team booster club. We want people to come to our site not to buy coffee from us, but to buy coffee from them and we're just the one's handling the transaction. We want to make sure that if someone just stumbles across our site or types in the root site name without using the affiliate link that they have to select that High School Booster club to purchase from. Of course our goal is to have many many of these type booster clubs or other groups signed up with us. Then, if someone comes to our site directly they'll have to "choose" their affiliate. Hopefully that makes things a little clearer than mud!
@jcbazemore, it'll take some custom coding but it should be doable. When a customer comes to your site via an affiliate, their initial link has the affiliate's "key" as part of the link variables. That "key" is stored in a cookie in the client's browser, so it's detectable -- in fact, that's what /includes/init_includes/init_snap.php does, looking for a cookie with your store's defined cookie-prefix and setting a session variable if the cookie's present.
Essentially, my interpretation of what you want is that the store operates like a "normal" Zen Cart if the customer has an affiliate cookie loaded and operates like a showcase with prices otherwise (see the setting Configuration->My Store->Store Status). If you use your admin's Tools->Developers Toolkit and search for STORE_STATUS in all catalog PHP files, you'll see the list (not too many) of files that use and process based on that variable. You'll need to make modifications to (or around) each of those files, replacing the STORE_STATUS processing based on the presence/absence of the affiliate cookie.
My guess at an initial look is that you'd want to go down the path of setting your database's "Store Status" to "Showcase with Prices" and make changes to the necessary core files to switch back to "normal" if the cookie is present.
Hello Everyone,
My customers cannot open the affiliate signup page and it is not showing in their accounts also.
I have install all the files as mentioned in the readme file.
I have tried it by using this sample mentioned http://www.mysite.com/index.php?main...r_signup&terms
My website is www.247donny.com
Can someone help me with this please?
Thanks.
@lat9 I'm glad to hear it's doable and I'm sure I'll be bothering you more for details as I get stuck. Until I've got it worked out my workaround is to duplicate each item for each client adding "-client id" to the end of the product Model Number. Luckily we just have the one client so far and only four items. It won't be trackable via their affiliate page, but they'll at least get credit from us when someone buys "Irish Crème-fchstdc" vs "Irish Crème-fchscheer"
Hey Lat9 I just found out last night that instead of four products we're going to have about 15 products at launch. This being said I have a feature request for future versions (unless there's something I can modify to make this happen now.) Is it possible to have the referrer code listed somewhere on the invoice? We offer custom labeling for our coffee's and the label is determined by which organization the order is placed for. I know I can tell that by clicking on the referrer link next to the order in the Admin section, but it would be easier if we could see it on the invoices that are printed out and not be tied to a computer when slapping on labels!
Here's a snippet of code that determines whether an order included a commission and returns the referrer's code (or false if no code was found):
and then use that function in /YOUR_ADMIN/invoice.php (for v1.5.1 around line 132), changing:Code:function get_referrer_key($oID) {
// -----
// Check to see if the specified order has an associated referrer commission ...
//
$sa_sql = 'SELECT r.referrer_key
FROM ' . TABLE_REFERRERS . ' r, ' . TABLE_COMMISSION . ' rc
WHERE rc.commission_orders_id = ' . (int)$oID . '
AND rc.commission_referrer_key = r.referrer_key;
$sa_info = $db->Execute($sa_sql);
return ($sa_info->EOF) ? false : $sa_info->fields['referrer_key'];
}
toCode:<tr>
<td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><b><?php echo ENTRY_ORDER_ID . $oID; ?></b></td>
</tr>
<tr>
<td><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><strong><?php echo ENTRY_DATE_PURCHASED; ?></strong></td>
<td class="main"><?php echo zen_date_long($order->info['date_purchased']); ?></td>
</tr>
<tr>
<td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td>
<td class="main"><?php echo $order->info['payment_method']; ?></td>
</tr>
You can place the function definition at the top of invoice.php, just after the "require" statement for application_top.php.Code:<tr>
<td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><b><?php echo ENTRY_ORDER_ID . $oID; ?></b></td>
</tr>
<tr>
<td><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><strong><?php echo ENTRY_DATE_PURCHASED; ?></strong></td>
<td class="main"><?php echo zen_date_long($order->info['date_purchased']); ?></td>
</tr>
<tr>
<td class="main"><b><?php echo ENTRY_PAYMENT_METHOD; ?></b></td>
<td class="main"><?php echo $order->info['payment_method']; ?></td>
</tr>
<?php
if (get_referrer_key($oID) !== false) {
?>
<tr>
<td class="main"><b>Affiliate Code:</b></td>
<td class="main"><?php echo get_referrer_key($oID); ?></td>
</tr>
<?php
}
?>
Hey lat9, I tried to implement the code change and I'm getting "Parse error: syntax error, unexpected T_STRING in /[site_folders]/public_html/YOUR_admin/invoice.php on line 27" when I try to open the Invoice. This is what I have on line 27: "return ($sa_info->EOF) ? false : $sa_info->fields['referrer_key'];" (minus the quotes of course.) In case it makes a difference, but I don't think it will, I did make a change to the various referrer_ files changing the verbiage of "Website" to "Organization." I did not change the actual code portions that referenced "website", just the HTML verbiage displayed on the page.
Sorry (I should have tested before I posted), try this for the function:
Code:function get_referrer_key($oID) {
global $db;
// -----
// Check to see if the specified order has an associated referrer commission ...
//
$sa_sql = 'SELECT r.referrer_key
FROM ' . TABLE_REFERRERS . ' r, ' . TABLE_COMMISSION . ' rc
WHERE rc.commission_orders_id = ' . (int)$oID . '
AND rc.commission_referrer_key = r.referrer_key;
$sa_info = $db->Execute($sa_sql);
return ($sa_info->EOF) ? false : $sa_info->fields['referrer_key'];
}
Thanks for your kind words, try this adding the stupid little quote at the end of the $sa_sql assignment (the global $db missing would have bit you later on!):Code:function get_referrer_key($oID) {
global $db;
// -----
// Check to see if the specified order has an associated referrer commission ...
//
$sa_sql = 'SELECT r.referrer_key
FROM ' . TABLE_REFERRERS . ' r, ' . TABLE_COMMISSION . ' rc
WHERE rc.commission_orders_id = ' . (int)$oID . '
AND rc.commission_referrer_key = r.referrer_key';
$sa_info = $db->Execute($sa_sql);
return ($sa_info->EOF) ? false : $sa_info->fields['referrer_key'];
}
For anyone reading this and contemplating something similar I realized that referrer_key listed on the invoice wasn't nearly as useful as referrer_homepage. I modified the function as follows to make that happen:Then later on when calling the function:Code:function get_referrer_homepage($oID) {
global $db;
// -----
// Check to see if the specified order has an associated referrer commission ...
//
$sa_sql = 'SELECT r.referrer_key, r.referrer_homepage
FROM ' . TABLE_REFERRERS . ' r, ' . TABLE_COMMISSION . ' rc
WHERE rc.commission_orders_id = ' . (int)$oID . '
AND rc.commission_referrer_key = r.referrer_key';
$sa_info = $db->Execute($sa_sql);
return ($sa_info->EOF) ? false : $sa_info->fields['referrer_homepage'];
Code:<?php
if (get_referrer_homepage($oID) !== false) {
?>
<tr>
<td class="main"><b>Affiliate Key:</b></td>
<td class="main"><?php echo get_referrer_homepage($oID); ?></td>
</tr>
<?php
}
?>
Nice one! Thanks for sharing.
After I asked you about adding the key I realized that a string of numbers doesn't easily help me determine which label to put on the bag like homepage would. Especially in my case where I've modified the homepage verbiage to be organization name instead of website. Thank you for all your work on this module. It's giving us exactly what we wanted so the groups we're working with can see the progress of their fundraising efforts throughout the year. Any chance you would like to work on a recurring billing module? I'd happily be your guinea pig for testing it out! That's the last piece we need to make this our ideal site for $$$$$ less than we anticipated.
I have installed Snap Affiliates v 251 to a 1.5.1 Zen Cart. However, the sign up option is not appearing on the create account page. I assume that is where I should see it, based on what I saw in the files uploaded... Did I miss a step in the install process? I uploaded all the files, and I configured things under Configuration > Affiliate Program. I can also see / edit the two new pages in the Define Pages Editor. Help? ~anne
As jcbazemore said, and straight from the plugin's readme.html (hint, hint):
This plugin enables your store to have an "Affiliate Program", where an authorized affiliate can receive a commission for any sales that they "drive" to your store. To become an authorized affiliate, the affiliate must create an account with your store and then submit to you (via the referrer_signup page) the website from which they intend to promote your store. You'll receive an email informing you of the signup and you can authorize the affiliate using an admin-level tool.
[QUOTE=lat9;1220838]As jcbazemore said, and straight from the plugin's readme.html (hint, hint):
Maybe that is clear to *you* that "the referrer_signup page" is on the customer's account page, but that is not clear in the wording as written in the readme file. Not only I but another developer (friend) looked at the readme to try to figure this out before I asked the question here. Thanks for the clarity in the first reply I got, I can see how it works now.
Hi All,
I'm a little lost on how to add banners... I uploaded an image named /728,337,jpg/ to images/referrers and I added it in the same format to admin/config/affiliate program/affiliate program images. I see no change in the referrers tools page and I have no idea what else I am supposed to be doing!
I am using Zen-Cart 1.5.1
Are there any instructions on how to use this mod anywhere to be found?
Thank you for any help.
If you entered /728,337,jpg/ in your admin configuration, then you'll create a file named ref.728.337.jpg and place it in /images/referrers. That's documented in the readme.html file that's present in the root directory of the plugin's distribution zip-file as well as the help-text in the admin associated with the field, which reads:
Identify the images that your affiliates can use in their back-links. Each file must be present in your store's /images/referrers directory and be named ref.ww.hh.ext where ww is the image width, hh is the image height and ext is the image extension (gif or jpg).
Use the format /ww,hh,ext/[ww,hh,ext/...] to identify the files. For example, if your store uses the files named ref.60.60.gif and ref.120.60.jpg for your program, you will enter this field as /60,60,gif/120,60,jpg/.
I'll be happy to update the readme and help-text to provide more guidance if what's there is vague or needs more detail. Just let me know what's confusing.
Hi lat9,
Thanks for the speedy reply. I did read the readme file but my eyes must have been glazed over as I had everything in the right place but, I neglected to add ref. to my image name. My bad :bangin:
Thanks for the help!
Thanks for the update. In any future release, I'll move the version/update section to the end so that the "real content" of the readme is more obvious.
Is there a way to add text to the code that people will copy for banners? For example... Attachment 13158
Thank you!
Howzit, im trying to add ty package tracker to my site. However I run into the below issue when trying to merge the existing admin/orders.php into a new one for the package tracker.
Issues merging admin/orders.php with one that already has snap affiliates edits, and its only the admin/orders.php that is the problem, all other edits go thru just fine.
I have tried merging both directions but cannot get this to work with snap affiliates edits in it at the same time. So finally, after the 9th try ive given up and im not seeing anything else that ref's issues with these two mods.
Anytime I try to merge in the snap affiliates edits, then I can no longer add tracking numbers from the admin.
No anything else used, no superorder, no edit orders.
Anyone else have any issues with merging ty package tracker and snap affiliates?
zen v 1.5.1
downloaded ty package tracker today
Winmerge used for edits
Thanks
Bill
PS; I tried package tracker thread, and thought I might should try here also in case anyone else has had issues.
BugWater, it's not (as you discovered) an easy merge! I've attached a zip-file that merges the changes into /YOUR_ADMIN/orders.php and also adds an admin-level observer so that the TyPT code can (a) insert the tracking code into the database when the orders-status history update occurs and (b) includes its text into the generated email.
Wow, now that is an amazing support reply. Unfortunately, it has the same affect. Once new files were uploaded I could no longer add in tracking numbers thru the admin panel.
Attachment 13198
I actually tested this version.:blush:
Fricken awesome! Im so glad that ill be able to keep both of my most used addons. It was going to be a hard decision to make so im so glad you were able to merge the two.
Thank You very very much.
Bill
You're very, very welcome! I'll cross-post the link to the answer that (actually) worked in the TyPT discussion ...
Using Snap Affiliate 2.5.0 with Zen V1.5.1. The affiliate link image does not display when code is copied and pasted.
I have double checked to make sure all files are installed properly and every thing seem to be good on my site when affiliates log in. I have created a dozen or so images and have them installed and displaying on the referrers tools page. If I log on as an affiliate, copy the code and paste it into my facebook page to post or someplace like live journal only the code can be seen. The image is not displayed. I have read through these posts and only found a reference to an edit for a relative link matter. I made the correction for the relative link and still no image. My code reads as follows.<a href="http://www.amateurchef.com/index.php?main_page=index&referrer=CNWR_21381307351&zenid=a86103c70cbac7a55d7ea3 90726c647a"><img src="http://www.amateurchef.com/images/referrers/ref.144.175.gif" width="144" height="175" alt="Your image alt-text here" /></a>
LeoJ, I copied the code that you included into a local HTML file, displayed that file with my browser and it displayed an image of your "chef". When I clicked on the image, I was taken to your main page.
Did the image link that Snap Affiliates created for you include that zenid parameter? If so, I'll need to look at that and provide an update that excludes that parameter.
I also tried it out and it worked fine for me as well.
Great mod looking good
But how can I delete a customer in admin?
Another question.
Still testing with a dummy account and an refferer acoount.
I made a real payment via Paypal with the dummy account.
Now in admin>Customers>Referrers the referrer account shows: 0 at Unpaid Commission:
But in the referrers shop account, under "Sales Summary", it shows: Unpaid Commission: $0.40
Will the refferer account in admin update? Or should this be instant?
What version of snap_affiliates are you using?
What are your settings for Configuration->Affiliate Program?
I would vote and pay for this addition to the plugin. It would be helpful especially to have graduated commission scales - rewarding affiliates with the more they sell.
Secondly, Certain items - I have a store that offers products from other vendors and do not want to pay commission on something that is technically "not my product". Either way, thanks for the plugin! Great work!
Hello. I cant see a link in the information side box to the referrer signup page? Can someone give me that link? Thanks.
I'm finding that after uploading the files, as per instructions and changing all the Your_Template folder names to my "template_default", then logging into initiate the db update, it still won't show up in my information sidebox where it's suppose to. I've done pretty much everything, checked everything several times, so now I'm at a loss as what I can do next to get the script running.
I have the same problem, and I have my config set to "true", but it doesn't show.
For the affiliates link to show in the information sidebox:
- The "Show Affiliates Link in Sidebox" needs to be set 'true'
- The "Information" sidebox needs to be enabled
- The file /includes/modules/sideboxes/YOUR_TEMPLATE/informtion.php needs to be present
Since you say that 1 and 2 are true, I'm guessing that you missed the folder-rename for the sidebox module.
Nope, did it all and still won't appear.
@motherlode: Would you post a link to your website?
@motherlode: Replace the file /includes/modules/sideboxes/classic/information.php with the following:
I added the bit in red just to make sure that the sidebox code is being run.Code:<?php
/** Get Paid mod
* information sidebox - displays list of general info links, as defined in this file
*
* @package templateSystem
* @copyright Copyright 2003-2013 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version GIT: $Id: Author: DrByte Sun Feb 17 23:22:33 2013 -0500 Modified in v1.5.2 $
*/
unset($information);
?>
<!-- Start information links -->
<?php
if (SNAP_INFORMATION_SIDEBOX === 'true') {
$information[] = '<a href="' . zen_href_link(FILENAME_REFERRER_SIGNUP, '', 'SSL'). '">' . BOX_INFORMATION_REFERRER_TERMS . '</a>';
}
if (DEFINE_SHIPPINGINFO_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>';
}
if (DEFINE_PRIVACY_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>';
}
if (DEFINE_CONDITIONS_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
}
if (DEFINE_CONTACT_US_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . BOX_INFORMATION_CONTACT . '</a>';
}
// Forum (phpBB) link:
if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed']) && (PHPBB_LINKS_ENABLED=='true')) {
$information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
// or: $phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX
// or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
}
if (DEFINE_SITE_MAP_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_SITE_MAP) . '">' . BOX_INFORMATION_SITE_MAP . '</a>';
}
// only show GV FAQ when installed
if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') {
$information[] = '<a href="' . zen_href_link(FILENAME_GV_FAQ) . '">' . BOX_INFORMATION_GV . '</a>';
}
// only show Discount Coupon FAQ when installed
if (DEFINE_DISCOUNT_COUPON_STATUS <= 1 && MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') {
$information[] = '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>';
}
if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') {
$information[] = '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>';
}
require($template->get_template_dir('tpl_information.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_information.php');
$title = BOX_HEADING_INFORMATION;
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
Note: I don't want to nag, but your use of the classic folder as your "override" folder might cause you problems when you upgrade.
I have the Stock by Attributes module on my store. Anyone know if this mod plays nice with that?
Sorry, been away for a bit. Now ready to tackle this.
I checked my directory, and there is no "information.php" in this path..... rather it's ---- /includes/modules/sideboxes/classic/empty.txt
Echoing what picandnix said, but to answer your last question ... "I checked my directory, and there is no "information.php" in this path..... rather it's ---- /includes/modules/sideboxes/classic/empty.txt" ...
That implies that
- You're still using the classic template. You should create your own template directory if you make changes; see this FAQ (http://www.zen-cart.com/content.php?...ustom-template) for details or install one of the very nice free ones available in the Plugins. Doing this will save you major grief the next time you upgrade your Zen Cart software!
- You haven't yet made changes the the information sidebox file. Once you have your custom template, you would copy the plugin's file /includes/templates/YOUR_TEMPLATE/sideboxes/information.php to /includes/templates/CUSTOM/sideboxes/information.php.
Apologies it's 2am and my head is splitting open ... Does the customer (referrer) have to have a website?
We have a few artists on our dev team and they don't have websites, but if they are promoting our products it would be good for them to have some compensation within an affiliate program. :)
Promoting on facebook pages, forums, places where they frequent, even our video artists have YouTube.
Cheers :)
You could have the people who are promoting your store via facebook or youtube to simply enter facebook.com or youtube.com as their website. The website name is gathered solely for your record-keeping.
Awesome, after school goes back for us I'll get the other half to install it :) Need a day to ourselves rather than chase the monster.
Thank you.
Nice plugin, i am running it on v1.51 without problems, but my refferals are asking is there a way to show on their affiliate panel statistics for refferal trafic?
Many thanks for all your efforts and this handy plug-in.
perfumbg, I'm glad that the plugin is working well for you.
The request for statistics/tracking capability has been on the to-do list for a while. Since "statistics/tracking" is a kind of broad statement of functionality, I'd appreciate a more-refined statement from you (and other users of the plugin) describing exactly what items/events should have statistics and tracking associated with them.
Hello, I hope this finds you well. This module is wonderful and works as expected as long as I do not use the payfast payment module (similar to paypal). I think it is because the current payfast itn handler does not take into consideration notifiers and observers. Is there anything I can do to get the module to work with payfast if this is the case? I would be happy to add something to payfast's code to make it able to call notifiers, but not sure how to do this and then the session variable will also be gone? Thanking you for any assistance in this matter.
Unless the payfast payment module has made major changes to the order.php class, I don't see how a payment module could affect the SNAP operation. What "unexpected" operations occur when you use that payment module? Where do you download this payment module's code?
Thank you very much for your very quick reply and sorry for the delay in mine. I do not receive any errors, it just does not capture any sales where payment is made via payfast, but others are fine. I have attached the current payfast module that I downloaded from their website at https://www.payfast.co.za/s/std/zencart.Attachment 13899
Thank you again for your assistance in this matter. If there is anything else you need please let me know. Have a great day ahead.:smile:
The payfast payment module's before_process function, which is supposed to return control to the standard Zen Cart checkout_process procedure, instead performs a partial cleanup of the checkout procedure and a redirect to the checkout-success page. Since that payment method is bypassing the order class' basic processing, the notifier that SNAP is looking for to record any referrer transaction is never issued.
Net-net: The payfast payment module is not compatible with SNAP Affiliates (and probably a lot more plugins).
Having looked at the payfast code a bit more, it looks like you could get the affiliates payments associated with the payfast payments by copying the file /includes/auto_loaders/config.snap.php to the (new) file /includes/auto_loaders/payfast_itn.snap.php. That will bring the SNAP code bits in to the processing when the payfast ITN occurs (and creates the order).
I've submitted v2.6.1 of SNAP Affiliates to the Plugins area for review. No major updates, primarily to change the initial installation default for "Include in Information Sidebox?" from true to false ... giving the initial installers time to (a) review/change their configuration settings and (b) to create the content for the two define-pages used by the plugin.
Thank you very much again. I will definately try your suggestion and thank you very much for taking the time to help me with this. You have really gone over and above (and I can see by your posts that you do so consistantly). I will let you know if it works and will also advise payfast in the hope that they can fix their side, if they do I am sure your time will end up helping many other people here in SA too.:D
Hello. I am using 2.6.1 on zc 1.5.0. I followed the instructions. I never received a notice that the database updated after ftping files and logging in to back end. I am receiving a blank page after fresh install of the software. https://performanceracingoils.com/in...eferrer_signup
I searched for troubleshoot and blank and found neither in this thread. Thank you for the help in advance.
It looks like you've got a problem with your referral terms and conditions information (that you edit with your admin's Tools->Define Page Editor), since it's that portion of the page that's not rendering. Like picandnix said, the most recent debug-log file in your store's /cache directory (since you indicated that you're using ZC 1.5.0) will point to the specific issue.
I've just submitted v2.7.0 to the Plugins area. This version updates your Customers->Referrers page to include additional features when you click the "Pay" button for an affiliate:
- You can choose which currently-commissionable orders to be paid.
- You can change the to-be-paid commission amount to a value other than the calculated amount
This version also records the commission payment value separately from the order; previous versions calculated paid commissions based on an order's current value.
v2.7.0 is now available for download.
I'm trying to set up my website to run on specifically just a Bitcions. Is there a way to run snap affiliates so when I pay out to my affiliates I can pay out in bitcoins to a pre designated Bitcoin address?