Webshop

On this page

Overview

The webshop contains groups, products, campaigns and customers. Each section has common snippets, drops and examples of useage. These are useful for when you're building a webshop.

A webshop doesn't neccessarily always sell products, sometimes a webshop will be used to just display the products like a catalog. 

 


Templates

Name Description
products.ws All products in webshop
products.alt.ws All products in webshop for pagination
products.single.ws Single product page
groups.single.ws All products in a single webshop group/category
groups.single.alt.ws All products in a single webshop group/category for pagination
cart.ws Cart page
checkout.ws Used for confirming payment and order
complete.ws Page for when user has completed order
customer.invitation.ws Page where invited customers can create profile in webshop
customer.login.ws Page where users can log in to the webshop
customer.lost_password.ws Page where user enters email to receive a "change password email"
customer.reset_password.ws Page where user change password 
customer.profile.ws Customer profile. Used for customer information and order history
customer.register.ws Page where users can sign up to webshop
customer.verification.ws Page where signed up users confirm their email
invoice.ws Template for invoice

 


Invoice.tpl

Name Description
site Current site
locale Order locale
store Current store
order The order
customer Order customer. Some fields will be nil if it is a guest customer.

 

Helpers 

Disable button on click

Adding the attribute data-disable-with to a button will disable it after clicking, preventing users from double clicking. The button's content will be replaced with the attribute's value.

Example:

<button type="submit" data-disable-with="Loading...">To Checkout</a>

This helper is only available for WM3 sites with the webshop module.

Updated: 2020-11-17