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.