[Skip to main content](#vessel-content)

#   Change payment methods table

##

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

10 years 6 months ago [\#239812](#239812) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Change payment methods table](/forum/29-payment-methods/884450-change-payment-methods-table#239812 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hello again!  I need to change the payment methods table layout, instead of rows i want to display the payment methods in columns. I believe i can do that in the file checkout / payment.php? But i m having trouble changing the correct  to  etc. I also want to do that for shipping methods too!  Could you give a hint please?  Thank you!")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.5

Hello again!

I need to change the payment methods table layout, instead of rows i want to display the payment methods in columns.
I believe i can do that in the file checkout / payment.php? But i m having trouble changing the correct &lt;tr&gt; to &lt;td&gt; etc.
I also want to do that for shipping methods too!

Could you give a hint please?

Thank you!

- [ ![checkout&#95;mockup&#95;fullwidth.jpg](/forum/attachment/31348) ](/forum/attachment/31348 "...&#95;fullwidth.jpg") [ ](/forum/attachment/31348?download=1 "...&#95;fullwidth.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQ0NTAtY2hhbmdlLXBheW1lbnQtbWV0aG9kcy10YWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

10 years 6 months ago [\#239821](#239821) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change payment methods table](/forum/29-payment-methods/884450-change-payment-methods-table#239821 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hello again!  I need to change the payment methods table layout, instead of rows i want to display the payment methods in columns. I believe i can do that in the file checkout / payment.php? But i m having trouble changing the correct  to  etc. I also want to do that for shipping methods too!  Could you give a hint please?  Thank you!")*

Hi,

Yes, it's indeed in that view file. And in checkout/shipping.php for the shipping.
I would actually remove all the tr/td/tbody/table tags and just have one div for each payment method/shipping method with a float:left and a width:25% of the divs so that it would display on four columns automatically.

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQ0NTAtY2hhbmdlLXBheW1lbnQtbWV0aG9kcy10YWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

10 years 6 months ago [\#239904](#239904) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Change payment methods table](/forum/29-payment-methods/884450-change-payment-methods-table#239904 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hello again!  I need to change the payment methods table layout, instead of rows i want to display the payment methods in columns. I believe i can do that in the file checkout / payment.php? But i m having trouble changing the correct  to  etc. I also want to do that for shipping methods too!  Could you give a hint please?  Thank you!")*

Hi nicolas,

thank you for your answer.
I removed table tags, but the payment methods are still displayed in 4 lines.
How can i create 4 divs in the view file, 1 for each method?

That's my php code now
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.6.0 * @author hikashop.com * @copyright (C) 2010-2015 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php if(!empty($this-&gt;orderInfos-&gt;full_total-&gt;prices[0]) &amp;&amp; bccomp($this-&gt;orderInfos-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,0,5)!=0){ if(!empty($this-&gt;methods)){ ?&gt; &lt;div id="hikashop_payment_methods" class="hikashop_payment_methods"&gt; &lt;fieldset&gt; &lt;legend&gt;&lt;?php echo JText::_('HIKASHOP_PAYMENT_METHOD');?&gt;&lt;/legend&gt; &lt;?php $done = false; $row_index=0; $auto_select_default = $this-&gt;config-&gt;get('auto_select_default',2); if($auto_select_default==1 &amp;&amp; count($this-&gt;methods)&gt;1) $auto_select_default=0; $odd = 0; if(!HIKASHOP_RESPONSIVE) { ?&gt; &lt;table class="hikashop_payment_methods_table"&gt; &lt;?php foreach($this-&gt;methods as $method){ $checked = ''; if(($this-&gt;payment_method==$method-&gt;payment_type &amp;&amp; $this-&gt;payment_id==$method-&gt;payment_id)&#124;&#124; ($auto_select_default &amp;&amp; empty($this-&gt;payment_id)&amp;&amp;!$done)){ $checked = 'checked="checked"'; $done = true; } if($this-&gt;config-&gt;get('auto_submit_methods',1) &amp;&amp; empty($method-&gt;ask_cc) &amp;&amp; empty($method-&gt;custom_html) &amp;&amp; empty($checked)){ $checked.=' onclick="this.form.action=this.form.action+\'#hikashop_payment_methods\';this.form.submit(); return false;"'; } ?&gt; &lt;tr class="row&lt;?php echo $odd; ?&gt;"&gt; &lt;td&gt; &lt;input class="hikashop_checkout_payment_radio" id="radio_&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;" type="radio" name="hikashop_payment" value="&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;" &lt;?php echo $checked; ?&gt; /&gt; &lt;/td&gt; &lt;td&gt;&lt;label for="radio_&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;" style="cursor:pointer;"&gt; &lt;span class="hikashop_checkout_payment_image"&gt; &lt;?php if(!empty($method-&gt;payment_images)){ $images = explode(',',$method-&gt;payment_images); if(!empty($images)){ foreach($images as $image){ if(!empty($this-&gt;images_payment[$image])){ ?&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES .'payment/'. $this-&gt;images_payment[$image];?&gt;" alt=""/&gt; &lt;?php } } } } ?&gt; &lt;/span&gt; &lt;/label&gt; &lt;/td&gt; &lt;td&gt;&lt;label for="radio_&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;" style="cursor:pointer;"&gt; &lt;span class="hikashop_checkout_payment_name"&gt;&lt;?php echo $method-&gt;payment_name;?&gt;&lt;/span&gt;&lt;/label&gt; &lt;span class="hikashop_checkout_payment_cost"&gt; &lt;?php if(bccomp($method-&gt;payment_price,0,5) === 0) { $price_text = JText::_('FREE_PAYMENT'); } else { $pt = (int)$this-&gt;params-&gt;get('price_with_tax'); $price_text = JText::_('PRICE_BEGINNING'); $price_text .= '&lt;span class="hikashop_checkout_payment_price"&gt;'; if($pt){ $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price_with_tax,$method-&gt;payment_params-&gt;payment_currency); } if($pt == 2) $price_text .= JText::_('PRICE_BEFORE_TAX'); if($pt == 2 &#124;&#124; $pt == 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price,$method-&gt;payment_params-&gt;payment_currency); if($pt == 2) $price_text .= JText::_('PRICE_AFTER_TAX'); if($this-&gt;params-&gt;get('show_original_price') &amp;&amp; isset($method-&gt;payment_price_orig) &amp;&amp; bccomp($method-&gt;payment_price_orig, 0, 5)) { $price_text .= JText::_('PRICE_BEFORE_ORIG'); if($pt &gt; 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price_orig_with_tax, $method-&gt;payment_currency_orig); if($pt == 2) $price_text .= JText::_('PRICE_BEFORE_TAX'); if($pt == 2 &#124;&#124; $pt == 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price_orig, $method-&gt;payment_currency_orig); if($pt == 2) $price_text .= JText::_('PRICE_AFTER_TAX'); $price_text .= JText::_('PRICE_AFTER_ORIG'); } $price_text .= '&lt;/span&gt; '; $price_text .= JText::_('PRICE_END'); } echo $price_text; ?&gt; &lt;/span&gt; &lt;?php if(!empty($method-&gt;payment_description)){ ?&gt; &lt;br/&gt; &lt;div class="hikashop_checkout_payment_description"&gt;&lt;?php echo $method-&gt;payment_description;?&gt;&lt;/div&gt; &lt;?php } ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr class="hikashop_checkout_payment_ccinfo"&gt; &lt;td colspan="3"&gt; &lt;?php $this-&gt;method =&amp; $method; $this-&gt;setLayout('ccinfo'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php $row_index++; $odd = 1-$odd; } ?&gt; &lt;/table&gt; &lt;?php } else { ?&gt; &lt;div class="controls"&gt; &lt;div class="hika-radio"&gt; &lt;div class="hikashop_payment_methods_table table table-striped table-hover"&gt; &lt;?php foreach($this-&gt;methods as $method){ $checked = ''; if(($this-&gt;payment_method==$method-&gt;payment_type &amp;&amp; $this-&gt;payment_id==$method-&gt;payment_id)&#124;&#124; ($auto_select_default &amp;&amp; empty($this-&gt;payment_id)&amp;&amp;!$done)){ $checked = 'checked="checked"'; $done = true; } if($this-&gt;config-&gt;get('auto_submit_methods',1) &amp;&amp; empty($method-&gt;ask_cc) &amp;&amp; empty($method-&gt;custom_html) &amp;&amp; empty($checked)){ $checked.=' onclick="this.form.action=this.form.action+\'#hikashop_payment_methods\';this.form.submit(); return false;"'; } ?&gt; &lt;div class="katerina-pay"&gt; &lt;div class="row&lt;?php echo $odd; ?&gt;"&gt; &lt;div&gt; &lt;input class="hikashop_checkout_payment_radio" id="radio_&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;" type="radio" name="hikashop_payment" value="&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;" &lt;?php echo $checked; ?&gt; /&gt; &lt;label class="btn btn-radio" for="radio_&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;"&gt;&lt;?php echo $method-&gt;payment_name;?&gt;&lt;/label&gt; &lt;span class="hikashop_checkout_payment_cost"&gt; &lt;?php if(bccomp($method-&gt;payment_price,0,5) === 0) { $price_text = JText::_('FREE_PAYMENT'); } else { $pt = (int)$this-&gt;params-&gt;get('price_with_tax'); $price_text = JText::_('PRICE_BEGINNING'); $price_text .= '&lt;span class="hikashop_checkout_payment_price"&gt;'; if($pt &gt; 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price_with_tax,$method-&gt;payment_params-&gt;payment_currency); if($pt == 2) $price_text .= JText::_('PRICE_BEFORE_TAX'); if($pt == 2 &#124;&#124; $pt == 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price,$method-&gt;payment_params-&gt;payment_currency); if($pt == 2) $price_text .= JText::_('PRICE_AFTER_TAX'); if($this-&gt;params-&gt;get('show_original_price') &amp;&amp; isset($method-&gt;payment_price_orig) &amp;&amp; bccomp($method-&gt;payment_price_orig, 0, 5)) { $price_text .= JText::_('PRICE_BEFORE_ORIG'); if($pt &gt; 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price_orig_with_tax, $method-&gt;payment_currency_orig); if($pt == 2) $price_text .= JText::_('PRICE_BEFORE_TAX'); if($pt == 2 &#124;&#124; $pt == 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price_orig, $method-&gt;payment_currency_orig); if($pt == 2) $price_text .= JText::_('PRICE_AFTER_TAX'); $price_text .= JText::_('PRICE_AFTER_ORIG'); } $price_text .= '&lt;/span&gt; '; $price_text .= JText::_('PRICE_END'); } echo $price_text; ?&gt; &lt;/span&gt; &lt;span class="hikashop_checkout_payment_image"&gt; &lt;?php if(!empty($method-&gt;payment_images)){ $images = explode(',',$method-&gt;payment_images); if(!empty($images)){ foreach($images as $image){ if(!empty($this-&gt;images_payment[$image])){ ?&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES .'payment/'. $this-&gt;images_payment[$image];?&gt;" alt=""/&gt; &lt;?php } } } } ?&gt; &lt;/span&gt; &lt;div class="hikashop_checkout_payment_description"&gt;&lt;?php echo $method-&gt;payment_description;?&gt;&lt;/div&gt; &lt;div class="ccinfo"&gt; &lt;?php $this-&gt;method =&amp; $method; $this-&gt;setLayout('ccinfo'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php $odd = 1-$odd; } ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; (function($){ $("#hikashop_payment_methods .hika-radio input:checked").each(function() { $("label[for=" + jQuery(this).attr('id') + "]").addClass('active btn-primary'); }); $("#hikashop_payment_methods .hika-radio input").change(function() { $(this).parents('div.hika-radio').find('label.active').removeClass('active btn-primary'); $("label[for=" + jQuery(this).attr('id') + "]").addClass('active btn-primary'); }); })(jQuery); &lt;/script&gt; &lt;/div&gt; &lt;?php } ?&gt; &lt;/fieldset&gt; &lt;/div&gt; &lt;?php } }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQ0NTAtY2hhbmdlLXBheW1lbnQtbWV0aG9kcy10YWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

10 years 6 months ago [\#239907](#239907) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change payment methods table](/forum/29-payment-methods/884450-change-payment-methods-table#239907 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hello again!  I need to change the payment methods table layout, instead of rows i want to display the payment methods in columns. I believe i can do that in the file checkout / payment.php? But i m having trouble changing the correct  to  etc. I also want to do that for shipping methods too!  Could you give a hint please?  Thank you!")*

Hi,

You have two things to do:
1. You have a problem with yours divs:
[ take.ms/pQJvP](http://take.ms/pQJvP)
They are one into another because you're missing a closing div for each row.
2. You need to add a float:left and a width:25% with CSS on the divs so that they can display one next to another.

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQ0NTAtY2hhbmdlLXBheW1lbnQtbWV0aG9kcy10YWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

10 years 6 months ago -  10 years 6 months ago [\#240033](#240033) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Change payment methods table](/forum/29-payment-methods/884450-change-payment-methods-table#240033 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hello again!  I need to change the payment methods table layout, instead of rows i want to display the payment methods in columns. I believe i can do that in the file checkout / payment.php? But i m having trouble changing the correct  to  etc. I also want to do that for shipping methods too!  Could you give a hint please?  Thank you!")*

Ok i see what you are saying!

I fixed it i think but the problem now is that the class that i created doesn't recognise the css that i give it.
[strike]I added the CSS you said but no result unfortunately.[/strike]

Ok, i found it.
For some reason it doesn't see the custom.css file so i added the css code in frontend-default css file and it's ok.

But the code that i added that is for panelboxes to have equal height does not work in the payment view file but it worked in the login view file. I don't understand why!

I m talking about this line &lt;div class="uk-grid" data-uk-grid-match="{target:'.uk-panel'}"&gt;
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.6.0 * @author hikashop.com * @copyright (C) 2010-2015 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php if(!empty($this-&gt;orderInfos-&gt;full_total-&gt;prices[0]) &amp;&amp; bccomp($this-&gt;orderInfos-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,0,5)!=0){ if(!empty($this-&gt;methods)){ ?&gt; &lt;div id="hikashop_payment_methods" class="hikashop_payment_methods"&gt; &lt;fieldset&gt; &lt;legend&gt;&lt;?php echo JText::_('HIKASHOP_PAYMENT_METHOD');?&gt;&lt;/legend&gt; &lt;?php $done = false; $row_index=0; $auto_select_default = $this-&gt;config-&gt;get('auto_select_default',2); if($auto_select_default==1 &amp;&amp; count($this-&gt;methods)&gt;1) $auto_select_default=0; $odd = 0; if(!HIKASHOP_RESPONSIVE) { ?&gt; &lt;table class="hikashop_payment_methods_table"&gt; &lt;?php foreach($this-&gt;methods as $method){ $checked = ''; if(($this-&gt;payment_method==$method-&gt;payment_type &amp;&amp; $this-&gt;payment_id==$method-&gt;payment_id)&#124;&#124; ($auto_select_default &amp;&amp; empty($this-&gt;payment_id)&amp;&amp;!$done)){ $checked = 'checked="checked"'; $done = true; } if($this-&gt;config-&gt;get('auto_submit_methods',1) &amp;&amp; empty($method-&gt;ask_cc) &amp;&amp; empty($method-&gt;custom_html) &amp;&amp; empty($checked)){ $checked.=' onclick="this.form.action=this.form.action+\'#hikashop_payment_methods\';this.form.submit(); return false;"'; } ?&gt; &lt;tr class="row&lt;?php echo $odd; ?&gt;"&gt; &lt;td&gt; &lt;input class="hikashop_checkout_payment_radio" id="radio_&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;" type="radio" name="hikashop_payment" value="&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;" &lt;?php echo $checked; ?&gt; /&gt; &lt;/td&gt; &lt;td&gt;&lt;label for="radio_&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;" style="cursor:pointer;"&gt; &lt;span class="hikashop_checkout_payment_image"&gt; &lt;?php if(!empty($method-&gt;payment_images)){ $images = explode(',',$method-&gt;payment_images); if(!empty($images)){ foreach($images as $image){ if(!empty($this-&gt;images_payment[$image])){ ?&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES .'payment/'. $this-&gt;images_payment[$image];?&gt;" alt=""/&gt; &lt;?php } } } } ?&gt; &lt;/span&gt; &lt;/label&gt; &lt;/td&gt; &lt;td&gt;&lt;label for="radio_&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;" style="cursor:pointer;"&gt; &lt;span class="hikashop_checkout_payment_name"&gt;&lt;?php echo $method-&gt;payment_name;?&gt;&lt;/span&gt;&lt;/label&gt; &lt;span class="hikashop_checkout_payment_cost"&gt; &lt;?php if(bccomp($method-&gt;payment_price,0,5) === 0) { $price_text = JText::_('FREE_PAYMENT'); } else { $pt = (int)$this-&gt;params-&gt;get('price_with_tax'); $price_text = JText::_('PRICE_BEGINNING'); $price_text .= '&lt;span class="hikashop_checkout_payment_price"&gt;'; if($pt){ $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price_with_tax,$method-&gt;payment_params-&gt;payment_currency); } if($pt == 2) $price_text .= JText::_('PRICE_BEFORE_TAX'); if($pt == 2 &#124;&#124; $pt == 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price,$method-&gt;payment_params-&gt;payment_currency); if($pt == 2) $price_text .= JText::_('PRICE_AFTER_TAX'); if($this-&gt;params-&gt;get('show_original_price') &amp;&amp; isset($method-&gt;payment_price_orig) &amp;&amp; bccomp($method-&gt;payment_price_orig, 0, 5)) { $price_text .= JText::_('PRICE_BEFORE_ORIG'); if($pt &gt; 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price_orig_with_tax, $method-&gt;payment_currency_orig); if($pt == 2) $price_text .= JText::_('PRICE_BEFORE_TAX'); if($pt == 2 &#124;&#124; $pt == 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price_orig, $method-&gt;payment_currency_orig); if($pt == 2) $price_text .= JText::_('PRICE_AFTER_TAX'); $price_text .= JText::_('PRICE_AFTER_ORIG'); } $price_text .= '&lt;/span&gt; '; $price_text .= JText::_('PRICE_END'); } echo $price_text; ?&gt; &lt;/span&gt; &lt;?php if(!empty($method-&gt;payment_description)){ ?&gt; &lt;br/&gt; &lt;div class="hikashop_checkout_payment_description"&gt;&lt;?php echo $method-&gt;payment_description;?&gt;&lt;/div&gt; &lt;?php } ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr class="hikashop_checkout_payment_ccinfo"&gt; &lt;td colspan="3"&gt; &lt;?php $this-&gt;method =&amp; $method; $this-&gt;setLayout('ccinfo'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php $row_index++; $odd = 1-$odd; } ?&gt; &lt;/table&gt; &lt;?php } else { ?&gt; &lt;div class="controls"&gt; &lt;div class="hika-radio"&gt; &lt;div class="hikashop_payment_methods_table"&gt; &lt;?php foreach($this-&gt;methods as $method){ $checked = ''; if(($this-&gt;payment_method==$method-&gt;payment_type &amp;&amp; $this-&gt;payment_id==$method-&gt;payment_id)&#124;&#124; ($auto_select_default &amp;&amp; empty($this-&gt;payment_id)&amp;&amp;!$done)){ $checked = 'checked="checked"'; $done = true; } if($this-&gt;config-&gt;get('auto_submit_methods',1) &amp;&amp; empty($method-&gt;ask_cc) &amp;&amp; empty($method-&gt;custom_html) &amp;&amp; empty($checked)){ $checked.=' onclick="this.form.action=this.form.action+\'#hikashop_payment_methods\';this.form.submit(); return false;"'; } ?&gt; &lt;div class="row&lt;?php echo $odd; ?&gt;"&gt; &lt;div class="katerina"&gt; &lt;div class="uk-grid" data-uk-grid-match="{target:'.uk-panel'}"&gt; &lt;div class="uk-width-large-1-1"&gt; &lt;div class="uk-panel uk-panel-box uk-panel-box-primary"&gt; &lt;input class="hikashop_checkout_payment_radio" id="radio_&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;" type="radio" name="hikashop_payment" value="&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;" &lt;?php echo $checked; ?&gt; /&gt; &lt;label class="btn btn-radio" for="radio_&lt;?php echo $method-&gt;payment_type.'_'.$method-&gt;payment_id;?&gt;"&gt;&lt;?php echo $method-&gt;payment_name;?&gt;&lt;/label&gt; &lt;span class="hikashop_checkout_payment_cost"&gt; &lt;?php if(bccomp($method-&gt;payment_price,0,5) === 0) { $price_text = JText::_('FREE_PAYMENT'); } else { $pt = (int)$this-&gt;params-&gt;get('price_with_tax'); $price_text = JText::_('PRICE_BEGINNING'); $price_text .= '&lt;span class="hikashop_checkout_payment_price"&gt;'; if($pt &gt; 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price_with_tax,$method-&gt;payment_params-&gt;payment_currency); if($pt == 2) $price_text .= JText::_('PRICE_BEFORE_TAX'); if($pt == 2 &#124;&#124; $pt == 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price,$method-&gt;payment_params-&gt;payment_currency); if($pt == 2) $price_text .= JText::_('PRICE_AFTER_TAX'); if($this-&gt;params-&gt;get('show_original_price') &amp;&amp; isset($method-&gt;payment_price_orig) &amp;&amp; bccomp($method-&gt;payment_price_orig, 0, 5)) { $price_text .= JText::_('PRICE_BEFORE_ORIG'); if($pt &gt; 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price_orig_with_tax, $method-&gt;payment_currency_orig); if($pt == 2) $price_text .= JText::_('PRICE_BEFORE_TAX'); if($pt == 2 &#124;&#124; $pt == 0) $price_text .= $this-&gt;currencyHelper-&gt;format($method-&gt;payment_price_orig, $method-&gt;payment_currency_orig); if($pt == 2) $price_text .= JText::_('PRICE_AFTER_TAX'); $price_text .= JText::_('PRICE_AFTER_ORIG'); } $price_text .= '&lt;/span&gt; '; $price_text .= JText::_('PRICE_END'); } echo $price_text; ?&gt; &lt;/span&gt; &lt;span class="hikashop_checkout_payment_image"&gt; &lt;?php if(!empty($method-&gt;payment_images)){ $images = explode(',',$method-&gt;payment_images); if(!empty($images)){ foreach($images as $image){ if(!empty($this-&gt;images_payment[$image])){ ?&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES .'payment/'. $this-&gt;images_payment[$image];?&gt;" alt=""/&gt; &lt;?php } } } } ?&gt; &lt;/span&gt; &lt;div class="hikashop_checkout_payment_description"&gt;&lt;?php echo $method-&gt;payment_description;?&gt;&lt;/div&gt; &lt;div class="ccinfo"&gt; &lt;?php $this-&gt;method =&amp; $method; $this-&gt;setLayout('ccinfo'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;?php $odd = 1-$odd; } ?&gt; &lt;/div&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; (function($){ $("#hikashop_payment_methods .hika-radio input:checked").each(function() { $("label[for=" + jQuery(this).attr('id') + "]").addClass('active btn-primary'); }); $("#hikashop_payment_methods .hika-radio input").change(function() { $(this).parents('div.hika-radio').find('label.active').removeClass('active btn-primary'); $("label[for=" + jQuery(this).attr('id') + "]").addClass('active btn-primary'); }); })(jQuery); &lt;/script&gt; &lt;/div&gt; &lt;?php } ?&gt; &lt;/fieldset&gt; &lt;/div&gt; &lt;?php } }

Thank you

Last edit: 10 years 6 months ago by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQ0NTAtY2hhbmdlLXBheW1lbnQtbWV0aG9kcy10YWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

10 years 6 months ago [\#240042](#240042) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change payment methods table](/forum/29-payment-methods/884450-change-payment-methods-table#240042 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hello again!  I need to change the payment methods table layout, instead of rows i want to display the payment methods in columns. I believe i can do that in the file checkout / payment.php? But i m having trouble changing the correct  to  etc. I also want to do that for shipping methods too!  Could you give a hint please?  Thank you!")*

Hi,

You can use such CSS:
.uk-panel-box-primary {
height: 150px;
}

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQ0NTAtY2hhbmdlLXBheW1lbnQtbWV0aG9kcy10YWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

10 years 6 months ago [\#240094](#240094) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Change payment methods table](/forum/29-payment-methods/884450-change-payment-methods-table#240094 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hello again!  I need to change the payment methods table layout, instead of rows i want to display the payment methods in columns. I believe i can do that in the file checkout / payment.php? But i m having trouble changing the correct  to  etc. I also want to do that for shipping methods too!  Could you give a hint please?  Thank you!")*

Yes i thought so.
I was just wondering why CSS works in one view file but not in another.

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQ0NTAtY2hhbmdlLXBheW1lbnQtbWV0aG9kcy10YWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 6 months ago [\#240107](#240107) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change payment methods table](/forum/29-payment-methods/884450-change-payment-methods-table#240107 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hello again!  I need to change the payment methods table layout, instead of rows i want to display the payment methods in columns. I believe i can do that in the file checkout / payment.php? But i m having trouble changing the correct  to  etc. I also want to do that for shipping methods too!  Could you give a hint please?  Thank you!")*

Hi,

CSS is working with selectors. For more details ; you can read documentation on CSS over the Internet.
Our support is focus on the components and how to use it ; the CSS is outside the support we can provide.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQ0NTAtY2hhbmdlLXBheW1lbnQtbWV0aG9kcy10YWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")**
- [![verzevoul's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8351-verzevoul "View verzevoul's Profile") Topic Author
- [ Offline](/forum/user/8351-verzevoul)

Less More

- Posts: 1195
- Thank you received: 13
-
-

10 years 5 months ago [\#243326](#243326) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Change payment methods table](/forum/29-payment-methods/884450-change-payment-methods-table#243326 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hello again!  I need to change the payment methods table layout, instead of rows i want to display the payment methods in columns. I believe i can do that in the file checkout / payment.php? But i m having trouble changing the correct  to  etc. I also want to do that for shipping methods too!  Could you give a hint please?  Thank you!")*

Hello!

i created panel boxes instead of table ok, one question:

when i choose a shipping or payment method the active button changes background (see screenshot), what i would like is the whole box to have different background. Do i need some php here maybe?

Could you help me with this?

Thank you

- [ ![3&#95;2016-06-17.jpg](/forum/attachment/32156) ](/forum/attachment/32156 "3&#95;2016-06-17.jpg") [ ](/forum/attachment/32156?download=1 "3&#95;2016-06-17.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQ0NTAtY2hhbmdlLXBheW1lbnQtbWV0aG9kcy10YWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

10 years 5 months ago [\#243339](#243339) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change payment methods table](/forum/29-payment-methods/884450-change-payment-methods-table#243339 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.5  Hello again!  I need to change the payment methods table layout, instead of rows i want to display the payment methods in columns. I believe i can do that in the file checkout / payment.php? But i m having trouble changing the correct  to  etc. I also want to do that for shipping methods too!  Could you give a hint please?  Thank you!")*

Hi,

Again, that's not a HikaShop question.
Here is a page which talks about adding CSS to a parent element of another element:
[ stackoverflow.com/questions/8114657/how-...hild-element/8114664](http://stackoverflow.com/questions/8114657/how-to-style-the-parent-element-when-hovering-a-child-element/8114664)

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODQ0NTAtY2hhbmdlLXBheW1lbnQtbWV0aG9kcy10YWJsZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.137 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
