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:donation_on_checkout [2016/01/26 07:31] – [Add javascript] Fixed broken link jedv:2.0:snippets:donation_on_checkout [2017/04/26 07:02] (current) – external edit 127.0.0.1
Line 40: Line 40:
  FC.json.shipping_address.shipping_service_id = shipping_service_id;  FC.json.shipping_address.shipping_service_id = shipping_service_id;
  FC.checkout.render();  FC.checkout.render();
 + FC.checkout.getShippingOptions({address: FC.json.shipping_address});
   });   });
   });   });
Line 57: Line 58:
  FC.json.shipping_address.shipping_service_id = shipping_service_id;  FC.json.shipping_address.shipping_service_id = shipping_service_id;
  FC.checkout.render();  FC.checkout.render();
 + FC.checkout.getShippingOptions({address: FC.json.shipping_address});
   });   });
   }   }
Line 73: Line 75:
 </code> </code>
  
-You'll just need to modify the ''MODIFY THE PRODUCT LINK BELOW'' section to set the donation "product" as desired, the donation amount will come from the input you'll add in the next step. If your store is using [[https://wiki.foxycart.com/v/2.0/hmac_validation]], you'll just need to create that link and sign it (using the tool in the "sample code" section of the admin, if you don't have another way) and paste it in there as needed - ensuring the price field is encrypted as an open field. Make sure it's set to the appropriate category so it has the proper shipping and taxes applied to it.+You'll just need to modify the ''MODIFY THE PRODUCT LINK BELOW'' section to set the donation "product" as desired, the donation amount will come from the input you'll add in the next step. If your store is using [[https://wiki.foxycart.com/v/2.0/hmac_validation|link/form signing]], you'll just need to create that link and sign it (using the tool in the "sample code" section of the admin, if you don't have another way) and paste it in there as needed - ensuring the price field is encrypted as an open field. Make sure it's set to the appropriate category so it has the proper shipping and taxes applied to it.
  
 ==== Add HTML ==== ==== Add HTML ====

Site Tools