logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
IDAutomation  
#1 Posted : Wednesday, June 17, 2020 10:49:50 AM(UTC)
IDAutomation

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.

UserPostedImage

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

IDAutomation  
#2 Posted : Wednesday, June 17, 2020 11:01:11 AM(UTC)
IDAutomation

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?

UserPostedImage
Naveed Ashraf  
#3 Posted : Friday, June 19, 2020 1:40:19 AM(UTC)
Naveed Ashraf

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.

Thanks for your support!
Naveed Ashraf
Ablecommerce.com
Developer Assistance Available
Naveed Ashraf  
#4 Posted : Friday, June 19, 2020 2:19:47 AM(UTC)
Naveed Ashraf

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.
Thanks for your support!
Naveed Ashraf
Ablecommerce.com
Developer Assistance Available
IDAutomation  
#5 Posted : Tuesday, June 23, 2020 9:50:28 AM(UTC)
IDAutomation

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?
Naveed Ashraf  
#6 Posted : Tuesday, June 23, 2020 1:09:38 PM(UTC)
Naveed Ashraf

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-temp

Try 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.
Thanks for your support!
Naveed Ashraf
Ablecommerce.com
Developer Assistance Available
IDAutomation  
#7 Posted : Tuesday, June 23, 2020 1:38:22 PM(UTC)
IDAutomation

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.
IDAutomation  
#8 Posted : Wednesday, June 24, 2020 11:30:31 AM(UTC)
IDAutomation

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>
Users browsing this topic
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.