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
integration:foxycart:saved_cart [2012/10/08 22:09] – [Download] Download Link sparkwebintegration:foxycart:saved_cart [2017/04/26 07:02] (current) – external edit 127.0.0.1
Line 6: Line 6:
 name                           : Saved Cart #the name of the integration name                           : Saved Cart #the name of the integration
 description                    : Save the cart contents as a persistent cart between sessions. description                    : Save the cart contents as a persistent cart between sessions.
-tags_tags                      : cart, saved, persistent #tags, separated by commas. don't include the "system" here. +tags                           : cart, saved, persistent #tags, separated by commas. don't include the "system" here. 
-date_dt                        : 2012-10-08 #the date in YYYY-MM-DD format +date_dt                        : 2012-12-06 #the date in YYYY-MM-DD format 
-version                        : 1.#if you have a version for your code, enter it here+version                        : 1.#if you have a version for your code, enter it here
 developer_url                  : http://www.foxy-shop.com/ #if you'd like a link back to your site, stick it here developer_url                  : http://www.foxy-shop.com/ #if you'd like a link back to your site, stick it here
 ---- ----
Line 19: Line 19:
 //**Please note:**// //**Please note:**//
 The code on this page is submitted by members of the FoxyCart community, and may not verified by FoxyCart.com LLC in any way, shape, or form. Please double check the code before installing. If you need help with it please [[http://forum.foxycart.com/|post in our forum]], but if we cannot offer assistance (due to unfamiliarity with this particular system or language) we apologize in advance. The code on this page is submitted by members of the FoxyCart community, and may not verified by FoxyCart.com LLC in any way, shape, or form. Please double check the code before installing. If you need help with it please [[http://forum.foxycart.com/|post in our forum]], but if we cannot offer assistance (due to unfamiliarity with this particular system or language) we apologize in advance.
 +</WRAP>
 +
 +<WRAP important round>
 +//**Please note:**//
 +This code works with FoxyCart 1.0 and 1.1. It is not compatible with FoxyCart 2.0+.
 </WRAP> </WRAP>
  
Line 58: Line 63:
 ===== Requirements ===== ===== Requirements =====
  
-  * Unordered List ItemPHP Version 5.1.2 (only required if using validation)+  * PHP Version 5.1.2 (only required if using validation)
   * Tested with jQuery 1.8.2 -- should be fine with older versions   * Tested with jQuery 1.8.2 -- should be fine with older versions
   * Tested with FoxyCart 1.0 -- should be fine with 0.7+   * Tested with FoxyCart 1.0 -- should be fine with 0.7+
 +  * NOT compatible with FoxyCart 2.0
  
  
Line 76: Line 82:
 savedcart.js to avoid conflicts. You can also set debugging mode to "true" to see exactly what the script is doing savedcart.js to avoid conflicts. You can also set debugging mode to "true" to see exactly what the script is doing
 using console.log. using console.log.
 +
 +If using WordPress, this can be placed in your functions.php file for automatic inclusion in the footer:
 +
 +<code php>//Saved Cart
 +add_action('wp_enqueue_scripts', 'foxycart_saved_cart_script');
 +function foxycart_saved_cart_script() {
 + wp_enqueue_script('foxycart_saved_cart_script', get_bloginfo("stylesheet_directory") . '/savedcart.js', null, '1.0', true);
 +}</code>
  
 Have a question or found a bug? Feel free to write to David by using the contact form at http://www.foxy-shop.com/. Have a question or found a bug? Feel free to write to David by using the contact form at http://www.foxy-shop.com/.

Site Tools