Jump to content

Recommended Posts

Можно мне тупому в этом вопросе объяснить и показать?) Буду благодарен)

 

вот так:

{if $payment_methods && !$payment_method}		
			<ul id="deliveries">
			{foreach $payment_methods as $payment_method}
			<li>
                        	<input type="radio" name="payment_method_id" value="{$payment_method->id}" {if $payment_method@first}checked{/if} id="payment_{$payment_method->id}">
				<label for="payment_{$payment_method->id}" class="image-label">
                                	Способ оплаты
                                        {if $payment_method->id eq 17}
                                 	<div class="image">
                                         	<img src="design/{$settings->theme|escape}/images/dp-icons/cash.png" alt="наличный расчет" />
                                 	</div>
                                 	{elseif $payment_method->id eq 15}
                                 	<div class="image">
                                         	<img src="design/{$settings->theme|escape}/images/dp-icons/mastercard-visa.png" alt="{$settings->site_name}" />
                                 	</div>
                                        {elseif $payment_method->id eq 13}
                                        <div class="image">
                                         	<img src="design/{$settings->theme|escape}/images/dp-icons/orderlist.png" alt="{$settings->site_name}" />
                                 	</div>
                                        {elseif $payment_method->id eq 14}
                                        <div class="image">
                                         	<img src="design/{$settings->theme|escape}/images/dp-icons/kvitancia.png" alt="{$settings->site_name}" />
                                 	</div>
                                        {/if}
                                        
                                        
                                </label>
                                <div class="delivery-description">
                                	<label for="payment_{$payment_method->id}" class="name">
					{$payment_method->name}
					</label>
					<div class="description">{$payment_method->description}</div>
                                </div>
                        </li>
			{/foreach}
			</ul>
			{/if}
Link to post
Share on other sites

 

вот так:

{if $payment_methods && !$payment_method}		
			<ul id="deliveries">
			{foreach $payment_methods as $payment_method}
			<li>
                        	<input type="radio" name="payment_method_id" value="{$payment_method->id}" {if $payment_method@first}checked{/if} id="payment_{$payment_method->id}">
				<label for="payment_{$payment_method->id}" class="image-label">
                                	Способ оплаты
                                        {if $payment_method->id eq 17}
                                 	<div class="image">
                                         	<img src="design/{$settings->theme|escape}/images/dp-icons/cash.png" alt="наличный расчет" />
                                 	</div>
                                 	{elseif $payment_method->id eq 15}
                                 	<div class="image">
                                         	<img src="design/{$settings->theme|escape}/images/dp-icons/mastercard-visa.png" alt="{$settings->site_name}" />
                                 	</div>
                                        {elseif $payment_method->id eq 13}
                                        <div class="image">
                                         	<img src="design/{$settings->theme|escape}/images/dp-icons/orderlist.png" alt="{$settings->site_name}" />
                                 	</div>
                                        {elseif $payment_method->id eq 14}
                                        <div class="image">
                                         	<img src="design/{$settings->theme|escape}/images/dp-icons/kvitancia.png" alt="{$settings->site_name}" />
                                 	</div>
                                        {/if}
                                        
                                        
                                </label>
                                <div class="delivery-description">
                                	<label for="payment_{$payment_method->id}" class="name">
					{$payment_method->name}
					</label>
					<div class="description">{$payment_method->description}</div>
                                </div>
                        </li>
			{/foreach}
			</ul>
			{/if}

Это в какой файл? И я не совсем понял, какие будут изменения?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...