Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
David_at_WSS
David_at_WSS
I have set up an Option for a product that uses a ListBox.
 
When the ListBox is displayed the first item on the list is:
Select OptionTitle
It is then followed with the list items I set up.
 
Ex: Number of Days: <Select Number of Days>
 
Is there a way to hack the code so it only show Select and not include the option title? I do not know where the ListBox is built in the ViArt code.
 
Thanks
David
 
Riyaz (Guest)
Riyaz (Guest)
I too wold be interested to find out. BTW David, there is way to remove the Option outside the List box all together if that help at all. This way the selection question is only visible within the ListBox.
 
David_at_WSS
David_at_WSS
Riyaz
 
How do you remove the Option Name displayed before the List box?
 
David
 
Riyaz (Guest)
Riyaz (Guest)
Hi David:
 
I did not change any codes, since I don't know PHP or HTML, but I can hack around.
 
What I did was in the admin section for that particular product I inserted CSS code in the 'Option Style' box as such:
color:transparent;
 
So whatever you have showing before the list box does not show. This avoids the question being asked twice.
 
What I found was I also able to bring the options more closer (less lines in between). I have several option choices for each product.
 
I hope this helps you. If you have better ideas let me know.
 
Riyaz (Guest)
Riyaz (Guest)
Hey David:
 
Just remembered something:
 
You can also set the option selection to a particular default. So for instance you have Colour Choices and if Red is the most common selection, you could set Red option as your default selection.
 
In this setup you don't have a selection question listed in the list box that is visual.
 
David_at_WSS
David_at_WSS
Riyaz,
 
Thanks for the ideas.
 
The transparency option, I think would still have the space for the name before the control. This would make the design of the page difficult.
 
I do use defaults when possible put the control is still the width of the first item. I have a list of numbers from 1 to 7. The control should be small but it is large because of the first item "Select Number of Days".
 
I just need to find where this string is constructed. "Select" + ControlName
Is it in php, javascript?????
 
ViArt masters any ideas?
 
Thanks, David
 
Vito
Vito
Hello David,
 
Please open the file 'includes/items_properties.php' and find the following line
$properties_values = "<option value=\"\">" . SELECT_MSG . " " . $property_name . "</option>" . $eol;
and change it to
$properties_values = "<option value=\"\">" . SELECT_MSG . "</option>" . $eol;
 
Thanks,
ViArt Team
 
David_at_WSS
David_at_WSS
Thank you ViArt Team,
 
Great Support, happy I dumped Magento for ViArt.
 
David
 
foxtrotdomains.com
foxtrotdomains.com
Hi David or Viart Team:
 
I have many options in one product. The option style (option question) aligns left no problem by default. The list box follows the option, since my option length varies, the list box also shows in an out (jagged fashion).
I would like to have the list boxes all line up nicely after the option, how do I achieve this.
 
xxxxxxxxx |______
xxxxxxxxxxxx |_________
xxxx |____
 
So all the x's should lne up left (which they do by default)
 
How to get the boxes to line up.
 
Kindly advise please.
 
David_at_WSS
David_at_WSS
Foxtrot
 
I know what you are asking for, aligning the option controls with each other.
xxxx      |________
xxx        |________
xxxxxx   |________
 
My site does not require this design so I have not looked into the code changes. I suspect that you would have to modify the php file. It would be a big deal as you would have to add a table to each control type's code. You would need to decide how much space you would need for the control titles. This would then "lock you in" for ALL controls in all your pages that use the control.
The easiest thing to do is add a <br/> after the title HTML so the control will be aligned to the left under the title. This does not require any php coding. You would then get the following.
 
xxxxx
|________
xx
|________
xxxxxxxx
|________
 
Good luck,
David
 
foxtrotdomains.com
foxtrotdomains.com
Thanks David, that is what I would like to do. Currently I have it the way you are recommending.
I did not realize it was such a big deal with the tables and coding etc.
Appreciate your input, David.
 
SajMalik
SajMalik
Hi, your foxtrotdomains, your thread here:
http://www.viart.com/option_list_box_display_help_needed.html
address this issue.
 
I would recommend that you do as I suggested and ask Viart. Put in a support question. Wink
 
foxtrotdomains.com
foxtrotdomains.com
Done Chris, thanks