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)
20 Jan 2009 1:59 PM
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
20 Jan 2009 2:29 PM
Riyaz
How do you remove the Option Name displayed before the List box?
David
Riyaz (Guest)
20 Jan 2009 3:33 PM
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)
20 Jan 2009 3:37 PM
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
20 Jan 2009 6:35 PM
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
20 Jan 2009 8:40 PM
Hello David,
Please open the file 'includes/items_properties.php' and find the following line
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.
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
4 Feb 2009 1:52 AM
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
4 Feb 2009 4:57 AM
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.