Documentation You are here: start » v » 2.0 » snippets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v:2.0:snippets [2018/11/09 21:41] – [Cart Snippets] marijav:2.0:snippets [2022/09/19 10:45] (current) – [Email Receipt Snippets] adam
Line 13: Line 13:
   * [[v:2.0:shipping:custom_code|Custom Shipping Code]] - supports custom shipping code in the admin   * [[v:2.0:shipping:custom_code|Custom Shipping Code]] - supports custom shipping code in the admin
   * [[v:2.0:shipping#custom_shipping_endpoint|Custom Shipping Endpoint]] - for fetching shipping rates from your own shipping endpoint   * [[v:2.0:shipping#custom_shipping_endpoint|Custom Shipping Endpoint]] - for fetching shipping rates from your own shipping endpoint
 +  * [[./snippets/autoselect_first_shipping_rate|Automatically selecting the first returned shipping rate]]
   * [[./snippets/breaking_large_shipments_into_multiple|Breaking large shipments into multiple smaller packages]] - if you ship large weight products, use this snippet to break overweight shipments into smaller packages to return rates   * [[./snippets/breaking_large_shipments_into_multiple|Breaking large shipments into multiple smaller packages]] - if you ship large weight products, use this snippet to break overweight shipments into smaller packages to return rates
   * [[./snippets/dynamically_set_shipping_origin|Dynamically setting the shipping origin point for live rates]] - for changing the origin point for shipping calculations for the whole order   * [[./snippets/dynamically_set_shipping_origin|Dynamically setting the shipping origin point for live rates]] - for changing the origin point for shipping calculations for the whole order
Line 21: Line 22:
 ===== Add To Cart Snippets ===== ===== Add To Cart Snippets =====
  
 +  * [[./snippets/dynamic_product_total_with_multicurrency_support|Dynamic product add to cart totals with multicurrency support]] - to dynamically update your product listings total price as the customer changes options before adding to cart, along with automatically switching template sets and converting product prices to different currencies.
   * [[./snippets/updating_total_price_with_option_modifers|Update product page total price to include option modifiers]] - to dynamically update your product listings total price as the customer changes options before adding to cart   * [[./snippets/updating_total_price_with_option_modifers|Update product page total price to include option modifiers]] - to dynamically update your product listings total price as the customer changes options before adding to cart
   * [[./snippets/automatically_add_coupon|Automatically add a coupon to the customer's cart]]   * [[./snippets/automatically_add_coupon|Automatically add a coupon to the customer's cart]]
 +  * [[./snippets/date_picker_for_sub_startdate|Set subscription start date using datepicker]]
  
 ===== Cart Snippets ===== ===== Cart Snippets =====
Line 29: Line 32:
   * [[./snippets/add_empty_cart_button_to_the_cart|Add an Empty Cart Button to the Cart]] - Twig/jQuery code to add "Empty Cart" button to the cart/checkout (modify for cart only)   * [[./snippets/add_empty_cart_button_to_the_cart|Add an Empty Cart Button to the Cart]] - Twig/jQuery code to add "Empty Cart" button to the cart/checkout (modify for cart only)
   * [[./snippets/unapplied_coupon|Add a Message to Coupon Area for Unapplied Coupons]] - Customize the coupon area by adding a message that shows when a coupon was added but hasn't met the criteria for a discount yet. You can also style the coupon text with this snippet   * [[./snippets/unapplied_coupon|Add a Message to Coupon Area for Unapplied Coupons]] - Customize the coupon area by adding a message that shows when a coupon was added but hasn't met the criteria for a discount yet. You can also style the coupon text with this snippet
 +  * [[./snippets/hide_zip_code_entry_on_cart|Hide the Zip/Post Code Entry Input on the Cart]] -  Customize the cart area by hiding the input for postal code. This may be useful when you are only using one live shipping rate or don't want taxes or shipping to be calculated until the customer reaches the checkout.  
 +  * [[./snippets/hide_forms_links_before_page_load|Hide the add to cart forms and links before the page loads]] -  Customize the cart by hiding the add to cart form and link elements before the page loads. This prevents a user from adding anything to the cart before a webpage fully loads.
 ===== Checkout Snippets ====== ===== Checkout Snippets ======
  
Line 35: Line 39:
   * [[./snippets/dynamically_require_phone|Dynamically Require Phone Number]] - if you require the customer provide a phone number depending on their shipping country   * [[./snippets/dynamically_require_phone|Dynamically Require Phone Number]] - if you require the customer provide a phone number depending on their shipping country
   * [[./snippets/dynamically_require_taxid|Dynamically Require Tax ID]] - if you require the customer provide a tax id depending on their country   * [[./snippets/dynamically_require_taxid|Dynamically Require Tax ID]] - if you require the customer provide a tax id depending on their country
 +  * [[/integration/craftyclicks|Address Validation and Auto-Completion]] through CraftyClicks.
   * [[./snippets/checkout_upsells|Upsell modal on the checkout]] - to allow customers to quickly add additional products at checkout   * [[./snippets/checkout_upsells|Upsell modal on the checkout]] - to allow customers to quickly add additional products at checkout
   * [[./snippets/gift_wrapping_checkbox_on_checkout|Gift Wrapping checkbox on the checkout]], or other upsell / add-on items from the checkout   * [[./snippets/gift_wrapping_checkbox_on_checkout|Gift Wrapping checkbox on the checkout]], or other upsell / add-on items from the checkout
Line 51: Line 56:
   * [[./snippets/dynamic-custom-checkout-options|Dynamically populate custom checkout field options]] - Pull options for select, radio or checkbox form fields from an endpoint on your website   * [[./snippets/dynamic-custom-checkout-options|Dynamically populate custom checkout field options]] - Pull options for select, radio or checkbox form fields from an endpoint on your website
   * [[./snippets/vat_validation_using_apilayer|Dynamically validate VAT ID]] - Uses the Pre-Payment Webhook and Vatlayer to validate VAT ID's   * [[./snippets/vat_validation_using_apilayer|Dynamically validate VAT ID]] - Uses the Pre-Payment Webhook and Vatlayer to validate VAT ID's
 +  * [[./snippets/add_message_above_shipping_rates|Add a Message Above Shipping Rates]] - Add a message above shipping rates on the Checkout
 ===== Receipt Snippets ===== ===== Receipt Snippets =====
  
Line 56: Line 62:
   * [[./snippets/change_continue_category|Change the "Continue To" Button Based on Products in Cart]] - Will allow you to customize the URL and label of the "Continue To" button based on the category (or other conditions).   * [[./snippets/change_continue_category|Change the "Continue To" Button Based on Products in Cart]] - Will allow you to customize the URL and label of the "Continue To" button based on the category (or other conditions).
   * [[./snippets/add_link_to_receipt_category|Add a link to the web receipt based on item category]] - Add a link to the web receipt based on the category of items in the order   * [[./snippets/add_link_to_receipt_category|Add a link to the web receipt based on item category]] - Add a link to the web receipt based on the category of items in the order
 +  * [[./snippets/redirect_upon_receipt|Redirect the customer to a webpage upon order completion]] - Redirect the customer to a webpage instead of the Foxy receipt
 +
 +
 +
 +
 +===== Email Receipt Snippets =====
 +
 +  * [[./snippets/email_notifications_subscriptions|Email Notification for Subscriptions]] - if you require an email notification whenever there is a subscription event
 +  * [[./snippets/category_emails_excluding_products|Category-specific receipt emails only including matching category products]] - Send category-specific emails that only include items from specific categories.
 +
 ===== General Snippets ===== ===== General Snippets =====
  
   * [[v:2.0:template_sets|Enable Multiple Languages]] - to allow your store to display multiple languages   * [[v:2.0:template_sets|Enable Multiple Languages]] - to allow your store to display multiple languages
-  * [[./snippets/email_notifications_subscriptions|Email Notification for Subscriptions]] - if you require an email notification whenever there is a subscription event+

Site Tools