AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
Unpaid and Canceled Affiliates showing in commission report
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
I'm working on setting up the affiliates and when I placed an order as pay by check, it showed up in the affiliate's report with a commission amount already showing. Then when I canceled the order, with no payment (even canceled the pending payment flag) it's still showing that the affiliate is entitled to payment.
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
On the customer's side, it doesn't show the commission amount, but it does show the order. Is there a way to show the status of the order so that the customer understands why they aren't getting paid for this order, like if it's canceled or refunded. And I haven't tested it yet, but does a refund subtract from their commission? Also, how can I get this chart to line up correctly?
|
|
|
|
Rank: Advanced Member
Groups: Admin, Administrators, Developers, Registered, HelpDesk, Authorized User Joined: 7/31/2019(UTC) Posts: 77
Was thanked: 8 time(s) in 8 post(s)
|
Hi, Quote:I'm working on setting up the affiliates and when I placed an order as pay by check, it showed up in the affiliate's report with a commission amount already showing. I am sorry the associated orders section is missing a header/title. The orders shown up under affiliate report section are the orders associated with the affiliate account the amount shown up seems the expected commission amount. The actual report above the associated orders section will only include orders which are marked to be included in reports. By default the orders with "Shipment Pending" and "Completed" statuses are shown up for all reports. You can however update/change the configuration from "Dashboard -> Configure -> Store -> Order Statuses" page by editing the order statuses and update them to be included/excluded for reports. |
|
|
|
|
Rank: Advanced Member
Groups: Admin, Administrators, Developers, Registered, HelpDesk, Authorized User Joined: 7/31/2019(UTC) Posts: 77
Was thanked: 8 time(s) in 8 post(s)
|
Quote:Is there a way to show the status of the order so that the customer understands why they aren't getting paid for this order, like if it's canceled or refunded. And I haven't tested it yet, but does a refund subtract from their commission? You can easily add the order status information by customizing the respective view file and action method in controller class. View file: ~/Members/_MyAffiliateSalesReport.cshtml Controller file: ~/Members/MembersController.cs Look for action method :_MyAffiliateSalesReport in controller class and update the model.Orders list initialization code from: [code] model.Orders = orders.Select(o => new AccountOrder { OrderId = o.Id, OrderDate = o.OrderDate, OrderNumber = o.OrderNumber, ProductSubtotal = o.ProductSubtotal, TotalCharges = o.TotalCharges, }).ToList(); [code] To [code] model.Orders = orders.Select(o => new AccountOrder { OrderId = o.Id, OrderDate = o.OrderDate, OrderNumber = o.OrderNumber, ProductSubtotal = o.ProductSubtotal, TotalCharges = o.TotalCharges, Status = o.OrderStatus.ToString(), }).ToList(); [code] After that update the view file and display the status information using the newly populated status field in above code. |
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
Hi Naveed, I tried opening the AbleCommerce_WAP.sln file and got the following error: [Failure] Could not find file '...\.NETFramework,Version=v4.6.2.AssemblyAttributes.cs'.
Am I missing some change I need to make in my VS19 since you last did our update?
|
|
|
|
Rank: Advanced Member
Groups: Admin, Administrators, Developers, Registered, HelpDesk, Authorized User Joined: 7/31/2019(UTC) Posts: 77
Was thanked: 8 time(s) in 8 post(s)
|
The error seems related to some Visual Studio update or something related: https://stackoverflow.co...-part-of-the-path-c-tempTry a clean build or rebuild the project and it should solve the issue. By the way the changes I last made were related to database and not the website. |
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
ok thank you, I wasn't sure if you had to do any rebuild with the things we needed.
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 11/13/2018(UTC) Posts: 23
Thanks: 16 times Was thanked: 1 time(s) in 1 post(s)
|
I just had to rebuild it and it bypassed that error with no error.
But now I need help with "After that update the view file and display the status information using the newly populated status field in above code." I don't know the syntax to add, and how to make the columns match up neatly. I matched up the columns/grid because the header and sales info didn't have the same able-grid-col but it didn't change the view.
<div class="able-grid able-grid-bordered"> <div class="able-grid-head container-fluid hidden-xs"> <div class="row able-grid-row"> <div class="col-xs-6 col-sm-4 able-grid-col"> @GetResourceString("retail.myaffiliatesalesreport.order_#") </div> <div class="col-xs-6 col-sm-4 able-grid-col"> @GetResourceString("retail.myaffiliatesalesreport.date") </div> <div class="col-xs-6 col-sm-4 able-grid-col"> @GetResourceString("retail.myaffiliatesalesreport.products") </div> <div class="col-xs-6 col-sm-4 able-grid-col"> @GetResourceString("retail.myaffiliatesalesreport.total") </div> </div> </div> <div class="able-grid-body container-fluid"> @foreach (var order in Model.Orders) { <div class="row able-grid-row"> <div class="col-xs-6 col-sm-4 able-grid-col"> <div class="able-grid-content"> <small class="visible-xs">@GetResourceString("retail.myaffiliatesalesreport.order_#"):</small> @order.OrderNumber </div> </div> <div class="col-xs-6 col-sm-4 able-grid-col"> <div class="able-grid-content"> <small class="visible-xs">@GetResourceString("retail.myaffiliatesalesreport.date"):</small> @(string.Format("{0:d}", order.OrderDate)) </div> </div> <div class="col-xs-6 col-sm-4 able-grid-col"> <div class="able-grid-content"> <small class="visible-xs">@GetResourceString("retail.myaffiliatesalesreport.products"):</small> @order.ProductSubtotal.LSCurrencyFormat("ulc") </div> </div> <div class="col-xs-6 col-sm-4 able-grid-col"> <div class="able-grid-content"> <small class="visible-xs">@GetResourceString("retail.myaffiliatesalesreport.total"):</small> @order.TotalCharges.LSCurrencyFormat("ulc") </div> </div> </div>
|
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
Unpaid and Canceled Affiliates showing in commission report
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close