Skip to main content

center the quantity selector in cart module

2 years 1 month ago - 2 years 1 month ago #363957 by Rejouisens
-- url of the page with the problem -- : www.ndnfragrance.com/index.php?option=co...w&Itemid=535&lang=fr

Hi,

I try to center the quantity input in the cart module, the one accessible when clicking the add to cart button. I don't find the solution. Defining a height and/or using vertical-align:middle doesn't change anything.

On that same cart module, how do I increase the image size?

How do I put the "proceed to checkout" button at the bottom of the page?

And finally, whatever variant I choose, it shows the name of the product. This means the customer doesn't know which variant is in the cart. The variant is defined by"volume". Is there a way to add the volume name in the cart module?
Last edit: 2 years 1 month ago by Rejouisens.

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

2 years 1 month ago - 2 years 1 month ago #363968 by Philip
Hello,

In order to answer you step by step :
"I try to center the quantity input in the cart module, the one accessible when clicking the add to cart button. I don't find the solution. Defining a height and/or using vertical-align:middle doesn't change anything."

This css command will do the trick :


"On that same cart module, how do I increase the image size?"
This kind of css command will allow you to modify your image size.
Code:
div#hikashop_cart_module img.hikashop_product_cart_image { width: 130px; }

"How do I put the "proceed to checkout" button at the bottom of the page?"
Code:
div#offcanvascart a.hikabtn.hikashop_cart_proceed_to_checkout { position: absolute; bottom: 5px; }

You have a custom Css that hide the variant name, remove it to solve your issue :


Regards
Last edit: 2 years 1 month ago by Philip.
The following user(s) said Thank You: Rejouisens

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

2 years 1 month ago #363977 by Rejouisens
It works great! Thank you!
The only point is for the size of images

"On that same cart module, how do I increase the image size?"
This kind of css command will allow you to modify your image size.

div#hikashop_cart_module img.hikashop_product_cart_image {
width: 130px;
}


That works except it stille taking into account the 50x50 thumbnail definition. So, when I increase the size it makes a blurred image.

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

2 years 1 month ago - 2 years 1 month ago #364000 by Philip
Hello,

This must be because you set your thumbnail size to 50 px here:


your solution can be to increase this, AND adjust it in your relative Item Menu via settings in Product Options tab OR via specific custom Css.
Regards
Last edit: 2 years 1 month ago by Philip.

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

2 years 1 month ago #364112 by Rejouisens
Sorry, the problem is not there.
The thumbnail width*height is set to 115x115

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

2 years 1 month ago - 2 years 1 month ago #364113 by Philip
Hello,

Please, provide us this elements :
- Url link to your backend (administrator)
- Backend user references (with maximum ACL)

Note : Use our Contact us form to provide these elements, and don't forget to add an url link to this topic.
Regards
Last edit: 2 years 1 month ago by Philip.

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

2 years 4 weeks ago - 2 years 4 weeks ago #364134 by Rejouisens
This message contains confidential information
Last edit: 2 years 4 weeks ago by Philip.

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

2 years 4 weeks ago - 2 years 4 weeks ago #364140 by Philip
Hello,

Thnaks for your element, we have found a solution for your specific need.
You have already an override of your view product/cart.

You can force your image parameters directly in your override view around line 484 - 485
You have this :
Code:
$width = (int)$this->config->get('cart_thumbnail_x', 50); $height = (int)$this->config->get('cart_thumbnail_y', 50);
Change your 2 parameters "50" for "100" (or "200" if required), to get this :
Code:
$width = (int)$this->config->get('cart_thumbnail_x', 100); $height = (int)$this->config->get('cart_thumbnail_y', 100);

Then you can adjust via a custom css your image width.
Regards
Last edit: 2 years 4 weeks ago by Philip.
The following user(s) said Thank You: Rejouisens

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

Time to create page: 0.061 seconds
Powered by Kunena Forum