patche Posted October 23, 2013 Share Posted October 23, 2013 (edited) Hello. I am new in Prestashop. My version is 1.5.6.0, and default theme. I want to change 'free shipping' text in customer order ( look the images in attach files ) in some other text. How I to do that for registered customer ? PS. Sorry for my english. Edited October 25, 2013 by patche (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 you want to change it only for logged customers? Link to comment Share on other sites More sharing options...
patche Posted October 24, 2013 Author Share Posted October 24, 2013 Yes. I try to change code in moduls/blockcard/translate/sr.php, but I didn't success. Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 so if you want to change it only for logged customers, you need to add if condition in shopping-cart.tpl file {if $logged} {l s='text for logged user'} {else} {l s='text for unlogged user'} {/if} Link to comment Share on other sites More sharing options...
patche Posted October 24, 2013 Author Share Posted October 24, 2013 Sorry. I open shopping-card (themes/my themes/shoppin-card.tpl), but I don't know below code set up. Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 there is a line: <td colspan="2" class="price" id="total_shipping">{l s='Free Shipping!'}</td> modify it to: <td colspan="2" class="price" id="total_shipping">{if $logged} {l s='text for logged user'} {else} {l s='text for unlogged user'} {/if}</td> Link to comment Share on other sites More sharing options...
patche Posted October 24, 2013 Author Share Posted October 24, 2013 (edited) Now I modify code. Change in 1 step order, but no in step 4 and 5. Edited October 24, 2013 by patche (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 24, 2013 Share Posted October 24, 2013 in this case you need to modify also code in steps 4 and 5 Link to comment Share on other sites More sharing options...
patche Posted October 24, 2013 Author Share Posted October 24, 2013 (edited) Solved problems for 4 and 5 step in order. Change text for 4 step in order: I go to themes/mythemes/order-carrier.tpl and find this code {l s='(tax excl.)'} {/if} {else} {l s='Free'} {/if} and Free change in text by your choice.Change text for 5 step order: I go to themes/mythemes/order-payment.tpl find this code <td colspan="5">{l s='Shipping:'}</td> <td class="price" id="total_shipping">{l s='Free Shipping!'}</td> and Free shippig change in text by your choice. Thank you vekia for help. Edited October 25, 2013 by patche (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts