Showing Fields from Custom Order Table

  • Posts: 58
  • Thank you received: 2
6 years 9 months ago #286831

-- url of the page with the problem -- : www.litterpicks.com
-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3

Not sure if this is a question or a suggestion--or whether I should ask it in Hikashop or Hikamarket forum...

When a vendor is logged in to the front end and goes to the Order Details page in their portal, the layout showing all of the details of the order (including custom fields created in the order table) is not good. The row labels don't line up with the correct information. I'm attaching a screenshot showing the issue. Think this view might be ordermarket / show_block_fields.php

It would be great if this was formatted similar to how the order is viewed by a buyer on the Customer order page. The layout of the custom order fields looks fine. (we've attached this screenshot as well showing how it looks fine for a customer)

Any suggestions on how to fix this layout on the order page when viewed by a vendor? We've already added some CSS to make the labels that are longer than about 30 px show up on multiple lines instead of being cut off

dl.hikam_options > dt {
text-overflow: inherit !important;
white-space: normal !important;
}

Any thoughts on how to line up the submitted order field data with the Field label?

Attachments:
Last edit: 6 years 9 months ago by chellemiller11. Reason: added screenshot

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 9 months ago #286871

Hello,

Regarding the comparison HikaMarket/HikaShop display, in the "customer" view, it's a table and it's not a dl/dt/dd structure. Table are not responsive so we don't use that anymore in HikaMarket.
We choose a homogeneous display for the vendor order details and if the fields are too long there is a tooltip system which is activated.
Afterwards, if your text is long, you can see to use a little CSS override to change only the order custom field display to be "not" in horizontal mode. It is also possible to perform a view override but the usage of CSS override is more appropriate.

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: 58
  • Thank you received: 2
6 years 9 months ago #286923

OK. Thanks for the explanation Jerome. Makes sense. Not sure if this will help anyone else, but we fixed it using the following CSS

.hikamarket_order dl.hikam_options.large > dt, .hikamarket_order dl.hikam_options.large > dd {
    width: 100% !important;
    display: block !important;
    text-align: left !important;
    float: none !important;
    margin: 0 !important;
    padding: 10px 0 !important;
}

Last edit: 6 years 9 months ago by Jerome. Reason: [code] tag is nicer for code
The following user(s) said Thank You: Jerome

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

Time to create page: 0.037 seconds
Powered by Kunena Forum