I'm in urgent need of assistance with an error on something I need to deploy next week. I've just set up a complicated product that is basically a very large bundle (customize your own set). I'm looping in data from many other products in one big form and I've run into the 414 URI length limit. I searched the forum for previous references to this problem, and found both of these threads:https://forum.foxycart.com/discussion/761/ajax-style-form-submissionhttps://forum.foxycart.com/discussion/8275/414-request-uri-too-large
I have attempted to implement the solution discussed in the first thread, and I've got it to successfully add the bundle product to cart without the 414 error. But the problem I'm running into now is that the sidecart and other json elements on the product page break when I put this solution in place. I understand that this fix was designed for FC 0.6.0, which is ancient now, and I'm using FC 2.0.
Here's the code I'm using for this at the very end of the footer, right before the closing tag:
// Fix the form action for users with 3rd party cookies disabled
action = jQuery('form.foxyshop_product').attr('action') + '?' + fc_AddSession();
On page load, the following Javascrip error shows in the console: "Uncaught ReferenceError: fc_AddSession is not defined". Looking at the source I also notice that despite my every attempt to load this script block after all other scripts, it appears that the following script and stylesheet links always load after it as the appended elements before the closing body tag:
<link rel="stylesheet" media="screen" href="//cdn.foxycart.com/vtdev2/responsive_styles.1479488741.css">
So it seems that the "fc_AddSession is not defined" error may be breaking the sidecart. Clicking on the view cart link on page only directs to the full page cart. My view cart link widget on this page is also not displaying the json data of the cart items count as it should. Other product pages where I don't load this script have no problems.
Is there a better way to accomplish this in FC 2.0, or at least a way to make this really old fix work in 2.0 without breaking the sidecart and other things? Please let me know as soon as possible. Thanks so much for your help!