[email protected] Posted January 26, 2016 Share Posted January 26, 2016 Is there a way to force the customer to login before seeing the shipping price? Link to comment Share on other sites More sharing options...
endriu107 Posted January 26, 2016 Share Posted January 26, 2016 Yes you supposed to edit all tpl file where are display shipping price, and add code like {if $logged}code of shipping price{/if} Link to comment Share on other sites More sharing options...
[email protected] Posted January 27, 2016 Author Share Posted January 27, 2016 (edited) Being pretty new to prestashop i need more details. Ive tried to follow the instructions from http://nemops.com/hide-shipping-cost/#.VqhCi1KRbhO I was able to make the changes in blockcart.tpl but when i went to make the changes to shopping cart.tpl i could not find the following code <tr class="cart_total_delivery" style="{if !isset($carrier->id) || is_null($carrier->id)}display:none;{/if}"> <td colspan="5">{l s='Shipping'}</td> <td colspan="2" class="price" id="total_shipping">{l s='Free Shipping!'}</td> </tr> my file contains the code below in the "cart_total_delivery" area {if $priceDisplay} <tr class="cart_total_delivery" {if $shippingCost <= 0} style="display:none;"{/if}> <td colspan="6">{l s='Total shipping'}{if $display_tax_label} {l s='(tax excl.)'}{/if}{l s=':'}</td> <td class="price" id="total_shipping">{displayPrice price=$shippingCostTaxExc}</td> </tr> {else} <tr class="cart_total_delivery"{if $shippingCost <= 0} style="display:none;"{/if}> <td colspan="6">{l s='Total shipping'}{if $display_tax_label} {l s='(tax incl.)'}{/if}{l s=':'}</td> <td class="price" id="total_shipping" >{displayPrice price=$shippingCost}</td> </tr> {/if} {else} <tr class="cart_total_delivery"{if $shippingCost <= 0} style="display:none;"{/if}> <td colspan="6">{l s='Total shipping:'}</td> <td class="price" id="total_shipping" >{displayPrice price=$shippingCostTaxExc}</td> </tr> {/if} any help on modifying the code? TIA! Edited January 27, 2016 by [email protected] (see edit history) Link to comment Share on other sites More sharing options...
[email protected] Posted January 28, 2016 Author Share Posted January 28, 2016 Got it working! 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