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
judy at Web2Market  
#1 Posted : Wednesday, November 11, 2020 8:38:24 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 289

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
Ship To Fax is missing in the shipping summary on the view order page. It was displayed in Gold R12.

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

shari  
#2 Posted : Thursday, November 12, 2020 3:40:22 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
You are right. We missed the display code of the ShipToFax property.

I am registering this as a bug and sharing the fix.

1- Open Website\Areas\Admin\Models\OrderModels.cs
2- Search for

Code:
public string LastShipmentDate { get; set; }

public string GetShipmentStatusStyle(string status)
{
    status = status.ToLower();
    if (status == "unshipped") return "text-warning";
    else return "text-success";
}


3- Replace with
Code:
public string LastShipmentDate { get; set; }
public string ShipToFax { get; set; }

public string GetShipmentStatusStyle(string status)
{
    status = status.ToLower();
    if (status == "unshipped") return "text-warning";
    else return "text-success";
}

4- Open Website\Areas\Admin\Controllers\OrdersController.cs
5- Search for
Code:
model.ShipToPhone = order.Shipments[0].ShipToPhone;

6- Replace with
Code:
model.ShipToPhone = order.Shipments[0].ShipToPhone;
model.ShipToFax = order.Shipments[0].ShipToFax;

7- Open Website\Areas\Admin\Views\Orders\_ShippingSummary.cshtml
8- Search for
Code:
@if (!string.IsNullOrEmpty(Model.ShipToPhone))
{
<li>
    <span class="fa fa-phone m-r-xs"></span>
    @Model.ShipToPhone
</li>
}


9- Replace with
Code:
@if (!string.IsNullOrEmpty(Model.ShipToPhone))
{
<li>
    <span class="fa fa-phone m-r-xs"></span>
    @Model.ShipToPhone
</li>
}
@if (!string.IsNullOrEmpty(Model.ShipToFax))
{
    <li>
        <span class="fa fa-fax m-r-xs"></span>
        @Model.ShipToFax
    </li>
}

10- You will need to compile the code to apply these changes.
judy at Web2Market  
#3 Posted : Thursday, November 12, 2020 6:46:10 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 289

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
Thanks, I had fixed it myself in a similar fashion. Later on, I found the TaxExemption information wasn't showing like it was in Gold in the Billing information so I added that also.
Users browsing this topic
Guest (2)
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.