LazyCircles Posted March 15, 2016 Share Posted March 15, 2016 Hello, I want to change a carrier price option, instead of showing the "price" or "free shipping" I want to add some custom text or make it blank.. I'd like to know if it's possible, what is the best way? Thanks! Best Regards Link to comment Share on other sites More sharing options...
riras Posted March 15, 2016 Share Posted March 15, 2016 location-> translation->chose what you want to change, theme and language Link to comment Share on other sites More sharing options...
LazyCircles Posted March 16, 2016 Author Share Posted March 16, 2016 location-> translation->chose what you want to change, theme and language Ok thanks! What if I want one carrier saying "Free shipping" and another one saying "on request" ? I think I can't do it this way 1 Link to comment Share on other sites More sharing options...
NemoPS Posted March 16, 2016 Share Posted March 16, 2016 That is more complicated. The simple way to do it is only having that display in order-carriers.tpl, checking which id is currently used in the loop, and displaying what you want for the price. Otherwise it's definitely complex, and you need an insane number of modifications to add other parameters to carriers, and have them display during the checkout Link to comment Share on other sites More sharing options...
LazyCircles Posted March 17, 2016 Author Share Posted March 17, 2016 That is more complicated. The simple way to do it is only having that display in order-carriers.tpl, checking which id is currently used in the loop, and displaying what you want for the price. Otherwise it's definitely complex, and you need an insane number of modifications to add other parameters to carriers, and have them display during the checkout Hello Nemo1, thanks for the help. I'm having some difficulties understanding where I can get carrier block ID. The only way I can target them is via radio button value. Actually I was modifying the Html field via jQuery but it brings some problems...: -The carriers block only loads after saving address = I have to execute a setTimeout function (i think it is not good method). - If the user doesn't allow geolocation it ignores that code in my javascript :S This is the code i have.. $(document).ready(function(){ $("#opc_guestCheckout").click(function(){ saveButtonFunction(); }); }); function saveButtonFunction(){ $("#submitGuestAccount").live("click", function(){ setTimeout(countryChecker, 1000); }); } function countryChecker(){ if($(".delivery_option_radio [value=86,]").val() == "86,"){ $(".delivery_option .delivery_option_price").remove(); } else if($(".delivery_option_radio [value=85,]").val() == "85,"){ $(".delivery_option .delivery_option_price").remove(); } } Thanks! Best Regards Link to comment Share on other sites More sharing options...
LazyCircles Posted March 18, 2016 Author Share Posted March 18, 2016 (edited) I did by modifying order-carrier.tpl in the delivery option I did something like this.. {elseif $carrier.instance->name == 'Name of carrier you want to add exception'} {l s='Sob Consulta'} Note: this is only for the front end (thats what is needed), the price is set to "free" in BO. Thanks Edited March 18, 2016 by LazyCircles (see edit history) 1 Link to comment Share on other sites More sharing options...
sotirisa Posted June 18, 2019 Share Posted June 18, 2019 Where can I find order-carrier.tpl? Sorry but I don't know where it is. Link to comment Share on other sites More sharing options...
LazyCircles Posted August 20, 2019 Author Share Posted August 20, 2019 On 6/18/2019 at 12:28 PM, sotirisa said: Where can I find order-carrier.tpl? Sorry but I don't know where it is. Hi sotirisa, Sorry for the late reply, try here: themes/YOUR_THEME/order-carrier.tpl Link to comment Share on other sites More sharing options...
zei Posted May 9, 2021 Share Posted May 9, 2021 (edited) Hello! I would like to do the same thing in 1.7.7.2, how should I do it? Thanks in advance. Edited May 9, 2021 by zei (see edit history) 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