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 : Tuesday, April 26, 2022 10:43:32 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)
(Dave, don't read this)
We're doing an upgrade for a Gold customer who has a customized page for the customer to print their order. I've made a new view that starts out like the following and have the code in the Members controller to populate the information. All the info is populated OK, but there is no stylesheet applied. (I copied some of the html from AC order pages). What do I need to do to get a stylesheet to apply? Thanks
Starting code:
@model IEnumerable<AbleCommerce.Models.AccountOrder>
@using CommerceBuilder.Orders
@using CommerceBuilder.Utility
@using CommerceBuilder.Extensions
@{
ViewBag.Title = GetResourceString("retail.myorderheading.pagetitle", false);
int orderId = AlwaysConvert.ToInt(ViewBag.OrderId);
Order order = AbleContext.Resolve<IOrderRepository>().Load(orderId);
}
<article class="account-content">
<div class="order-meta

Here is an image of what part of the page looks like:
2022-04-26_11-42-06.png (56kb) downloaded 0 time(s).

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

nadeem  
#2 Posted : Wednesday, April 27, 2022 12:31:06 AM(UTC)
nadeem

Rank: Advanced Member

Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System
Joined: 10/11/2018(UTC)
Posts: 109

Thanks: 17 times
Was thanked: 18 time(s) in 18 post(s)
You need to add classes/styles inside your theme's default.css file or use the existing classes. The print styles should go under the section:
Code:
/*------------------------------
    PRINT STYLES
------------------------------*/
@media print {


Hope this helps!
Users browsing this topic
Guest
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.