Jump to content

shopping problem


gshds

Recommended Posts

Hello,

 

I am really annoyed with my customers. In fact, when they put into the cart the different products below (see the picture ) it is specified  "Livraison gratuite"  that mean in english that delivery is free. This is not correct, because at the end of the order the customers can chose the delivering by FEDEX and in our case,  is not free of charge.

 

Someone can help me, I just want to remove the information about the delivery 

post-815894-0-64474600-1415881041_thumb.jpg

  • Like 1
Link to comment
Share on other sites

Goto themes/your-theme/modules/blockcart/blockcart.tpl and comment out the following code, around line 143

<div class="cart-prices-line first-line">
								<span class="price cart_block_shipping_cost ajax_cart_shipping_cost">
									{if $shipping_cost_float == 0}
										{l s='Free shipping!' mod='blockcart'}
									{else}
										{$shipping_cost}
									{/if}
								</span>
								<span>
									{l s='Shipping' mod='blockcart'}
								</span>
							</div>
  • Like 3
Link to comment
Share on other sites

 

Goto themes/your-theme/modules/blockcart/blockcart.tpl and comment out the following code, around line 143

<div class="cart-prices-line first-line">
								<span class="price cart_block_shipping_cost ajax_cart_shipping_cost">
									{if $shipping_cost_float == 0}
										{l s='Free shipping!' mod='blockcart'}
									{else}
										{$shipping_cost}
									{/if}
								</span>
								<span>
									{l s='Shipping' mod='blockcart'}
								</span>
							</div>

Unfortunately, in my blockcart.tpl I not find the same program.

Link to comment
Share on other sites

@johnnymith: did you find my link useful? Or do you want to show something else?

 

Hi,
In your demo allows to hide the cost as long as the person is not
identified. In my case I want something very simple. Just to change the text "Free shipping !" by nothing or "not determined", from the point 4 (shipping) we need to show the corresponding value of the shipping choice.
Link to comment
Share on other sites

more concise to show "To Be Determined":

 

modified code:
 
in  /var/www/html/themes/default-bootstrap/js/modules/blockcart/ajax-cart.js i have commented out 779-780
if (parseFloat(jsonData.shippingCostFloat) > 0)
$('.ajax_cart_shipping_cost').text(jsonData.shippingCost);
/* else if (typeof(freeShippingTranslation) != 'undefined')
$('.ajax_cart_shipping_cost').html(freeShippingTranslation);
*/
then in /var/www/html/themes/default-bootstrap/modules/blockcart/blockcart.tpl
line 146
change:
{l s='Free shipping!' mod='blockcart'}
to
{if !$cart->id_address_delivery}{l s='To Be Determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}

then around line 284
change: {l s='Free shipping!' mod='blockcart'}
to:
 
{if !$cart->id_address_delivery}{l s='To Be Determined' mod='blockcart'}{else}{l s='Free shipping!' mod='blockcart'}{/if}
 
This works like a charm, it should cover most everything. I doubt the ajaxcart dropdown will work for shipping per item since i disabled the update of it.  Most sites don't do per item shipping though.
Edited by David Eschmeyer (see edit history)
  • Like 1
Link to comment
Share on other sites

I come back,

 

In order to be totaly satisfied by the simple solution of mickeyboy1

 

 

You have also comment out the following code aroud the line 279/338.

 

* <span class="ajax_cart_shipping_cost">
* {if $shipping_cost_float == 0}
* {l s='Free shipping!' mod='blockcart'}
* {else}
* {$shipping_cost}
* {/if}
* </span>
 
I hope this can help someone.
  • Like 2
Link to comment
Share on other sites

×
×
  • Create New...