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

Notification

Icon
Error

2 Pages12>
sternyy
#1 Posted : Wednesday, April 22, 2015 12:38:47 PM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
With the new BV2015 theme architecture, can a theme override another theme when customers are allowed to choose their own theme? If I keep my store theme, but select the Foundation4 theme as a user, its still pulling from the files in the store theme.

For example, I copied a product template from my store theme to my Foundation4 theme. Named it identical to my store theme and updated a few things in the Foundation4 theme. When I, as a user, select the Foundation4 theme, it's still pulling the product template from the store theme. Is this the default behavior or am I missing something?

Edited by user Thursday, April 23, 2015 10:45:38 AM(UTC)  | Reason: Not specified

Aaron
#2 Posted : Wednesday, April 22, 2015 5:05:55 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Originally Posted by: sternyy Go to Quoted Post
With the new BV2015 theme architecture, can a theme override another theme when customers are allowed to choose their own theme? If I keep my store theme, but select the Foundry4 theme as a user, its still pulling from the files in the store theme.

It should load the selected theme files. So, if a user selects the Foundation4 theme instead of your store's theme, it should use the Foundation4 theme files.

Originally Posted by: sternyy Go to Quoted Post
For example, I copied a product template from my store theme to my Foundry4 theme. Named it identical to my store theme and updated a few things in the Foundry4theme. When I, as a user, select the Foundry4 theme, it's still pulling the product template from the store theme. Is this the default behavior or am I missing something?

No, that's not how it should be behaving. Do you see the new template when you change the store theme to use the Foundation4 theme?
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
sternyy
#3 Posted : Thursday, April 23, 2015 7:41:21 AM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
I see the new template, but it is still loading the store's template's files. I noticed this with the default Foundation4 template and my copied template. I first noticed it when I edited my default.aspx page in the pages folder of my copied Foundation4 template. I changed the ContentColumnControls to different ColumnNames.

When I, as a user, changed the store template to my copied Foundation4 template with the new default.aspx page, it still was pulling from the store template.

I also noticed, after some time, my user account would switch back to the store template out of the blue. It would also switch back to the store template when I clicked on the "My Account" page.

Actually, I just signed back in with my user account a moment ago and it switch back to the store template.

Edited by user Thursday, April 23, 2015 10:45:21 AM(UTC)  | Reason: Not specified

Steve95
#4 Posted : Friday, April 24, 2015 3:44:04 AM(UTC)
Steve95

Rank: Member

Joined: 4/29/2010(UTC)
Posts: 256

Thanks: 4 times
Was thanked: 11 time(s) in 10 post(s)
When you copied the theme files did you ensure you changed the namespace and the path to the code behind file?
sternyy
#5 Posted : Friday, April 24, 2015 7:41:14 AM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
Yup! I even noticed it with the default Foundation4 template as well.
sternyy
#6 Posted : Friday, April 24, 2015 10:31:05 AM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
I just did a fresh install of BVC 2015 locally and noticed the same behavior. After some time, it would also put my account back to the store template.

Edited by user Friday, April 24, 2015 10:52:41 AM(UTC)  | Reason: Not specified

Steve95
#7 Posted : Monday, April 27, 2015 3:56:59 AM(UTC)
Steve95

Rank: Member

Joined: 4/29/2010(UTC)
Posts: 256

Thanks: 4 times
Was thanked: 11 time(s) in 10 post(s)
Do you clear cookies when you close your browser session? I will try this out later this week as its something I need to get working too. I will let you know if I can replicate the issue.
sternyy
#8 Posted : Monday, April 27, 2015 9:33:16 AM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
Multiple browsers, cleared cache etc, fresh install and current site.
Aaron
#9 Posted : Monday, April 27, 2015 9:34:14 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
We were able to track this down to a bug deep within the bowels of the system that's probably been there since 5.0. The problem is that the personalized theme cookie was not being properly set. In the past this wasn't really a problem since the personalized theme was also saved to the session. However, in the case of theme overriding the personalized theme is sometimes needed before the session object is initialized. In this case we fall back to the cookie, but the cookie isn't there because it was never properly set.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
sternyy
#10 Posted : Friday, May 22, 2015 12:55:04 PM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
Is this also why the personalized theme will use the default theme's files instead of overriding them? I can deal with the personalized theme falling back to the default theme at the end of the session, but I can't work on the personalized theme because it's pulling its files from the default template.
Aaron
#11 Posted : Friday, May 22, 2015 1:08:15 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Yes. Until we release a fix for this you really can't use the personalized themes feature with the responsive theme/theme overriding features.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
 1 user thanked Aaron for this useful post.
sternyy
#12 Posted : Monday, June 1, 2015 10:57:09 AM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
We noticed in our current theme, any page in the page folder is not working. It's still pulling from the root of the site. Anyone else notice that?
Steve95
#13 Posted : Tuesday, June 2, 2015 7:46:41 AM(UTC)
Steve95

Rank: Member

