How to clone and customise products section in marketing emails
I am trying to clone & customise default "Products" section in marketing emails. Instead of prices, we wish to show reward points which is a custom field in Products object.
I copied @hubspot/growth/sections/products.html file and paste code in /growth copy/sections/products.html file, but it wouldn't allow me publishing changes, and there are 46 errors.
I am pretty new to HubSpot development. Can someone please shed some light for me?
Okay, I guess you created a module in your child theme and the copy pasted the section's code in there but it doesn't work like that in HubSpot. Modules are not templates. They are the atomic part of the theme which means you can use a module in any section and templates but you can not use sections and templates in a module and definitely cannot convert a module into a section by setting template type to section. First, you need to create a module and then create a section and call the module in that section.
You cannot use {% dnd_tags %} in modules as well. Below I have attached some articles/docs which will help you. Also, I would recommend checking HubSpot for Developers 2 certification lectures if you want to understand HubSpot themes in detail.