Search the Community
Showing results for tags 'ajax form'.
-
Hello, I come to you to see if anyone is how the scroll Stope at some point. I joined the js code, in hope to have your help thank you in advance cordially $(document).ready(function () { var $orderSummaryEl = jQuery("#scroll"); if ($orderSummaryEl.length) { var offset = jQuery("#scrollingPanelContainer").parent('.row').offset(); //var maxTopOffset = jQuery("#scrollingPanelContainer").parent('.row').outerHeight() - 35; var maxTopOffset = jQuery("#scrollingPanelContainer").parent('.row'); var topPadding = 15; jQuery(window).resize(function() { offset = jQuery("#scrollingPanelContainer").parent('.row').offset(); //maxTopOffset = jQuery("#scrollingPanelContainer").parent('.row').outerHeight() - 35; maxTopOffset = jQuery("#scrollingPanelContainer").parent('.row'); repositionScrollingSidebar(); }); jQuery(window).scroll(function() { repositionScrollingSidebar(); }); repositionScrollingSidebar(); } function repositionScrollingSidebar() { if (jQuery("#scrollingPanelContainer").css('float') != 'left') { $orderSummaryEl.stop().css('margin-top', '0'); return false; } var heightOfOrderSummary = $orderSummaryEl.outerHeight(); var newTopOffset = jQuery(window).scrollTop() - offset.top + topPadding; if (newTopOffset > maxTopOffset - heightOfOrderSummary) { newTopOffset = maxTopOffset - heightOfOrderSummary; } if (jQuery(window).scrollTop() > offset.top) { $orderSummaryEl.stop().animate({ marginTop: newTopOffset }); } else { $orderSummaryEl.stop().animate({ marginTop: 0 }); } } });
-
We need to automatically bypass the "complete order" button in the "viewcart.tpl" and pass the clients to the payment page. The reason we do that is we have a AJAX form and in the product configuration we capture any data we need (name, and email) and by using a script we pass those to the 'viewproduct.tpl'. The rest of the products have a demo value so we basically don't need the client to do the clicking two times 1) In the configureproduct.tpl for add to cart 2) In the viewcart.tpl for the "complete order" If anyone has a suggestion how to automatically place the order right after "add to cart" that would be great. Also, please be advised our clients can only choose one product so that's why we want to complete the order and forward them to the payment page right after they press "add to cart" .. we have renamed our add to cart to "buy now" to make more sense for the client.
-
- ajax form
- ajax order form
-
(and 2 more)
Tagged with: