AbleCommerce Forums
»
AbleCommerce
»
Content Management System
»
9.0.7 Right Sidebar Page Layouts not rendering Correctly Small Device
Rank: Advanced Member
Groups: Authorized User, Registered, Developers, HelpDesk Joined: 11/30/2018(UTC) Posts: 86
Thanks: 8 times Was thanked: 1 time(s) in 1 post(s)
|
We recently launch another website into production and found issues with the Right Sidebar widget in Page Layouts when using on a small device. The behavior we have is when rendering on a small device, the Right Sidebar ( Shipping Estimator) stays into a fix position and does not drop below the basket which makes the page messy and unusable. We have another Production site where this is not an issue and had allowed us to debug this in a live browser to see what was different when the code executes. Here is what we found: New Production site rendering Quote:<div class="container-fluid"> <div class="row content"> <div class="column col-md-9 main-content col-xs-9 col-sm-9"> </div> <div class="column col-md-3 right-sidebar col-xs-3 col-sm-3"> </div> </div> </div> If we change the class columns to this: Quote:<div class="container-fluid"> <div class="row content"> <div class="column col-md-9 main-content"> </div> <div class="column col-md-3 right-sidebar"> </div> </div> </div> The basket page now renders correctly when using on a small device. The shipping estimator or other widgets being used in the Right Sidebar fall below the basket correctly. As a note this behavior is there whether you are using class="container" or class="container-fluid". Also note that we have another production site where this is not an issue, but is an issue on its Dev site which is why we did not catch this until after we launched another new Production site. I'm looking to see if someone from AC can point me in the right direction for a fix as I cannot find what page drives this layout page in the Right Sidebar that needs to be modified, so the code renders correctly. This may even be a possible bug. Any help would be greatly appreciated. Thanks again.
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Registered, Developers, HelpDesk Joined: 11/30/2018(UTC) Posts: 86
Thanks: 8 times Was thanked: 1 time(s) in 1 post(s)
|
After looking deeper we see that in our older production site the RightSidebar.cshtml file shows a date of 4/25/2019 and there are several other pages that are no longer in the directory as of the latest build, indicating that there was some cleanup done in a earlier update. This site again, all is working correctly on small screens.
Looking into the latest build which we used their full version, when downloading it from Able on 12/02/20222 (9.0.7-b7369) and the check sum matched per instructions before using it. After checking the Views>Shared>Outer>RightSidebar.cshtml we see now this file changed on 9/30/2022 which is probably from the build itself.
I've tried to update the page RightSidebar.cshtml in the Outer directory but it defaults back to the old version. I've also tried manually changing the Right Sidebar through the Page Layouts in the Admin and it reverts back to the old version as I listed in my above post.
So trying to understand what controller is driving this page?
Once again no customization's have been done to the back end of this new production site other than some look-n-feel.
Any feedback would be great!
Thanks again.
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 2/17/2019(UTC) Posts: 909
Thanks: 3 times Was thanked: 15 time(s) in 15 post(s)
|
The problem when trying to troubleshoot something like this is that one does not have access to your server, and I don't know what files are located where?
For instance, you say that the top part does not work, but the top part does specifically more conditions for small devices where the bottom code does not.
Could the main contact class be overridden because you are specifically specifying media queries at this level?
Unless necessary, bootstrap should do all the media queries for you. Remember that if you have the same class in your custom theme CSS, it will override everything else. This is why it's difficult for someone outside your organization to troubleshoot this because we don't know what files are located where?
I would recommend the following:
Go to the server where everything is working and create a test page. In the HTML of the test page enter the code that doesn't work and see what happens on that server.
Go to the server where it's not working and do the same thing, but this time enter the code that is working and again see what happens.
This feels like you have a file that's overriding everything else. We try not to override the built-in media queries unless absolutely necessary, and in our case, we are making certain block elements invisible.
Congratulations on troubleshooting your website on a small device, so many others do not, and they don't think it's important yet Google ranks this even higher when it comes to SEO than desktop optimization.
Looking forward to the result.
-Ray
|
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
Content Management System
»
9.0.7 Right Sidebar Page Layouts not rendering Correctly Small Device
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close