Jump to content

Recommended Posts

Hello Community,

 

I would like to add the “+ shipping cost” just alongside to the text “PRICE tax incl.” in Blockcart of PrestaShop 1.5.4.1. Please anyone knows how to accomplish it? I added a screenshot to illustrate my post. If it requires me to edit some files please let know them.

 

Thanks

 

Ranks

post-634018-0-83394400-1393421856_thumb.jpg

Link to comment
Share on other sites

you have to modify product.tpl file located in your theme directory

 

add there code:

{l s='+ shipping costs'}

add it right after:

			<p id="old_price"{if !$product->specificPrice || !$product->specificPrice.reduction} class="hidden"{/if}>
			{if $priceDisplay >= 0 && $priceDisplay <= 2}
					<span id="old_price_display">{if $productPriceWithoutReduction > $productPrice}{convertPrice price=$productPriceWithoutReduction}{/if}</span>
					{if $tax_enabled && $display_tax_label == 1}{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}{/if}
			{/if}
			</p>
Link to comment
Share on other sites

Thanks your quick reply Vekia. This is what I did but it not work:

{if $product->specificPrice AND $product->specificPrice.reduction && $product->specificPrice.reduction > 0}
				<p id="old_price"><span class="bold">
				{if $priceDisplay >= 0 && $priceDisplay <= 2}
					{if $productPriceWithoutReduction > $productPrice}
						<span id="old_price_display">{convertPrice price=$productPriceWithoutReduction}</span>
						<!-- {if $tax_enabled && $display_tax_label == 1}
							{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
						{/if} -->
					{/if}
				{/if}
				</span>
				</p>
				{l s='+ Shipping cost'}
			{/if}

The text didn't appear.

 

Any idea where else to place the code to make it show? Is it possible to create a hook or module for just the place?

 

regards

Link to comment
Share on other sites

make sure that you changed correct file, if module file exists also in your theme /modules/blockcart/ directory - you have to change this file.

 

in addition, you have to recompile theme and clear cache (if you use) - check adv. paramters > performance tab in your back office

Link to comment
Share on other sites

Hello!  I am not interested in presetting my products' shipping parameters to obtain a shipping costs.  Our customers will be given their own individual shipping costs when ordering product from us.  With this in mind, is there any way of removing the 'free shipping' from our customer's cart when they go through the 5 steps of ordering? 

Link to comment
Share on other sites

×
×
  • Create New...