• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

CGrouse
#1 Posted : Monday, July 30, 2007 10:48:16 AM(UTC)
CGrouse

Rank: Member

Joined: 6/4/2004(UTC)
Posts: 291

Hello Everyone,


I am looking to remove this line of code:



<asp:Label ID="TotalWithoutDiscountsLabel" CssClass="lineitemnodiscounts" runat="server" Text='' Visible="false"></asp:Label>



out of my cart.aspx. In our theme it sits way out of place and doesn't make any sense to the customer.



I am very famalier with all codes except asp. If I cut the line out - I get errored out.



Is there an easy way to hide this code?



It sits in a item templage like this:



<ItemTemplate>
<asp:Label ID="TotalWithoutDiscountsLabel" CssClass="lineitemnodiscounts" runat="server" Text='' Visible="false"></asp:Label>
<asp:Label ID="TotalLabel" runat="server" Text='' CssClass="totallabel"></asp:Label>
</ItemTemplate>



Thanks in advance!
Thanks,


Christopher
[email protected]
#2 Posted : Monday, July 30, 2007 12:55:06 PM(UTC)
everett@bvsoftware.com

Rank: Member

Joined: 3/8/2007(UTC)
Posts: 139

Hi Christopher,

Would setting the CSS visibility attribute for "lineitemnodiscounts" work for you?

ie. - visibility:hidden;

Thanks,
Everett Comstock

BV Software
CGrouse
#3 Posted : Monday, July 30, 2007 1:22:08 PM(UTC)
CGrouse

Rank: Member

Joined: 6/4/2004(UTC)
Posts: 291

Originally Posted by: "Everett" Go to Quoted Post

Hi Christopher,

Would setting the CSS visibility attribute for "lineitemnodiscounts" work for you?

ie. - visibility:hidden;

Thanks,

I looked into my CSS. I am famlier with how to edit and modify - just not 'create.'


I assume its somewhere in here:



#carttotals {width:200px;float:right;margin-bottom:10px;text-align:right;}
#carttotals table {float:right;}



But that controls all the totals.



Thanks for the help !
Thanks,


Christopher
CGrouse
#4 Posted : Monday, July 30, 2007 1:27:50 PM(UTC)
CGrouse

Rank: Member

Joined: 6/4/2004(UTC)
Posts: 291




That is the problem I am having.
Thanks,


Christopher
Cliff
#5 Posted : Monday, July 30, 2007 1:55:42 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

If you're looking to style that section so they don't run together, you can do something like:
Code:
td.producttotalcolumn .lineitemnodiscounts { display: block; color: #999; text-decoration: line-through; }
td.producttotalcolumn .totallabel { display: block; }


To remove the discount on the screen, I'd just remove it from the code. But to do it with CSS, just do this:
Code:
td.producttotalcolumn .lineitemnodiscounts { display: none; }
CGrouse
#6 Posted : Monday, July 30, 2007 2:01:15 PM(UTC)
CGrouse

Rank: Member

Joined: 6/4/2004(UTC)
Posts: 291

Originally Posted by: "Cliff" Go to Quoted Post

If you're looking to style that section so they don't run together, you can do something like:


Code:

td.producttotalcolumn .lineitemnodiscounts { display: block; color: #999; text-decoration: line-through; }
td.producttotalcolumn .totallabel { display: block; }



To remove the discount on the screen, I'd just remove it from the code. But to do it with CSS, just do this:


Code:

td.producttotalcolumn .lineitemnodiscounts { display: none; }


Worked perfect!


I knew it was a pretty easy fix. Just gotta learn from CSS.



Thanks Everyone!
Thanks,


Christopher
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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012