company logo

Help center

Go to CartGenie
App DashboardCartGenie Website[email protected]
All collectionsWebflow Page DesignPages: Products, Checkout & ConfirmationStore Pages FAQHow to create & use multiple product page templates

How to create & use multiple product page templates

Your products are different, so their page designs should be too! Here is how....

By default, Webflow’s designer creates a single page template for each CMS collection. This means that all items within that collection (such as individual products) each have the same layout and page template – only the content such as images and text is typically different from one to the next.

But, there’s a workaround for this!

Step 1 - Add Template “Option” Field

Go to your CartGenie Products > Product Settings page

Product Settings

Add a new “Option” field and name it “Template” or whatever you prefer

Add values now for the different templates. You can name these specific names or you can use numbers to designate them. I’m going with 4 templates and I just named mine: “2, 3, 4”.

Note: I started with “2” because we’re going to assume the default template is “1”. We want this template to be a “catch-all” that will be applied to any product that doesn’t select a specific template.

info icon
Note: You won’t be able to add more values here later. So add as many templates you feel like you might want to create. We recommend keeping this within reason to reduce page load.

We recommend making it ‘not required’ so all your previous products will use the default “template 1”.

Click Create Field and now your template selector is ready to go.

Step 2 - Create the Templates

Go into Webflow and open your Products Template page.

If you haven’t done so already, we highly recommend using CartGenie’s designer extension to paste in the products page template so your page has all the necessary elements to function properly. See instructions below:

Creating your store pages in Webflow

How to create your product, checkout, and confirmation store pages in Webflow and connect them to CartGenie

Then, in your layers panel, duplicate the “cg-section” to match the total templates you created in the step above – in our case 4.

Your page will now show 4 duplicate product sections on the page.

info icon
Note: You can do these steps with any block on your site. It is easier if each template is wrapped in a parent div for organization, but you could display/hide individual blocks per template if you prefer as well.

Select the second section and in the style selector, add a new class named something like “tmp2” for template 2. Do this step for each section - changing the numbers for each template.

This will allow you to make changes to this section without affecting the previous section.
Note: You will need to add a class to each element you want to change or else it will affect your previous section as well.

Change up the design of each template as desired.

success icon
You can add multiple sections on the product template page below the primary CartGenie template. These can contain images and text to showcase features. You’ll want to create a custom field in CartGenie to fill in content for each of these blocks.

Step 3 - Conditional Visibility

When you’ve designed each section as you like, we need to set up the conditional visibility for each section so it only displays for products set to use that template.

Select the first section (the default “template 1”) and go to your layer settings and click the purple dot next to the Visibility section.

Add a condition to show element when the “Template” field “Is Not Set”

This will effectively make any existing product use this template so the value for the “Template” field for these products is currently blank.

Next, click on the second template section and do the same thing. But this time set it to be visible when “Template” Equals “2”

Do the same for each template section you’ve created. It is ok if you have more number values in your custom field than page templates currently. You can always add more layouts later to fill these in (just be sure not to use them until then).

Step 4 - Assign Templates to Products

In CartGenie, click into a product and go to “Additional Fields”. You’ll now see the “Template” dropdown here.

Select your preferred template for the product and be sure to publish it again.

Viewing your live site, you should now see the selected template on each product page!

Template 1:

Template 2:

Did this answer your question?
😞
😐
😁