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/08/06 04:06] – [Checkout Snippets] adamv:2.0:snippets [2022/09/19 10:45] (current) – [Email Receipt Snippets] adam
Line 11: Line 11:
 ===== Shipping Snippets ===== ===== Shipping Snippets =====
  
-  * [[v:2.0:snippets:live_rate_shipping_modification|Live Rate Shipping Modification]] - for altering returned live rates +  * [[v:2.0:shipping:custom_code|Custom Shipping Code]] - supports custom shipping code in the admin 
-  * [[./snippets/flat_rate_shipping_modification|Flat Rate Shipping Modification]] - for creating custom tiered flat rate shipping costs +  * [[v:2.0:shipping#custom_shipping_endpoint|Custom Shipping Endpoint]] - for fetching shipping rates from your own shipping endpoint 
-  * [[./snippets/remove_usps_day_timeframe_label|Remove USPS day timeframe from rate name]] - for changing "USPS Priority Mail 2-Day Small Box" to "USPS Priority Small Box" +  * [[./snippets/autoselect_first_shipping_rate|Automatically selecting the first returned shipping rate]]
-  * [[./snippets/custom_live_rate_endpoint|Custom Live Rate Endpoint]] - for fetching shipping rates from your own shipping endpoint+
   * [[./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/shipping_set_by_product_attributes|Setting the shipping total through product attributes]] - paired with the flat rate shipping modification snippet allows you to set shipping on the individual products 
   * [[./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
   * [[./snippets/locations_modfication|Locations Modification]] - for performing dynamic filtering of the countries and states available in the checkout   * [[./snippets/locations_modfication|Locations Modification]] - for performing dynamic filtering of the countries and states available in the checkout
Line 24: 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 31: Line 31:
   * [[/snippets/misc_cart_and_checkout/removing_paypal_from_the_cart|Removing PayPal Button From Cart]] - css code to hide the "Checkout With PayPal" button from the cart   * [[/snippets/misc_cart_and_checkout/removing_paypal_from_the_cart|Removing PayPal Button From Cart]] - css code to hide the "Checkout With PayPal" button from the cart
   * [[./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/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 37: 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 52: Line 55:
   * [[./snippets/add_empty_cart_button_to_the_cart|Add an Empty Cart Button to the Cart and Checkout]] - Twig/jQuery code to add "Empty Cart" button to the cart/checkout (modify for checkout only)   * [[./snippets/add_empty_cart_button_to_the_cart|Add an Empty Cart Button to the Cart and Checkout]] - Twig/jQuery code to add "Empty Cart" button to the cart/checkout (modify for checkout only)
   * [[./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/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 57: 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