Joined: 4/29/2010(UTC)
Posts: 256

Thanks: 4 times
Was thanked: 11 time(s) in 10 post(s)
Not tried that as I would have assumed they are pages which you change as opposed to adding them to a theme? Otherwise you could end up with the enitre website in a theme folder?
sternyy
#14 Posted : Tuesday, June 2, 2015 8:10:47 AM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: Steve95 Go to Quoted Post
Not tried that as I would have assumed they are pages which you change as opposed to adding them to a theme? Otherwise you could end up with the enitre website in a theme folder?


I believe that is the purpose of the new architecture, so you can keep the stock integrity of the store and override selected files in your theme folder.

Aaron
#15 Posted : Tuesday, June 2, 2015 10:24:16 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Originally Posted by: Steve95 Go to Quoted Post
...I would have assumed they are pages which you change as opposed to adding them to a theme? Otherwise you could end up with the enitre website in a theme folder?


Steve is correct. You can only override something that already exists. So, if you add a new ASPX page to your theme Pages folder it will not work unless that page already exists in the root. However, there's no point in overriding a page that you're adding since it's not altering stock BVC code.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
sternyy
#16 Posted : Tuesday, June 2, 2015 10:32:58 AM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
Maybe im getting confused. These are pages located in my root, like the error pages and custom pages. I'm not creating entirely new pages in my theme... rather copying ones that already exist like above, which would be altering stock code, correct?

I copied my custom.aspx and custom.aspx.vb to my theme pages folder and made a few changes. When I went to the site, it was still pulling from the root, not my pages folder in my theme.

So I looked at my error.aspx pages as well... Actually, it was already there from the upgrade Aaron. Anyways, I noticed the root error.aspx page and the theme>pages error.asxp were different. I should see my theme one correct?

Root error.aspx


<div class="main">
<div class="row">
<div class="small-12 columns">
<h1><asp:Literal ID="HeaderLiteral" runat="server"></asp:Literal></h1>
<div class="errorcontent">
<asp:Literal ID="ErrorContentLiteral" runat="server"></asp:Literal>
</div>
</div>
</div>
</div>



Theme>Pages error.aspx



<h1><asp:Literal ID="HeaderLiteral" runat="server"></asp:Literal></h1>
<div class="errorcontent">
<strong>The page you requested was not found, and we have a fine guess why.</strong>
<ul>
<li><asp:Literal ID="ErrorContentLiteral" runat="server"></asp:Literal></li>
<li>If you typed the URL directly, please make sure the spelling is correct.</li>
<li>If you clicked on a link to get here, the link may be outdated.</li>
</ul>


<H3>What can you do?</H3>
<p>Have no fear, help is near! There are many ways you can get back on track with MedSupplier.com.</p>
<ul>
<li>Use the search bar at the top of the page to search for your products.</li>
<li>Go to our homepage by <a href="/" title="MedSupplier.com">clicking here</a></li>
<li>Use the menu bar above to find the category or product you are looking for</li>
<li>Call customer service at 1-800-335-3774</li>
</ul>
</div>



http://www.medsupplier.com/error.aspx is pulling from the root error.aspx page, not the theme>pages error.aspx

Edited by user Tuesday, June 2, 2015 10:45:57 AM(UTC)  | Reason: confusion

sternyy
#17 Posted : Tuesday, June 2, 2015 12:12:12 PM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
OK so i did this on a fresh install as well. I copied my error.aspx and vb pages from my root to my theme's pages folder. I updated the inherits. I went on the site and it's still pulling from the root error.aspx page instead of my theme.

I changed cart.aspx in my theme and everything works with that page. Are there certain pages in the root that you can not put in the theme > pages folder?

I'm either overlooking something so minor my brain is about to explode!!!!!!
Aaron
#18 Posted : Tuesday, June 2, 2015 3:08:10 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Originally Posted by: sternyy Go to Quoted Post
Maybe im getting confused. These are pages located in my root, like the error pages and custom pages.
...
Are there certain pages in the root that you can not put in the theme > pages folder?

Error.aspx is a special page because it handles server errors. For this reason it cannot be overrided. There's really no reason to override Custom.aspx because we added templating in BVC 2013; just create a new template (or override an existing template in your theme).
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
 1 user thanked Aaron for this useful post.
sternyy
#19 Posted : Tuesday, June 2, 2015 3:10:15 PM(UTC)
sternyy

Rank: Member

Joined: 1/10/2005(UTC)
Posts: 714

Thanks: 14 times
Was thanked: 1 time(s) in 1 post(s)
Ok. Are there any other special pages? Just want to be educated ;)
Aaron
#20 Posted : Tuesday, June 2, 2015 4:04:45 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Originally Posted by: sternyy Go to Quoted Post
Ok. Are there any other special pages? Just want to be educated ;)

You also cannot override the SqlPatch.aspx page, though I can't imagine why you'd want to do this.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
 1 user thanked Aaron for this useful post.
2 Pages12>
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