Jump to content

Cart -> Country id


Recommended Posts

Hi.
I'm have some problem with upgrading my prestashop 1.6. My problem is on checkout page(step 4 shipping). I want to find out how to get country name(or some id) order should be delivered to.

I start to change order-carrier.tpl and add <input type="hidden" value="{$cart->id_address_delivery}"/> Result is I get some number. I didn't find info what this number point to.

<div class="delivery_option_price">
	<input type="hidden" value="{$cart->id_address_delivery}"/>
	{if $option.total_price_with_tax && !$option.is_free && (!isset($free_shipping) || (isset($free_shipping) && !$free_shipping))}
		{if $use_taxes == 1}
			{if $priceDisplay == 1}
				{convertPrice price=$option.total_price_without_tax}{if $display_tax_label} {l s='(tax excl.)'}{/if}
			{else}
				{convertPrice price=$option.total_price_with_tax}{if $display_tax_label} {l s='(tax incl.)'}{/if}
			{/if}
		{else}
			{convertPrice price=$option.total_price_without_tax}
		{/if}
	{else}
		{l s='Free'}
	{/if}
</div>

Maybe there is a other way or my way is correct but not finished?

Thanks for everyone who give even a small help to me with this.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...