BigCommerce Stencil - Category Resource Depth - bigcommerce

I'm working on a store with 14,500 categories. It takes over 8 seconds to load the homepage.
I'm trying to limit the level of subcategories that are pulled in as a resource, thus dramatically decreasing the amount of data being loaded on each page bc I only need 1 level on the nav menu.
I don't see anything in the control panel, front-matter, or config file that would do this. I know this was in Blueprint, so I figured it would be in the config file but no luck.
Is this possible? Any ideas?

So I changed the store back to a Blueprint theme, and changed the category display setting to only show 1 level. Then switched back to my Stencil theme. Debugged the local JSON locally and that did the trick. Now the store is only loading 1 level deep of categories. I have no idea why this setting was overlooked in Stencil and not included in the config file.

Related

Slow loading of the categories page and the paginator of the products on the same page in question

this is a screen recording related to the issue: https://calip.io/U7eBbuDW#q1GpTStt.
Explanation of the problem:
Going to https://mcgroup.store/it/2-home, the page loading is very slow (it takes several seconds to load).
The CPU of the server where the site is hosted shoots at 100% and the memory also goes to high percentages when I load that page.
And the same thing also happens in the product paginator when I click on 1,2,3, etc. or on the arrow to move forward.
Before I do this page or paginator load, the server's CPU and memory levels are always at normal levels.
I've already tried clearing the cache and turning on automatic clearing, but nothing.
Same thing by activating the "special" caches.
Also all php settings requirements meet Prestashop's recommended requirements.
Contacting Prestashop support I was told that there is a problem in the "ybc_themeconfig" module that adds an Ajax tool to the product list.
How can I fix this problem?
I use Prestashop 1.7.8.5
To check if your slow loading is due to hosting performance or your Prestashop itself, try to switch back to the default Prestashop theme.
If i'm not mistaken your theme is 'Pro Business - Multipurpose Prestashop Theme '
Your theme has not adapted to Prestashop 1.7.8.5 contact the theme builder, if the issue is indeed your theme.

How to change in template through the Shopify application

I am trying to write a Shopify application and I want to add a section to the product page when the store owner installed my app. I tried this by adding a custom script tag in the shop template and this tag will load and inject my desired HTML into the page. It's work but it needs to force the store owner to change the product page template and its not user-friendly.
I see some apps in the Shopify app store that can change the product page after you install them without needs add any part to the product page template. How they do this work? I can't find the correct way in the Shopify documents.
You can change the Shopify theme of the shop using The API for Assets:
However as drip mentioned this is not a good idea:
If you change the theme auto-magically via code, you are looking for trouble. A lot of things can go wrong - simply you cannot cater for all themes and their changes over time! So you could possibly leave a broken page after the change. The e-shop owner won't be impressed! Actually a lot of the 1* reviews of apps are for that reason!
What would happen if the eshop owner removes your app? He won't know what code to remove.
So, most apps ask the user to add the app code. They provide detailed instructions of course.
Fyi, another problematic approach is the following:
Some apps may attempt to change the DOM "on the fly", by first locating an existing DOM element (a lot of theme-specific if statements to do that with any degree of success) and, then insert the app's DOM elements.
That's very messy and problematic as well, but at least you do not risk ruining the owner's theme files. In the worst case he can uninstall your app and he 'll be ok.

Bigcommerce Stencil Recently Viewed Items

I am trying to display recently viewed items in a Stencil theme, but am not able to get the data on the page. I am calling the following Front Matter attribute marked as global (available on all pages) here.
Stencil Docs example
recently_viewed: null Boolean indicating whether to display recently viewed products. No filtering available.
https://stencil.bigcommerce.com/docs/front-matter-variables
recently_viewed: true
When I inspect the JSON on the page by appending '/?debug=context' to my URL, there is no data containing recently viewed items.
Has anyone else successfully displayed recently viewed items on a page in stencil?
Thanks.
This feature is currently only working for logged in customers. If you are seeing this behave abnormally from that, please let us know. It does not have feature parity with Blueprint themes' sideproductrecentlyviewed.

Lazy load pages in PrestaShop?

By default, pagination in PrestaShop is available in every product page (displaying up to 10 items per page).
But according to my project requirements, I need a lazy loading page (only 10 products need to displayed before trying to scroll down the page). Does PrestaShop have this feature ?
This is not possible by default.
You have to create your own module or buy/use available product like:
Masonry All Products
Infinite Scroll for Prestashop
3. Answer by thepsyntist from https://www.prestashop.com/forums/
[...] I successfully implemented an infinite scroll module on
Prestashop 1.6.0.11 (A custom theme) and 1.6.1.0 (Default theme). I
found this module on GitHub a couple of months ago and finally today I
got success implementing it. Hence I have no direct link for it or
know who created it. Link to the module.
If you'd like to load images the same way, there is one another module.

a visual tool for upload status of file in BigCommerce

BigCommerce allows for product options that a user can upload a file to attach to an order (think a business card printer needs art files uploaded to the order)
Once a user selects all the options, and clicks add to cart, the page uploads the selected file along with the order details and takes you to the shopping cart. The time it takes for it to load depends on the weight of the files being uploaded.
Does anyone have a solution for having a visual tool for while a file is uploading, a percentage (either bar, or numbers) can be shown (or simply a "uploading images" overlay). People who are not familiar with the site think the page has frozen - they only realize when they let it upload - sometimes files can take up to 30 seconds to upload.
Im fairly proficient at CSS and HTML5 - if there are any solutions, please advise.
Thanks!
-Sebastian
In this case, you'd need to add HTML and CSS to create and style the loading bar. For the actual function of checking the upload status and displaying the progress, I'd suggest using jQuery with form plugin (uploadProgress function).
The necessary steps required to accomplish this will be a bit different in Bigcommerce than you'd see in this blog post, but it is explains it in a bit more depth with examples