New Arrival Products
Add a gallery of new arrival product to the homepage for customers who might like to see what you've recently added to your inventory.
Before you start this tweak, it's a good idea to run through our preparation checklist below:
- Read through the Getting Started to get a better sense of how the Control Panel, Database and Front End store interact.
- Learn our recommended Simple Workflow. This makes the implementation process as easy as possible.
- Create a new Staging Theme for this tweak. This allows you to preview any changes before they are visible to live customers.
- The code snippet in this tweak doc uses Bootstrap 4, you may need to alter this code depending on what version of Bootstrap your theme is using. You can find out what version your theme is using here.
Note: This function is displaying your 4 most recent products. So if the most recent product addition was 6 months ago, it will still be the "Newest Arrival".
Step 1: Open the homepage template
The homepage template can be found here
Step 2: Add the code into the template
Paste the following code into the home page template where you would like the element to appear. This is most commonly placed below the banner:
<!-- New Arrival Products --> [%thumb_list type:'products' template:'' filter_category:'' sortby:'new_arrivals' limit:'4'%] [%param *header%] <section class="row products-row" aria-label="New Arrival Products"> <div class="col-12 text-center my-3"> <h2 class="mb-0">New Arrivals</h2> </div> [%/param%] [%param *footer%] </section> [%/param%] [%/thumb_list%]
Customising this Section
More information on how to customise this section can be found within the Thumb List Documentation.