How to change the color of buttons at the checkout

  • Posts: 128
  • Thank you received: 0
10 years 2 weeks ago #202123

I want to change the colors of the buttons via CSS at the time of checkout!

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 2 weeks ago #202131

Hi,

You have to add css properties to your template css file directly, properties like:

.hikashop_checkout_page .hikashop_cart_input_button{
    /* My property */
}
.hikashop_notice_box_content input{
    /* My property */
}

www.hikashop.com/support/support/documen...ize-the-display.html

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

  • Posts: 128
  • Thank you received: 0
10 years 2 weeks ago #202202

I must edit the CSS of my template or access HikaShop > Display > Views and edit?

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
10 years 2 weeks ago #202209

Hi,

Any of them is ok. Whether you add your custom CSS in your template or in HikaShop, that CSS will be on the pages of your shop.

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

  • Posts: 128
  • Thank you received: 0
10 years 2 weeks ago #202310

I added the code as you indicated.
I added the "custom.css" and "styles.css" my template.
But it did not work!

www.studiocenter.com.py/py/

Last edit: 10 years 2 weeks ago by sergiobertini.

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

  • Posts: 12953
  • Thank you received: 1778
10 years 2 weeks ago #202314

Hello,
Can you show me which CSS code did you use on your CSS files to change the color of your checkout buttons ?

Last edit: 10 years 2 weeks ago by Mohamed Thelji.

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

  • Posts: 128
  • Thank you received: 0
10 years 2 weeks ago #202498

I used this:

.hikashop_checkout_page .hikashop_cart_input_button{
background: #9dd53a;
background: -moz-linear-gradient(top, #9dd53a 0%, #a1d54f 37%, #80c217 63%, #7cbc0a 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9dd53a), color-stop(37%,#a1d54f), color-stop(63%,#80c217), color-stop(100%,#7cbc0a));
background: -webkit-linear-gradient(top, #9dd53a 0%,#a1d54f 37%,#80c217 63%,#7cbc0a 100%);
background: -o-linear-gradient(top, #9dd53a 0%,#a1d54f 37%,#80c217 63%,#7cbc0a 100%);
background: -ms-linear-gradient(top, #9dd53a 0%,#a1d54f 37%,#80c217 63%,#7cbc0a 100%);
background: linear-gradient(to bottom, #9dd53a 0%,#a1d54f 37%,#80c217 63%,#7cbc0a 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9dd53a', endColorstr='#7cbc0a',GradientType=0 );
}

.hikashop_notice_box_content input{
background: #e6f0a3;
background: -moz-linear-gradient(top, #e6f0a3 0%, #d2e638 50%, #c3d825 51%, #dbf043 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e6f0a3), color-stop(50%,#d2e638), color-stop(51%,#c3d825), color-stop(100%,#dbf043));
background: -webkit-linear-gradient(top, #e6f0a3 0%,#d2e638 50%,#c3d825 51%,#dbf043 100%);
background: -o-linear-gradient(top, #e6f0a3 0%,#d2e638 50%,#c3d825 51%,#dbf043 100%);
background: -ms-linear-gradient(top, #e6f0a3 0%,#d2e638 50%,#c3d825 51%,#dbf043 100%);
background: linear-gradient(to bottom, #e6f0a3 0%,#d2e638 50%,#c3d825 51%,#dbf043 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e6f0a3', endColorstr='#dbf043',GradientType=0 );
}

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
10 years 2 weeks ago #202506

Hi,

It doesn't work because the solution provided by Xavier is for when you didn't change the "button style" setting of the HikaShop configuration from "normal" to "CSS".

Since you did, the CSS class names to use are different and should be:
.hikashop_checkout_page .hikashop_cart_button{
/* My property */
}
.hikashop_notice_box_content a{
/* My property */
}

Note that if you know CSS, you should actually be able to find which class name to use yourself with your browser's inspector. It's easy to do and we have a tutorial on that here:
www.hikashop.com/support/support/documen...ize-the-display.html

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

  • Posts: 128
  • Thank you received: 0
10 years 2 weeks ago #202554

I do not know identify the class!
I just added the code I had a button in gradient and include along with the code you gave me, the "Custon.css" my template.

In the settings, you have an option called "General Options view" and in the "Button style" is marked "CSS".
My question is: can enter the code for this button in the "CSS" in the "CSS file of the page" ????

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

  • Posts: 12953
  • Thank you received: 1778
10 years 2 weeks ago #202556

Hello,

In the settings, you have an option called "General Options view" and in the "Button style" is marked "CSS".
My question is: can enter the code for this button in the "CSS" in the "CSS file of the page" ????

Yes, as Nicolas said, if you have set the "Button style" option to CSS, you'll have to use the CSS code that Nicolas gave you and complete it.

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

  • Posts: 128
  • Thank you received: 0
10 years 2 weeks ago #202643

I changed the code: Hikashop Menu> Configuration> Tab Display> Option "CSS".
There clicked on "Edit" and enter the code shown above.


But still does not work!

Attachments:
Last edit: 10 years 2 weeks ago by sergiobertini.

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
10 years 2 weeks ago #202652

I don't see the change in your www.hikashop.com/media/kunena/attachment...ay_configuration.png screenshot.

As I said, you need to change the CSS:
.hikashop_checkout_page .hikashop_cart_input_button{
to:
.hikashop_checkout_page .hikashop_cart_button{

and :
.hikashop_notice_box_content input{
to:
.hikashop_notice_box_content a{

Please follow our explanations and it will work.

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

  • Posts: 128
  • Thank you received: 0
10 years 2 weeks ago #202734

OK!
Now it worked!
However, on the screen that we select "Continue Shopping" or "complete application", the buttons are still without CSS effect.

Can you help me? The following image attached!

Attachments:

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
10 years 1 week ago #202735

Hi,

Please follow our explanations and it will work...
You still didn't replace the code
.hikashop_notice_box_content input{
to:
.hikashop_notice_box_content a{
in your CSS.

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

  • Posts: 128
  • Thank you received: 0
10 years 1 week ago #202844

Yes I changed, but the button is still the same!
You saw the picture I showed you? Now are other buttons that want to change the process of adding the product to cart.
Only the Next button checkout that changed.

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
10 years 1 week ago #202846

I invite you to open the file www.studiocenter.com.py/py/media/com_hik...tom.css?t=1432506271 yourself.

You can see that you still have "input" there instead of "a":
monosnap.com/file/JW0XqEQfulcEI5naVD817kkr9T15kz

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

  • Posts: 128
  • Thank you received: 0
10 years 1 week ago #202938

OK, It has changed!
But when adding a product to the cart, the lightbox with the message keeps popping up with old buttons!
The CSS still does not work!

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 week ago #202947

Hi,

Please apply the css properties on the following ids:
#hikashop_add_to_cart_continue_button{

}
#hikashop_add_to_cart_checkout_button{

}

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

Time to create page: 0.128 seconds
Powered by Kunena Forum