Hi,
How can I access the field the I created in Settings>Ecommerce> Products fields in \Files\Templates\Designs\Rapido\eCom\ProductList\Blocks\ViewGrid.
I will use the added field as a condition to display something.
Thanks,
Junix
Hi,
How can I access the field the I created in Settings>Ecommerce> Products fields in \Files\Templates\Designs\Rapido\eCom\ProductList\Blocks\ViewGrid.
I will use the added field as a condition to display something.
Thanks,
Junix
Hi Junix
In the ProductListFeed.cshtml all the data for the list is generated. You have two options. Either use Hanldebars in the ViewGrid template to locate the exact field you need by looping through the "CustomFields". The other solution is to make a new property in the ProductListFeed.cshtml that just contains the field you need. To do this, you will need to create both a custom "ViewGrid" template and a custom "ProductListFeed" template. I think this will be the best solution of the two.
In the next Rapido release (Rapido 3.2) you will have many more Blocks available on the grid view, and this should make it easier to do what you want here.
These may also help you:
https://doc.dynamicweb.com/rapido/development/blocks/example-4-product-list
https://doc.dynamicweb.com/rapido/development/development/rapido-javascript-ajax#sideNavTitle1-1-1
Best regards
Karsten Thuen
You must be logged in to post in the forum