Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
straightlight wrote: ↑Sun Apr 12, 2020 4:29 amIf no extensions suits your needs on the Marketplace based on your specific request, you could always create a new Service Request in the Commercial Support section of the forum or contact me directly to get this done as a custom job.
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
straightlight wrote: ↑Sun Apr 12, 2020 6:12 amCommunicated with the user to provide alternate Marketing solutions with affiliates by using extensions on the Marketplace. The first post from seanstorm100 will now be set to solved.
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
Jim
https://www.carguygarage.com
Yahoo Store since 2006 moved to OpenCart on January 24, 2020
Always has been the case from the core, yes. Otherwise, you either require an extension for automated tasks or by using a service.head_dunce wrote: ↑Mon Apr 13, 2020 9:56 pmWait, so I have to manually approve something on the order for the affiliate commission to happen?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
In OCv3.0.3.2, I see an option in System>Settings(Edit)>Options Tab>Scroll Down to Affiliates Section>Automatic Commission: [Yes or No]
Image
https://pasteboard.co/J3E7swQ.png
If "No" is selected you would have to go to each order (Under Sales) and Press the eye icon to view then to the top right you will see "Affiliate" with a plus button, hitting that plus button would add their commission if this order was made using an Affiliate Link. You will also see how much this affiliate will earn from this order beside the plus icon.
Image
https://pasteboard.co/J3E6wTG.png
However, if this is set to "Yes", the store will add it for you (Affiliate will receive an email).
head_dunce wrote: ↑Mon Apr 13, 2020 9:56 pmWait, so I have to manually approve something on the order for the affiliate commission to happen?
Regards,
Nightwing
Access to my Free Extensions: https://www.opencart.com/index.php?rout ... =nightwing
Jim
https://www.carguygarage.com
Yahoo Store since 2006 moved to OpenCart on January 24, 2020
Yes, it can be automated this way but you'd also have to know the defined amount for each customer groups where the affiliates are being placed to as opposed to manual approval. Where one-to-other users could have different versions strategically, if there are adjustments that needs to be made, order modifications would need to be made twice instead of once where the first would be automatic and the second one would be manual on anyhow instead of defining the commission value on first sight.head_dunce wrote: ↑Tue Apr 14, 2020 2:02 amUh, so one guy says I have to manually approve them -- and the other says it's automatic... ... --so helpful....
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Uhhh... << profanity removed >>?!?! I assume you know what you mean, but just know that I don't know what you know you mean. I'm gonna guess that everything is fine, and let more affiliates sign up. Hopefully nothing backfires.straightlight wrote: ↑Tue Apr 14, 2020 2:17 amYes, it can be automated this way but you'd also have to know the defined amount for each customer groups where the affiliates are being placed to as opposed to manual approval. Where one-to-other users could have different versions strategically, if there are adjustments that needs to be made, order modifications would need to be made twice instead of once where the first would be automatic and the second one would be manual on anyhow instead of defining the commission value on first sight.
Reason: Removed profanity.
Jim
https://www.carguygarage.com
Yahoo Store since 2006 moved to OpenCart on January 24, 2020
Yup, same here. Topic now set to solved.head_dunce wrote: ↑Tue Apr 14, 2020 10:03 amUhhh... << profanity removed >>?!?! I assume you know what you mean, but just know that I don't know what you know you mean. I'm gonna guess that everything is fine, and let more affiliates sign up. Hopefully nothing backfires.straightlight wrote: ↑Tue Apr 14, 2020 2:17 amYes, it can be automated this way but you'd also have to know the defined amount for each customer groups where the affiliates are being placed to as opposed to manual approval. Where one-to-other users could have different versions strategically, if there are adjustments that needs to be made, order modifications would need to be made twice instead of once where the first would be automatic and the second one would be manual on anyhow instead of defining the commission value on first sight.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
head_dunce wrote: ↑Sat Apr 11, 2020 9:13 amI'm starting to get affiliates as of this week too. Oddly I set up a user group called "Affiliates" and associated it to anyone signing up as an affiliate, but they still get dumped into the default group so I have to manually change them before I approve them.
my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com
In catalog/controller/checkout folder, create a new file called: affiliate.php .
Then, add the following:
Code: Select all
<?php
class ControllerCheckoutAffiliate extends Controller {
// catalog/model/checkout/order/addOrderHistory/after
public function index(&$route, &$args, &$output) {
if (isset($this->session->data['order_id']) && isset($this->request->cookie['tracking'])) {
$this->load->model('checkout/order');
$order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);
// The affiliate will only earn from the first purchase made by the customer.
// Source: https://forum.opencart.com/viewtopic.php?t=202911#p783086 .
// If above the first order, we cancel the commission amount on the affiliate.
if ($order_info && $order_info['affiliate_id'] && $order_info['customer_id'] == $this->customer->getId()) {
$query = $this->db->query("SELECT DISTINCT(COUNT(`order_id`)) AS total FROM `" . DB_PREFIX . "order` WHERE `affiliate_id` = '" . (int)$order_info['affiliate_id'] . "' AND `customer_id` = '" . (int)$order_info['customer_id'] . "' AND `commission` = '" . (float)$order_info['commission'] . "' AND `tracking` = '" . $this->db->escape($this->request->cookie['tracking']) . "'");
if ($query->num_rows) {
$total_orders = $query->row['total'];
if ($total_orders > 1 || $this->cart->hasRecurringProducts()) {
$this->db->query("UPDATE `" . DB_PREFIX . "order` SET `commission` = '0' WHERE `order_id` = '" . (int)$order_info['order_id'] . "'");
}
}
}
}
}
}
Code: Select all
INSERT INTO `oc_event` (`code`, `trigger`, `action`, `status`, `sort_order`) VALUES ('checkout_affiliate', 'catalog/model/checkout/order/addOrderHistory/after', 'checkout/affiliate', 1, 0);
This should resolved the issue.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
This forum rocks, the affiliate marketing is something we all must work on to get it better and drive more sales to our store.
I have been also looking into this feature and coincide with all of you with the lack of functions needed in OC 3.xx - although I looked into a free extension from https://www.opencart.com/index.php?rout ... _license=0 in this regards and have some really cool functionalities as well but I can't find why the affiliate select menu it's not showing in the Coupons area when creating a new one...
But I will be also interested to try out the improvements @straightlight is doing, I looked into your Github but the last commits was on Nov 2020, do you have it on a private repro maybe?
Let me know,
Cheers
Username referred, no commits pointed to. Forum rules.But I will be also interested to try out the improvements @straightlight is doing, I looked into your Github but the last commits was on Nov 2020, do you have it on a private repro maybe?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: Bing [Bot], Semrush [Bot] and 407 guests