Rafael VIana Posted October 7, 2016 Share Posted October 7, 2016 Hi, I'd like to know if is it possible to configure PS to only show the most cheaper carrier? That's because I don't want my customers select the others carriers if they are more expensive than the others Thanks Link to comment Share on other sites More sharing options...
rocky Posted October 8, 2016 Share Posted October 8, 2016 Look for the following at about line 63 of order-carrier.tpl in your theme: {foreach $option_list as $key => $option} and change it to: {foreach $option_list as $key => $option} {if $option.is_best_price} and the following at about line 259 from: </div> <!-- end delivery_option --> to: </div> <!-- end delivery_option --> {/if} This should only display a carrier if it has the best price. 3 Link to comment Share on other sites More sharing options...
Rafael VIana Posted October 9, 2016 Author Share Posted October 9, 2016 Hi, thanks for your help. Is it the only way to achieve that? Is there any option or module to do it? Link to comment Share on other sites More sharing options...
rocky Posted October 9, 2016 Share Posted October 9, 2016 Yes, I'm not aware of any option or module that does it, but someone else may know. The changes above are pretty easy and if you've copied the default theme instead of modifying it directly, it won't be overwritten when you upgrade. Link to comment Share on other sites More sharing options...
Rafael VIana Posted October 10, 2016 Author Share Posted October 10, 2016 Your recommendation is to duplicate my current theme and make the changes on the duplicated files? Link to comment Share on other sites More sharing options...
rocky Posted October 10, 2016 Share Posted October 10, 2016 Yes, if you're using the default PrestaShop theme, it's better to copy it, rename it and then modify. The reason I recommend this is that PrestaShop will overwrite the default theme when it upgrades, which will cause you to lose all your changes. If you copy and rename, that won't happen. Link to comment Share on other sites More sharing options...
Rafael VIana Posted October 10, 2016 Author Share Posted October 10, 2016 I'm not using the default theme. Do you recommend use it anyway? I don't know if the theme will update automatically Link to comment Share on other sites More sharing options...
rocky Posted October 10, 2016 Share Posted October 10, 2016 I don't think themes update automatically, but it could make it easier to upgrade your theme manually in the future if you need to. Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted October 10, 2016 Share Posted October 10, 2016 curious, (learning shipping) back office-->shipping-->preferences if we set default carrier to best price, this will be used as default shipping at add to cart. at check out, if you have other carriers they are an option to visitor, but the best price would be default. if one just wanted one carrier, then would not just define 'one' carrier. Link to comment Share on other sites More sharing options...
Rafael VIana Posted October 10, 2016 Author Share Posted October 10, 2016 Yes I understand what you said but in my shop the shipping is free for everyone, but I need to make my customers to select always the shipping with best price, because I'll pay it anyway, so I need it's the best price selected. I made me understand? Thanks 1 Link to comment Share on other sites More sharing options...
pause4paws Posted October 11, 2016 Share Posted October 11, 2016 I understand that! Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted October 11, 2016 Share Posted October 11, 2016 Yes I understand what you said but in my shop the shipping is free for everyone, but I need to make my customers to select always the shipping with best price, because I'll pay it anyway, so I need it's the best price selected. I made me understand? Thanks lol no I don't get it yet. Do you want one carrier displayed at checkout that offers free shipping? Or do you have multiple carriers, one free shipping and you want free shippting to be automatically default to free shipping and leave others as options (or not show at checkout so they cannot be selected?) 1 Link to comment Share on other sites More sharing options...
pause4paws Posted October 11, 2016 Share Posted October 11, 2016 (edited) lol no I don't get it yet. Do you want one carrier displayed at checkout that offers free shipping? Or do you have multiple carriers, one free shipping and you want free shippting to be automatically default to free shipping and leave others as options (or not show at checkout so they cannot be selected?) My understanding ( or misunderstanding. Lol) is that shipping is free for all customers but he wants to ship it the cheapest way depending on where the customer is. He sounds like me. If it isn't complicated, make it so! lol It is confusing. He wants the cheapest carrier for his customer, which can only be figured out after a customer places an order, because he wants to save money on shipping since he has to pay for it, so good luck figuring out how to help him, El Patron! Edited October 11, 2016 by pause4paws (see edit history) Link to comment Share on other sites More sharing options...
Rafael VIana Posted October 12, 2016 Author Share Posted October 12, 2016 My understanding ( or misunderstanding. Lol) is that shipping is free for all customers but he wants to ship it the cheapest way depending on where the customer is. He sounds like me. If it isn't complicated, make it so! lol It is confusing. He wants the cheapest carrier for his customer, which can only be figured out after a customer places an order, because he wants to save money on shipping since he has to pay for it, so good luck figuring out how to help him, El Patron! I couldn't explain better The reason why I want it that way is because the shipping is free only for my customers, but in reality I pay it anyway right? (I think we all do it) So for that reason, I need to make my customers follow the path I want, make them select the only carrier available for that order (the most cheaper carrier) even if I have another carrier which is available for that zone 1 Link to comment Share on other sites More sharing options...
pause4paws Posted October 14, 2016 Share Posted October 14, 2016 I'm glad you liked my explanation of what you want. This confuses the masters, (lol) so maybe you should charge shipping. But I'm only saying that so that maybe someone can come back and help you. Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted October 14, 2016 Share Posted October 14, 2016 (edited) ok...thanks for patience with grandpa/master/legend at checkout you want the cheapest carrier to be displayed and all other carrier options suppressed (not shown). The key is that only one carrier is made available and all other suppressed. Thanks I am big student of shipping now, but I getting the hang of native shipping for improvements...happy day, el razaro where are you? Edited October 14, 2016 by El Patron (see edit history) 1 Link to comment Share on other sites More sharing options...
rocky Posted October 14, 2016 Share Posted October 14, 2016 Have you guys tried my solution above? It displays only the cheapest carrier and hides the others. 1 Link to comment Share on other sites More sharing options...
pause4paws Posted October 15, 2016 Share Posted October 15, 2016 I'm the interpreter for Rafael. He wants a module or other uncomplicated way of doing this, most likely because (like me), he's learning his way around PrestaShop and coding. I have a different shipping problem that I will post soon. I tried to click "like this" for you legends but exceeded my likes for today. Will do it tomorrow. Link to comment Share on other sites More sharing options...
rocky Posted October 15, 2016 Share Posted October 15, 2016 OK. I didn't think adding two lines of code to order-carrier.tpl was complicated. Link to comment Share on other sites More sharing options...
pause4paws Posted October 15, 2016 Share Posted October 15, 2016 True, Rocky, but what you just said looks easier than your first reply. Plus, maybe Rafael doesn't know where to find the file to edit, if he knows how to edit. Now I'm afraid to ask my shipping question. Lol. Just kidding. I added my question to someone else's post because it's very similar. Link to comment Share on other sites More sharing options...
pause4paws Posted October 15, 2016 Share Posted October 15, 2016 Rafael - do you have an FTP (File Transfer Protocol) program? It allows you to download the files to edit and upload the edited file to your server. You can get it free here: https://filezilla-project.org If you need help with the login credentials I'll help as best I can. I make a new folder named "PrestaShop edits" right on my desktop to find it fast. When you download the order-carrier.tpl to your computer, make a backup of the file and keep it safe. Rename it to order-carrier-original.tpl and don't do anything to it. Once we have the order-carrier.tpl file we edit the lines Rocky showed us. I will continue this very soon. If you can upload your order-carrier.tpl file I can edit it for you and give it back. Masters / Legends / Ambassadors - is there any personal info in this file? I don't want Rafael to send it if there is. Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted October 15, 2016 Share Posted October 15, 2016 Look for the following at about line 63 of order-carrier.tpl in your theme: {foreach $option_list as $key => $option} and change it to: {foreach $option_list as $key => $option} {if $option.is_best_price} and the following at about line 259 from: </div> <!-- end delivery_option --> to: </div> <!-- end delivery_option --> {/if} This should only display a carrier if it has the best price. Hi everybody! Rocky is one of my heroes and I missed this in my quest for understanding. i would follow Rocky's advice here, I've followed his advice for many years now. 2 Link to comment Share on other sites More sharing options...
Rafael VIana Posted October 15, 2016 Author Share Posted October 15, 2016 OK. I didn't think adding two lines of code to order-carrier.tpl was complicated. Yes, for me it's easy too But now I'm using the module One Page Checkout, so I need to ask the developer how to do it on his module. Thank you! Link to comment Share on other sites More sharing options...
rocky Posted October 15, 2016 Share Posted October 15, 2016 Oh, I see. Now I understand. I hope the developer can help. If not, try to find code similar to the code I posted above and I'll try to adapt my modification. Link to comment Share on other sites More sharing options...
pause4paws Posted October 19, 2016 Share Posted October 19, 2016 Can I mark solved if the OP does not? Link to comment Share on other sites More sharing options...
rocky Posted October 20, 2016 Share Posted October 20, 2016 I marked it as solved. 1 Link to comment Share on other sites More sharing options...
DLynn Posted September 19, 2018 Share Posted September 19, 2018 Anyone know how to modify the above solution to work with 1.7.3 shippin.tpl? I've tried every variation that I can think of, to no avail. I would like to display the best price carrier (dynamic), as well as two other carriers hard-coded in. Thank you. Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted September 20, 2018 Share Posted September 20, 2018 it's a long way to the top of you want to ecommerce. here is solution that 'hacks' cannot proivde: Visitors Shipping Assurance for PrestaShop for non-logged and logged in visitors. Nobody ever done this and we did it before Amazon. For PS eco we won't get rich off of it lol. see how the widget works on on the demo: https://localizedshippingpro.com What's important to display all shipping carriers not just the cheapest. This allows shop manager to actually use their shipping as a market tool. this module also integrates with our geo targeting prod moudle as well as native geo location (we don't reccommend that however) PrestaHeroes rules the pool when it comes to visitor localzation. happy selling, el Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now