Administrator
- Join Date:
- Sep 2009
- Location:
- Stuart, FL
- Posts:
- 14,119
- Plugin Contributions:
- 56
Snap Affiliates v2.0 for v1.5.0 and later
Thanks, Jeff. I'll get a zc157/SNAP test site together, since zc155f/SNAP seem to be working.
Views: 68,401
Administrator
Thanks, Jeff. I'll get a zc157/SNAP test site together, since zc155f/SNAP seem to be working.
Administrator
Jeff, when you inspect those older orders via phpMyAdmin, what date(s) are shown for commissions::commissions_paid? Are all the unpaid commissions' commissions_paid dates 0001-01-01 00:00:00?
Totally Zenned
lat9:
Jeff, when you inspect those older orders via phpMyAdmin, what date(s) are shown for commissions::commissions_paid? Are all the unpaid commissions' commissions_paid dates 0001-01-01 00:00:00?
Yes, here is a screenshot:

Totally Zenned
As a way of testing, I would say to have some unpaid commissions for the month prior (like August 2020) but have ZERO unpaid commissions in this month (September 2020). In other words, no commissions were generated in the current month, but we have unpaid commissions for the month prior.
Change the Order History drop down box to list all orders from August 2020 to August 2020. Then hit the PAY button and see if it doesn't list those orders for payment.
New Zenner
Browsing this thread, I am also having issues with Snap Affiliates since moving to ZC1.5.7. I cannot list the orders I want to pay; I have commissioned orders from May 2020 through the end of December 2020, and I can list those, but when I click Pay nothing comes up. I need to settle up with my affiliate and remembering that I've paid those commissions - but am unable to mark them paid - will mess me up the next time I go to pay that affiliate. Is there any work being done on this?
Administrator
CraftCorner:
Browsing this thread, I am also having issues with Snap Affiliates since moving to ZC1.5.7. I cannot list the orders I want to pay; I have commissioned orders from May 2020 through the end of December 2020, and I can list those, but when I click Pay nothing comes up. I need to settle up with my affiliate and remembering that I've paid those commissions - but am unable to mark them paid - will mess me up the next time I go to pay that affiliate. Is there any work being done on this?
It's not my top priority, but I am working on it! Which variant of zc157 is in use on your site (zc157, zc157a or zc157b)?
New Zenner
lat9:
It's not my top priority, but I am working on it! Which variant of zc157 is in use on your site (zc157, zc157a or zc157b)?
ZC157b. Also, my affiliates can't see their total commissions owed any more...so they have to bug me to tell them. And their total doesn't show on the referrer listing page; I have to click in to their referrer account page to pull that data.
Totally Zenned
Twitch update snap affiliates.referrers - add edit button
Adding these two lines will allow typical stock Zen Cart edit/select/return functionality to the** referrers.php **summary page.
Add line 513 <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_ACTION; ?></td>
Add line 529
<td class="dataTableContent" align="right">
<?php if ($current_selection) { // Twitch update snap affiliates.referrers - add edit button
echo zen_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', '');
} else {
echo '<a href="' . zen_href_link(FILENAME_REFERRERS, 'referrer=' . $referrer['customers_id'] . ($_GET['page'] > 0 ? '&page=' . $_GET['page'] : ''), 'NONSSL') . '">' . zen_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>
</td>
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian
Totally Zenned
Wish List for this module:
Deleted customer/order record as the commission paid should be displayed as commission history for accounting purposes.
Conditions exist that when you delete an order or customer -the data remains in the database- but it is ***unavailable ***for view.
This information should also be included in any other accounting reports and made available to the **CASL **legal record (if Twitch CASL or similar has been installed)
Also, if the summary could be sorted by date added - to ensure the newest affiliate sign up displays first.
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian
Administrator
Thanks, @twichtoo, for the suggestions. Hopefully, I'll find time to update this for use with zc157 within the next few weeks.
Totally Zenned
Sounds good thanks.
One more option this module could use:
Allow admin to select any of the *active *payment modules or an **in-store credit **(coupons) in the affiliate settings instead of just check/moneyorder or paypal (already an optional setting)
Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian
Administrator
twitchtoo:
Sounds good thanks.
One more option this module could use:
Allow admin to select any of the *active *payment modules or an **in-store credit **(coupons) in the affiliate settings instead of just check/moneyorder or paypal (already an optional setting)
That's going to be a major stretch (the auto-payment) and will probably not be fulfilled. There is, however, a commercial extension to this plugin that allows you to pay via gift certificate.
Zen Follower
Hi lat9,
I am wondering what happens when a cookie expires? For instance, I want to set it up so the cookie is a one-time use, which seems to be possible with this module. After the sale, the cookie expires.
In this circumstance, what happens if the user click through the affiliate link again? Will a fresh cookie be generated that they can earn commission on again? Or does it not allow for another cookie to be generated once the original one-time cookie expires?
Looking for some clarity... thank you!
Administrator
lolwaut:
Hi lat9,
I am wondering what happens when a cookie expires? For instance, I want to set it up so the cookie is a one-time use, which seems to be possible with this module. After the sale, the cookie expires.
In this circumstance, what happens if the user click through the affiliate link again? Will a fresh cookie be generated that they can earn commission on again? Or does it not allow for another cookie to be generated once the original one-time cookie expires?
Looking for some clarity... thank you!
Yes, on an additional click-thru on an affiliate's link a new cookie will be generated and they can earn commission again.
New Zenner
lat9:
It's not my top priority, but I am working on it! Which variant of zc157 is in use on your site (zc157, zc157a or zc157b)?
Hi lat9, any progress on this? As a reminder, version is ZC157b, and my affiliates also can't see their total commissions owed any more, so they have to ask me. It's getting to be a real problem, and I know you're crazy busy...but help would sure be appreciated.
Lisa
Administrator
CraftCorner:
Hi lat9, any progress on this? As a reminder, version is ZC157b, and my affiliates also can't see their total commissions owed any more, so they have to ask me. It's getting to be a real problem, and I know you're crazy busy...but help would sure be appreciated.
Lisa
None currently. I'll put SNAP on my to-do list for next weekend.
New Zenner
lat9:
None currently. I'll put SNAP on my to-do list for next weekend.
Thank you so much!
Administrator
twitchtoo:
Wish List for this module:
Deleted customer/order record as the commission paid should be displayed as commission history for accounting purposes.
Conditions exist that when you delete an order or customer -the data remains in the database- but it is ***unavailable ***for view.
This information should also be included in any other accounting reports and made available to the **CASL **legal record (if Twitch CASL or similar has been installed)
Also, if the summary could be sorted by date added - to ensure the newest affiliate sign up displays first.
I've opened a GitHub issue (https://github.com/lat9/snap_affiliates/issues/43) to cover the deleted customers/orders. Note that this won't be addressed in the next release as it requires a fair amount of rework for the data-gathering.
There's no "date added" for an affiliate's sign-up, so there's no means of providing that requested sort.
Administrator
I've just submitted v4.2.0 of SNAP Affiliates v2.0 for the Zen Cart moderators' review; I'll post back here when it's available for download from https://www.zen-cart.com/downloads.php?do=file&id=1635.
This release contains changes associated with the following GitHub issues:
#37: Setting 'samesite' attribute for referrers' cookies.
#38: Correcting a referrer's first-order-date if an order's date_purchased is NULL.
#39: Drop support for Zen Cart versions prior to zc157a, PHP versions prior to 7.0.3.
#40: Don't offer commission pay-out on orders with excluded statuses.
#41: Add 'standard' Zen Cart listing Action column for the admin's referrers listing.
#44: Default a referrer's home-page to use https protocol, add rel="noopener noreferrer" to admin links.
Administrator
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=1635
Tell staff why this post should be reviewed.