Jump to content

Order options - problem


Recommended Posts

Hello everyone ! I've big problem ...

 

I would like to change type of choosing carrier in order module. Now, as you know there is <input type="radio" /> element, but I would like to change it to <select> and <option>. I've edited order-carrier.tpl :

{foreach $delivery_option_list as $id_address => $option_list}
	<select>
		{foreach $option_list as $key => $option}
			<option id="delivery_option_{$id_address|intval}_{$option@index}" name="delivery_option[{$id_address|intval}]" data-key="{$key}" data-id_address="{$id_address|intval}" class="delivery_option_radio">
				{foreach $option.carrier_list as $carrier}
						{$carrier.instance->name|escape:'htmlall':'UTF-8'}
				{/foreach}
				-
				{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}
		</option>
			{/foreach}
				 <!-- end delivery_options -->
               </select>
			{/foreach}

but when I click on payment method (for example bank wire) then my order is added successfully but always there is free delivery ... How can I choose carrier method by select option ?

 

Moreover, where can I edit payment view, as I would like to have these options in select element.

 

I hope my english is understandable.

 

Greetings,

 

Matthew

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...