MODULES
...
eCommerce
Subscriptions
List View
5 min
this view allows you to display available subscription products for customers to browse through introduction the subscriptions list view displays a list of subscription products like other list views, it can be sorted and filtered via liquid this is slightly different from the user subscriptions list view in the secure zones module this can be used to display a list of subscription orders belonging to a user learn more here outputting a list view you can use the type parameter to output a list layout in most liquid files {% include "module", id "14/subscription" item ids subscription id type "list" layout 'my layout' %} file structure subscription layouts can be found at the path layouts/modules/module 14/subscription within this folder, you can create a folder for each layout each layout folder can contain a further "list" folder containing the wrapper and item files it needs developing the list layout the wrapper the wrapper liquid file should be used to add any html structure you may require around your main list you must include the following liquid, which will in turn loop over the items and output the item liquid file for each subscription item most fields are specific to the item and will only be available inside the item liquid file {% include 'modules/siteglide ecommerce/ecommerce/get/get subscriptions' item layout 'item' %} fields subscription fields {{this}} output all fields as json {{this id}} {{this weighting}} {{this release date}} {{this expiry date}} {{this\['description']}} {{this\['interval']}} {{this\['interval count']}} {{this full slug}} url for the product detail page {{this\['secure zones']}} array containing the ids of secure zones associated with this subscription {{this price id}} {{this price currency}} {{this price price charge}} the chargeable price of this subscription each interval integer format {{this price price display}} a field for displaying a secondary price of your choice, e g recommended retail price this is not used by the integration integer format {{this price currency symbol}} {{this price price charge formatted}} the chargeable price of this subscription each interval currency format {{this price price display formatted}} a field for displaying a secondary price of your choice, e g recommended retail price this is not used by the integration currency format subscription order fields you'll see when developing a subscription detail page that when the user is logged in, it is also possible to access fields relating to a subscription order the user has made for that subscription product already this is not currently available on the list view as the list view is designed as a way to browse subscription products to allow the user to view and manage their subscription orders, we recommend the user subscriptions view