BV Commerce Forum
»
BV Commerce Support
»
How Do I? Questions
»
how to change column header for volume discounts
Rank: Member
Joined: 7/26/2004(UTC) Posts: 155
|
I know this is probably a rookie question for many of you. I have a customer that hosts their BVC store with us, and they want to change the column header for the Volume Discount table shown on a product page from PRICE to PRICE EACH
I looked in the Adsmin site terms, and didn't see anything there looked in the BVModules//Controls/volumediscounts.ascx file thinking I could add/edit it here , but no luck with those attempts
I know it must be something simple. I'm just not a programmer |
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
Randy, Do you know which theme was used to create your client's site? If their theme was created using one of the newer responsive themes (i.e. Foundation4 Responsive or Bootstrap3 Responsive) then the control is likely being overridden by the theme. You can learn more about the new theme architecture that was introduced in BVC 2015 at the link below: https://www.bvcommerce.com/blog/...Architecture-in-BVC-2015 |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Rank: Member
Joined: 7/26/2004(UTC) Posts: 155
|
Thanks for the response Aaron!
their current live site is running off of the old Tekgear theme I believe, from a BV5.x setup originally. They are running BVC2018, but theme has never been changed out to be responsive. They are in the midst of getting a new site design with current responsive theme, so I'll just wait until then and get it changed for them when that goes live |
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
OK, so they're not using a responsive theme open the /BVModules/Controls/VolumeDiscounts.ascx control (the one you opened previously) and change the HeaderText attribute shown below: Code:
<asp:BoundColumn DataField="Amount" HeaderText="Price" DataFormatString="{0:c}"></asp:BoundColumn>
|
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Rank: Member
Joined: 7/26/2004(UTC) Posts: 155
|
Hi Aaron,
that is exactly what I tried to change originally in this element - tried changing: HeaderText="Price" to HeaderText="Price Each"
I knew it had to be simple.....
But when I did this on Friday it generated a page error. So I went back in and did the change again just now and it still threw an error. But when I did a page refresh, it worked. go figure.....
error was: \BVModules\ProductTemplates\Bvc5\Product.aspx.vb(3): error ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)
I'm not touching it anymore! and I'll threaten the page code that you know it is mis-behaving, so I'm sure there will be no more issues with it |
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
BVC uses a website project where the source code is dynamically compiled (unlike the Core and other portions of the code that are precompiled assemblies/DLLs in the /bin folder). ASP.NET 'watches' for changes to these source files and then recompiles as it sees the changes. This process can cause transient errors like you saw. The error will often go away after a few refreshes as ASP.NET has had enough time to see the change and recompile the code. |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Rank: Member
Joined: 7/26/2004(UTC) Posts: 155
|
I am aware that the code will re-compile after a source file change. Always expect that. I normally do not see an error like this on .NET apps on our server, especially BVC. That is what was puzzling. But it is all good now
As always - thanks for the quick and excellent support! |
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,393 Location: Hummelstown, PA Thanks: 6 times Was thanked: 163 time(s) in 158 post(s)
|
It happens often with controls (.ascx), presumably because they are used/referenced across many places. A single page (.aspx) generally does not experience this. |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
|
Message was deleted by a Moderator. | Reason: Not specified
|
|
|
|
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.