Documentation You are here: start ยป snippets

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
snippets:start [2012/08/08 07:42]
foxyfred
snippets:start [2015/06/18 11:36] (current)
foxybrett
Line 7: Line 7:
 Please note that advanced manipulation of the cart or checkout via javascript is //not supported// by FoxyCart, and //you can break things// causing lost orders, errors, and global catastrophe. The links here are provided for reference, and they very likely //will not work// without tinkering requiring at least intermediate javascript knowledge. Please note that advanced manipulation of the cart or checkout via javascript is //not supported// by FoxyCart, and //you can break things// causing lost orders, errors, and global catastrophe. The links here are provided for reference, and they very likely //will not work// without tinkering requiring at least intermediate javascript knowledge.
 </​note>​ </​note>​
 +
 +<WRAP center round important 60%>
 +**Are you using FoxyCart version 2.0?** Due to a complete revamp of the javascript in version 2.0, none of the below snippets will work in the new version. See [[v:​2.0:​snippets|this page]] for snippets for 2.0.
 +</​WRAP>​
  
 ===== Shipping Snippets===== ===== Shipping Snippets=====
  
 <WRAP center round important 60%> <WRAP center round important 60%>
-Note that applying javascript shipping modifications using either live or flat rates where you are setting custom values has been found to not work as expected for subscription based products where you need the shipping to apply to each subscription renewal. ​We are currently working on a fix for this issue for version ​0.7.2++**Versions 0.7.1 and older**: ​Note that applying javascript shipping modifications using either live or flat rates where you are setting custom values has been found to not work as expected for subscription based products where you need the shipping to apply to each subscription renewal. ​fix is in place for versions ​0.7.2 and newer.
 </​WRAP>​ </​WRAP>​
 +
 +<wrap important>​Custom shipping snippets do not work for subscriptions.</​wrap>​ The reason for this is because the snippets are done as Javascript modifications and run in the browser, while subscriptions run completely on the server side and never touch the browser. Subscriptions will always calculate shipping on the server side based on how the category is configured.
  
 ---- datatable ---- ---- datatable ----
Line 20: Line 26:
 sort    : ^category sort    : ^category
 ---- ----
- 
  
  

Site Tools