Routing

Vanilo Cloud offers a few typical routes out of the box, ie URLs that retrieve specific data and render certain views from your Shop Repository.

List of Routes

URL Path Example URLs HTTP Method Route Name View
/ myshop.com GET shop.home shop::home
(home.blade.php)
/c/{taxonomy}/{taxon} myshop.com/c/category/phones
myshop.com/c/brand/samsung
GET shop.taxon.show shop::taxon.show
(taxon/show.blade.php)
/c/{taxonomy}/{parent}/{taxon} myshop.com/c/category/phones/feature
myshop.com/c/regions/bordeaux/st-julien
GET shop.taxon.show.with-parent shop::taxon.show
(taxon/show.blade.php)
/p myshop.com/p
myshop.com/p?color=red&doors=2
GET shop.product.index shop::product.index
(product/index.blade.php)
/p/{product} myshop.com/p/ducati-monster-2021 GET shop.product.show shop::product.show
(product/show.blade.php)
/t myshop.com/t GET shop.taxonomy.index shop::taxonomy.index
(taxonomy/index.blade.php)
/t/{taxonomy} myshop.com/t/categories
myshop.com/t/wine-regions
GET shop.taxonomy.show shop::taxonomy.show
(taxonomy/show.blade.php)
/info/{slug} myshop.com/info/terms-and-conditions
myshop.com/info/return-policy
GET info shop::info/$slug
(info/$slug.blade.php)
/cart myshop.com/cart GET shop.cart.show shop::cart.show
(cart/show.blade.php)
/checkout myshop.com/checkout GET shop.checkout.show shop::checkout.show
(checkout/show.blade.php)

Route Input & Output

Each specific route accepts specific input (parameters, queries or HTTP payload) and offers a specific output like rendering a view with variables injected or redirecting to another URL.

Show Taxon

Show Taxon with Parent

List of Taxonomies

Show a Single Taxonomy

List of Products

Show a Single Product

Info Pages (Custom Content)

Show Cart

Add Product to Cart

Update Cart Item

Delete Cart Item

Show Checkout

Submit Checkout