DanAndrei Posted June 5, 2017 Share Posted June 5, 2017 (edited) la metodele de livrare doar daca dau pe radio buton se selecteaza iar eu as vrea sa se poata selecta daca dai clic oriunde pe linia respectiva. Se poate realiza? Edited June 6, 2017 by DanDobras (see edit history) Link to comment Share on other sites More sharing options...
Geo Burlibasa Posted June 5, 2017 Share Posted June 5, 2017 Sigur, fie prin introducerea unui <label> in tpl-ul care afiseaza codul respectiv, fie prin javascript. 1 Link to comment Share on other sites More sharing options...
DanAndrei Posted June 5, 2017 Author Share Posted June 5, 2017 Sigur, fie prin introducerea unui <label> in tpl-ul care afiseaza codul respectiv, fie prin javascript. Multumesc frumos. De functionat functioneaza daca adaug <label> dar imi scurteaza randurile si le face inegale. Vezi foto. Aici e bucata de cod din order-carrier.tpl {foreach $option_list as $key => $option} <div class="delivery_option {if ($option@index % 2)}alternate_{/if}item"> <div> <label><table class="resume table table-bordered{if !$option.unique_carrier} hide{/if}"> <tr> <td class="delivery_option_radio"> <input id="delivery_option_{$id_address|intval}_{$option@index}" class="delivery_option_radio" type="radio" name="delivery_option[{$id_address|intval}]" data-key="{$key}" data-id_address="{$id_address|intval}" value="{$key}"{if isset($delivery_option[$id_address]) && $delivery_option[$id_address] == $key} checked="checked"{/if} /> </td> <td class="delivery_option_logo"> {foreach $option.carrier_list as $carrier} {if $carrier.logo} <img class="order_carrier_logo" src="{$carrier.logo|escape:'htmlall':'UTF-8'}" alt="{$carrier.instance->name|escape:'htmlall':'UTF-8'}"/> {elseif !$option.unique_carrier} {$carrier.instance->name|escape:'htmlall':'UTF-8'} {if !$carrier@last} - {/if} {/if} {/foreach} </td> <td> {if $option.unique_carrier} {foreach $option.carrier_list as $carrier} <strong>{$carrier.instance->name|escape:'htmlall':'UTF-8'}</strong> {/foreach} {if isset($carrier.instance->delay[$cookie->id_lang])} <br />{l s='Delivery time:'} {$carrier.instance->delay[$cookie->id_lang]|escape:'htmlall':'UTF-8'} {/if} {/if} {if count($option_list) > 1} <br /> {if $option.is_best_grade} {if $option.is_best_price} <span class="best_grade best_grade_price best_grade_speed">{l s='The best price and speed'}</span> {else} <span class="best_grade best_grade_speed">{l s='The fastest'}</span> {/if} {elseif $option.is_best_price} <span class="best_grade best_grade_price">{l s='The best price'}</span> {/if} {/if} </td> <td class="delivery_option_price"> <div class="delivery_option_price"> {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> </td> </tr> </table></label> {if !$option.unique_carrier} Link to comment Share on other sites More sharing options...
zaurus Posted June 6, 2017 Share Posted June 6, 2017 pt ca s-a schimbat width, pune si tu 100% 1 Link to comment Share on other sites More sharing options...
DanAndrei Posted June 6, 2017 Author Share Posted June 6, 2017 Am rezolvat. Am adaugat <label style="width:100%"> tabelul </label> Functioneaza . Multumesc! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now