lenght of product in module card

  • Posts: 846
  • Thank you received: 92
9 years 1 month ago #244740

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

in the hikashop demo page for shoes kids the name of shoes are short .In the case of the name is wide ; Is there a way to reduce the name in module cart only to fit the content in a column ( to have less than 2 lines instead many like 5 )?
i test and i can see the charactaerisitic or variant value appear in the cart after the product name and it is efficient
perhaps the text content in description of a product should be use instead the product name inside a hover popup ?

the best seem to define a selector with css properties widh and height overflow : hidden for the name to limit the lengt hof line and the number of line

Attachments:
Last edit: 9 years 1 month ago by lionel75.

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

  • Posts: 2143
  • Thank you received: 747
9 years 1 month ago #244742

It takes only a little bit of generic, simple CSS to effectively truncate text, even indicating it with an ellipsis.
Learn more e.g. here: css-tricks.com/snippets/css/truncate-string-with-ellipsis/

Other methods, like your mentioned "hover popup" (aka "tooltip"?), require other and more customization which you may apply as per your needs.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 846
  • Thank you received: 92
9 years 1 month ago #244766

Hi

1) thank's for the trick !
for pop up the best is to study / take the code from already layout /design page ( hks demo is nice )


2) i test the demo hikashop website and see when copy url from firefox to chrome browser that the rendering page is not the same . Does this behaviour is because some session cookies variable are use ? then use filter in chrome ..nothing work !!





regard's

Attachments:
Last edit: 9 years 1 month ago by lionel75.

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

  • Posts: 846
  • Thank you received: 92
9 years 1 month ago #244770

I like the way chekbox change the number of item in input select box using Menu - >compoent -> hikashop -configuration and then system -> chekout -> Login & registration -> DefaultregistrationView & Registration



Does this behaviour is a joomla one or hikashop implentation ?
In all the case login should appear whatever chekbox is selected !!
if in chekbox , guest is selected then guest item appear in select input .
if i select any chekbox in all the case guest chekbox item is available and so compatible with the others chekbox
Does the chekbox is really usefull ? why not put all the item in the select box
Why the simplified item doesn't work on my webserver ?





Does this make sense ?
perhap the behaviour inside chekbox cant be implemented inside the select box .
is it not easier to have only select box wit hchekbox in it instead another chekbox ?.
for resume chek the 3 items one by one in chekbox ll generate 3 items in the select box . if one appear the other don't appear . so al litem are in select guest and login ca nbe choose but for the 3 othere only one item can be use not al lthe 3 in selct box !!

Attachments:
Last edit: 9 years 1 month ago by lionel75.

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

  • Posts: 84233
  • Thank you received: 13675
  • MODERATOR
9 years 1 month ago #244796

Hi,

2. The demo website displays the same regardless of the browser you're using. I don't see why it would be different. Please provide the link and we can check.

3. It's done by HikaShop.

4.

In all the case login should appear whatever chekbox is selected !!

Why is that ? If you turn off the "login" setting above, then it won't display.
And if you have only a guest checkout without registration, you might not want the login to appear. So it's normal that it is optional.

5.

Does the chekbox is really usefull ? why not put all the item in the select box

They are, otherwise, we would have done it differently.
It's stupid to have a registration and a simplified registration activated at the same time. Because that would mean that you would let the customer choose how to register (with or without selecting a password and entering a username). It would be confusing to the customer. So it's one or the other.
And we don't put all the elements in a dropdown because otherwise you could select a mode which wasn't checked in the "registration" setting, and that would be illogical. What should the program do if you select the "registration" mode as default if you didn't select it as one of the modes available to the customer ? So to avoid that illogical case, you can only select among the selected choices in that dropdown.

6.

perhap the behaviour inside chekbox cant be implemented inside the select box .
is it not easier to have only select box wit hchekbox in it instead another chekbox ?.

HTML doesn't allow for that.
You can have HTML in the choices of a dropdown.

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

  • Posts: 846
  • Thank you received: 92
9 years 1 month ago #244816

Hi
I test after publish my last post and i understand better now the logic and how it work .. the last post should be remove !!
thank's for your reply

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

Time to create page: 0.103 seconds
Powered by Kunena Forum