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:custom_live_rate_endpoint [2015/10/23 13:31] adamv:2.0:snippets:custom_live_rate_endpoint [2017/04/26 07:02] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Custom Live Rate Endpoint ====== ====== Custom Live Rate Endpoint ======
 +
 +<WRAP center round important 90%>
 +**This snippet has been replaced.** In place of the following snippet, we now have [[v:2.0:shipping#custom_shipping_endpoint|a custom shipping endpoint]] feature in FoxyCart 2.0 that allows you to provide custom rates to your customers without needing to add custom javascript to change the way the checkout works. Please use the custom shipping endpoint instead of this snippet. This page will remain for reference.
 +</WRAP>
  
 If you have requirements outside of the live shipping rate integrations that FoxyCart currently has, whether to make use of a specific shipping carrier, or make use of functionality that we don't current support, you can use the following snippet to roll your own endpoint. If you have requirements outside of the live shipping rate integrations that FoxyCart currently has, whether to make use of a specific shipping carrier, or make use of functionality that we don't current support, you can use the following snippet to roll your own endpoint.
Line 89: Line 93:
 ==== Step 2: Add javascript ==== ==== Step 2: Add javascript ====
  
-Add the following in the “footer” section of the template configuration's “inject custom code” option in your store's FoxyCart administration.+Add the following in the “custom footer” field of the [[https://admin.foxycart.com/admin.php?ThisAction=TemplateConfig|template configuration]]'s “Add custom header and footer code to your templates” option of your store's FoxyCart administration.
  
 <code javascript>{% if context == 'cart' or context == 'checkout' %} <code javascript>{% if context == 'cart' or context == 'checkout' %}

Site Tools