In SSL enabled magento site, Ajax Add to cart not adding product to cart until refresh the page manually -
We are using a template that adds to the functionality of the Ajax Cart.
It was working fine for us before, but after enabling the SSL certificate, add the product to the Ajax carriage and add it to the cart. Stay on Bus Loading
Add to Ajax Cart Code
& lt; Script type = "text / javascript" & gt; // & lt ;! [Cdata [var productadoortorm = new variation ('product_actocart_off'); ProductAddToCartForm.submit = function (button, url) {if (this.validator.validate ()) {var form = this.form; Var oldUrl = form.action; If (URL) {form.action = url; } Var E = Null; Try {This.form.submit (); } Hold (e) {} this.form.action = oldUrl; If (e) {throw e; } If (button and button! = 'Undefined') {button.disabled = true; }}}. Bind (ProductAdochotartform); ProductAddToCartForm.submitLight = Function (button, url) {if (this.validator) {var nv = Validation. Methods; Delete Validation. Method ['required-entry']; Delete Validation. Method ['valid-one-required']; Delete Validation. Method ['valid-one-required-to-name']; // Extract customized data validation for validation. (If method is the filename.}} If (this.validator.validate ()) {if (url) {this.form.action = url;} this.form.submit ();} object.extension (validation method, nv );}} .bind (ProductAdochotform); //] & gt; & lt; / script & gt;
Comments
Post a Comment