Use Bootstrapbut not in a payment selector

  • Posts: 177
  • Thank you received: 1
11 years 1 month ago #164818

Hi There,
i'd like to use a bootstrap design, but i don't want use it when customers choose the payment selection. I'd like to use a radio button.
The same things, when customers choose shipment options.
How can i do this?

Thanks in advance.

Andrea

Last edit: 11 years 1 month ago by andreasuriani.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #164849

Hi,

You can edit the views "checkout / payment" and "checkout / shipping" and add at the top of the file:

define('HIKASHOP_RESPONSIVE', false);
And at the end:
define('HIKASHOP_RESPONSIVE', true);

Please Log in or Create an account to join the conversation.

  • Posts: 177
  • Thank you received: 1
11 years 1 month ago #164909

Done, but it dosn't work...

if u need to enter on my backend, i've sent a message for nicolas yesterday.
address is photostore.andreasuriani.com

Thanks,

Andrea

Last edit: 11 years 1 month ago by andreasuriani.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #164946

Hi,

I think that the css properties of the template will change the way the radio buttons are displayed.
To avoid that, you have to not load the bootstrap css properties so potentially one or many css files.
And as these properties are potentially in your own template, so it can be complicated.

Another way could be to just override your css properties about the payment and shipping parts of the checkout, in order to not "display none" the radio buttons, etc.

Here is documentation to customize the layout:
hikashop.com/support/support/documentati...ize-the-display.html

Please Log in or Create an account to join the conversation.

  • Posts: 177
  • Thank you received: 1
11 years 1 month ago #164999

I think is difficult for me..

isn't possibile to choose just radio button on "checkout / payment" and "checkout / shipping" maybe replace the code?
Can u write me the php code just for radio button?

Thanks in advance

Andrea

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #165004

Hi,

The first solution was near to be correct, you still have to edit the views but replace:

if(!HIKASHOP_RESPONSIVE)
By:
if(true)
for each occurrence.

Please Log in or Create an account to join the conversation.

  • Posts: 177
  • Thank you received: 1
11 years 1 month ago #165140

Perfect Xavier!
It works perfectly!

Last thing:

How can i change the sequence of shipping datas show?
Imean, hikashop shows: Radio button - image - description and price

i'd like this sequence:
radio button, image, price, description.

Thanks in advance!
Andrea

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #165141

Hi,

Still in the indicated views, you have to move the desired part at the desired place.
For example, in the payment view, you have to move the code:

					<span class="hikashop_checkout_payment_cost">
<?php
				if($method->payment_price != "0"){
					echo $this->currencyHelper->format($method->payment_price,$this->full_total->prices[0]->price_currency_id);
				}
				else
					echo JText::_('FREE_PAYMENT');
?>
					</span>
upper and between new <td></td> tags.

Please Log in or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum