Add to cart button in product view not right

  • Posts: 18
  • Thank you received: 0
7 years 5 hours ago #268172

Hello,

So the "add to cart" button is alligned in the center under the options field. When there is no chracteristic choosen it aligns correctly.
The margin is the to auto but when i change the margin the button also aligns left in the product listing.
How can I fix that?


Thanks :)

Attachments:

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

  • Posts: 4519
  • Thank you received: 611
  • MODERATOR
6 years 11 months ago #268218

Hello,

Sorry but I'm not sure to understand your issue, can you explain more precisely your needs or your issue ?
You want modify your Css but you don't succeed ? Or there something that don't fit your display needs ?

In order to better answer you can you provide and Url link to better understand your Css files.

Awaiting news from you.

Regards

Last edit: 6 years 11 months ago by Philip.

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

  • Posts: 18
  • Thank you received: 0
6 years 11 months ago #268263

Hi Philip

The "add to cart" buttom will center itself under the selection field when a characteritic is choosen in the backend . like in the picture.
when there is no characteristics choosen it aligns left under the price and description.

Here's the link: josephinesjewellery.ch.dedi1028.your-ser...e/index.php/braclets

Thnaks in advance.

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

  • Posts: 22
  • Thank you received: 0
6 years 11 months ago #268283

I am the same problem after upgrade up 3.0.1

hikashop.bikehome.com.tw/display-all-acc...ies/parts/category/c

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
6 years 11 months ago #268274

Hello,

I'm sorry but your issue is CSS related and the CSS is coming from your template.
So I'm afraid that outside the limit of our support.
But we do have a documentation page which explain basis of CSS edition :
www.hikashop.com/support/documentation/1...the-display.html#css

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 18
  • Thank you received: 0
6 years 11 months ago #268349

but the problem is, that for both buttons there are only one php file. if i edit the table and add the class or id to it it will apear on the product listing and the productpage. do you understand my problem? I can't change the css beceause if i do it will be applied on both buttons since i cant give both tables a diffrent id or class...

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
6 years 11 months ago #268363

Hi,

I'm sorry but you're wrong.
You just have to write the correct CSS so that it applies only to one of both.
For example:
.hikashop_products_listing .hikashop_cart_input_button{
color : green;
}
will only apply on the listing, and:
.hikashop_product_page .hikashop_cart_input_button{
color : blue;
}
will only apply on the product page.
Please understand that this is a user support forum for HikaShop.
We can't provide courses on CSS coding. If you need to learn about CSS coding, I'd recommend some online tutorials:
css-tricks.com/specifics-on-css-specificity/

Last edit: 6 years 11 months ago by nicolas.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum