buvezduvin Posted June 3, 2011 Share Posted June 3, 2011 Hello everbody, I'm French and I'm selling my wines online (largely thanks to you all) I have three delivery modes: one by transporter, a mode with different outlets and the last is store_pickup_version1.3 (spu). My problem is that a number of customer orders with recovery in the store (without shipping cost) but will pick up their orders after 3 months (paid ordering). Level inventory management it became complicated when I added a message 'availability of the order for maximum one month', but that does not change much. So I installed the contrib 'Shipping Date Chooser' (http://addons.oscommerce.com/info/6178) works very well and allows me to set a minimum date after the order (to prepare), but mostly a maximum date (for me 30d). My goal now is to open a div to appear this choice of date but only when the store_pickup is selected, and if possible without reloading the page. And I must also put a condition to force the client to enter a date to continue his order if he wants to recover the order at the domain. Is it feasible (especially the opening of the div)? Do you have any other ideas? I found this code on the French forum which can help for the condition; ((post of xaglo) function isArray (obj){ return (typeof(obj.length)=="undefined") ? false : true; } function check_form() { var error_message = "<?php echo JS_ERROR; ?>" + "<?php echo JS_CHOOSE_SHIPPING_METHOD; ?>"; if (isArray(document.checkout_address.shipping)) { for (i = 0; i < document.checkout_address.shipping.length; i++) if (document.checkout_address.shipping[i].checked) return true; alert(error_message); return false; } else { document.checkout_address.shipping.checked=true; return true; } } juste avant la ligne 190 //--></script> et tu cherches ligne205 <td width="100%" valign="top"><?php echo tep_draw_form('checkout_address', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . tep_draw_hidden_field('action', 'process'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> que tu REMPLACES par <td width="100%" valign="top"><?php echo tep_draw_form('checkout_address', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'post', 'onSubmit="return check_form();"') . tep_draw_hidden_field('action', 'process'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> et tu ajoutes le define (JS_CHOOSE_SHIPPING_METHOD) dans le fichier de langue Can someone help me? Quote MS2 fr, ~35 contrib. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.