Skip to content
English
  • There are no suggestions because the search field is empty.

Creating permalinks

Add to cart and send to checkout via permalinks

You can use the following links to add variants directly into the Nyla cart

  • /cart/variant_id?storefront=true will add one unit of the chosen variant id to the cart.
  • /cart/variant_id:quantity?storefront=true will add the designated quantity of the chosen variant id to the cart.
  • /cart/variant_id:quantity,other_variant_id:quantity?storefront=true will add to the cart both variants in the required quantity.

You can use the following links to make users go to the checkout page with the provided variants

  • /cart/variant_id will take the user directly to the checkout with one unit of the chosen variant id.
  • /cart/variant_id:quantity will take the user directly to the checkout with only the selected variant_id in the requested quantity.
  • /cart/variant_id:quantity,other_variant_id:quantity will take the user directly to the checkout with both variants and with the requested quantity.

If you want to have the cart automatically open when a customer lands on your homepage, you can add either of the following to your URL: 

/cart to your homepage

or ?cart_open=true to any page. However one thing to note is that the site will redirect to the homepage after the cart has opened.