Select box on different line to label

  • Posts: 279
  • Thank you received: 1
11 years 8 months ago #124440

-- url of the page with the problem -- : digitalguarddog.com/dd_dev/automobiles-t...yless-combos/product
-- HikaShop version -- : 2.2.1
-- Joomla version -- : 2.5.14
-- PHP version -- : 5.3.3
-- Browser(s) name and version -- : n/a
-- Error-message(debug-mod must be tuned on) -- : n/a

From the image, I need 2 things. Move the "Select a button ***" label to above the drop down selector. Second, close up the big gap between that and the base price (in dark red) above it.

I'm pretty sure the code I need to modify is in the option.php file (at least for moving the label above the select box), but I'm not so sure how to close that big gap up.

Attachments:

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 8 months ago #124501

Hi,

You are right for the view "product | option" and the label/select position.

For your "gap", you have to edit the view "product | show_default". There are some "<br/>" inserted in the page after some blocks (dimensions, characteristics) that are not displayed in your case and which create this "gap".

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: 279
  • Thank you received: 1
11 years 8 months ago #124513

Hi Jerome

Thanks for the reply. Gap now satisfactory.

What exactly do I edit, and how, to get the select box on 2 lines? I can see the code (I think), but can't make it 2 lines.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #124659

Hi,

You have to add "</tr><tr>" between the tags "</td>" and "<td>" to add a new line in the table.

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

  • Posts: 279
  • Thank you received: 1
11 years 8 months ago #124752



Thanks Xavier - was trying all sorts of ways and it wasn't working.

Last thing...I'm seeing that certainly the HS product display is made up of a number of different PHP file - lising_price.php, option.php, etc. I have no doubt there's a good reason for this - maintenance I'm picking. However, it becomes confusing to a "coding tinkerer" like me who doesn't have the skills to follow it all through! :lol:

I want to add a line break between the star ratings (which come from listing_vote.php) and the price (which comes from listing_price.php). You'll see in the image that they're jammed up against each other. Now I know that \n is a line break in PHP, but I cannot figure out where this goes. I've tried a number of spots and it either has no effect or breaks the product listing entirely! :oops:

Can you tell me where to put this, or what I should do please? Thanks.

Attachments:
Last edit: 11 years 8 months ago by trogladyte.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #124808

Hi,

I think that doing that via some css is not a bad thing ;)
Here is some documentation:
www.hikashop.com/support/documentation/1...ize-the-display.html

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

  • Posts: 279
  • Thank you received: 1
11 years 8 months ago #124934

Brilliant thank you!!

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

Time to create page: 0.080 seconds
Powered by Kunena Forum