Pippo3000 Posted May 24, 2011 Share Posted May 24, 2011 folks, I am offering drop shipping i.e. supplier delivers directly to my customer. usually I offer gift wrapping. now I realized that gift wrapping can obviously not offered for drop shipping through my supplier. of course I can add a note like amazon that the item is shipped in original packaging and gift wrapping is not an option. but what if a customer nonetheless checks the giftt wrap tick box?soo is there a possibility to dsable gift wrapping for specific items in the cart?phil Link to comment Share on other sites More sharing options...
shokinro Posted May 24, 2011 Share Posted May 24, 2011 I think you will need to do some coding to implement this.there are two ways1. Put those product that can not offer warping in one category. Then at checkout, hide the gift wrapping checkbox if the all product at non-gift-wrapping product.2. use one field of product that you are current not using, for example, reference (or any other filed) to indicate non-gifti-wrapping products. Then at checkout, hide the gift wrapping checkbox if the all product at non-gift-wrapping product.About is just an idea for your reference Link to comment Share on other sites More sharing options...
Pippo3000 Posted May 25, 2011 Author Share Posted May 25, 2011 I think you will need to do some coding to implement this.there are two ways1. Put those product that can not offer warping in one category. Then at checkout, hide the gift wrapping checkbox if the all product at non-gift-wrapping product.2. use one field of product that you are current not using, for example, reference (or any other filed) to indicate non-gifti-wrapping products. Then at checkout, hide the gift wrapping checkbox if the all product at non-gift-wrapping product.About is just an idea for your reference hmmm. coding you say? would this be able in v1.4. without coding?if coding, I would probably go for your option 2. so I understand I needed to use one of the field and enter something like 'nowrap'. then in the checkout there would be some coding like 'if field = nowrap then disable giftwrap checkbox'? is that correct?phil Link to comment Share on other sites More sharing options...
shokinro Posted May 25, 2011 Share Posted May 25, 2011 use one of the field and enter something like ‘nowrap’. then in the checkout there would be some coding like ‘if field = nowrap then disable giftwrap checkbox’? is that correct? Yes, you are correct. I that is very simple change.Only change in theme file. Link to comment Share on other sites More sharing options...
Pippo3000 Posted May 25, 2011 Author Share Posted May 25, 2011 I that is very simple change.Only change in theme file. 'simple' and 'only' are relative here :-). for me it is simple to open e.g. a tpl file. anything else is far away frm simple... so no idea what needs to be done. but thanks anyway. maybe someone comes across this post and can post some instructions? thx!phil Link to comment Share on other sites More sharing options...
shokinro Posted May 25, 2011 Share Posted May 25, 2011 if you can tell me which field you are going to use as non-wrap indicator. then I can post some detailed code to help you out.You also need to tell me if there are mixed products in cart, what will you do? Link to comment Share on other sites More sharing options...
Pippo3000 Posted May 25, 2011 Author Share Posted May 25, 2011 if you can tell me which field you are going to use as non-wrap indicator. then I can post some detailed code to help you out.You also need to tell me if there are mixed products in cart, what will you do? Let's pick the EAN code field for now. And yes mixed products will be an option. If mixed products are selected I would still offer gift wrapping for those i ship directly with a note that the others - drop shipped and identified via ean code field - will shipped without gift wrap. So gift wrap should then be enabled if mixed. If that is too difficult to realize then disable gift wrapping completely also for mixed. TiaPhil Link to comment Share on other sites More sharing options...
shokinro Posted May 25, 2011 Share Posted May 25, 2011 I assume you are using PrestaShop 1.3.2.3 as indicated in your signature.Please set ean13 to 1 for those offer wrapping, and set eam13 to 0 for those does not offer wrapping.then replace following file in your site with attached order.php YourSiteRoot/order.phpAfter that, it should work as your required. order.php Link to comment Share on other sites More sharing options...
Pippo3000 Posted May 26, 2011 Author Share Posted May 26, 2011 I assume you are using PrestaShop 1.3.2.3 as indicated in your signature.Please set ean13 to 1 for those offer wrapping, and set eam13 to 0 for those does not offer wrapping.then replace following file in your site with attached order.php YourSiteRoot/order.phpAfter that, it should work as your required. wow, a complete file. THANKS! will check it asap, needto do some backups before...EDIT just checked your code. Not that it says much to me :-) but I realized that I was too fast to tell you to take the ean13 field as identifier. learned that google merchant center nowadays needs that code. so I need to take another field. possibly the one that is called location, right under the ean13 field. now checking your code I see only one reference to the ean13:if($product['ean13'] == '1')$wrappings = $wrappings + 1; would this mean that I 'just' need to replace the 'ean13' in that code line with the new reference 'location' and I'm done?phil Link to comment Share on other sites More sharing options...
shokinro Posted May 27, 2011 Share Posted May 27, 2011 would this mean that I ‘just’ need to replace the ‘ean13’ in that code line with the new reference ‘location’ and I’m done? I think so, but please note. location is not Location. non capital one.good luck Link to comment Share on other sites More sharing options...
Recommended Posts