![]() |
how to add a <div>
1 Attachment(s)
Hi,
I am adding products to a site that have variants. Would like to add an additional div line, like the "details" and "options" but am not sure where or how to do this. Can someone advise? Am attaching a screenshot to show what I am trying to do. Thanks, Jeanne Attachment 2625 |
Re: how to add a <div>
I think you are confused. The <div> tag defines a division or a section in an HTML document. It has nothing to do with creating a "line". What you are referring to in your image are probably another HTML tag, the <HR>, which creates a horizontal line in an HTML page.
Check out http://www.w3schools.com/html/default.asp to see examples of each. |
Re: how to add a <div>
I was thinking a <div> because I wanted to make those items into another group of sorts, with a line that says "customized products" or something like that. I guess even a horizontal rule would work but I don't know how to achieve it.
|
Re: how to add a <div>
1 Attachment(s)
I have kind of found what I am looking for, I copied the code to make the "options" line in customer/main/product_details.tpl.
Am attaching a screenshot of the end result. It is what I was wanting but I was hoping to put it between the options. Maybe via css? Attachment 2627 |
Re: how to add a <div>
I'm not sure what you mean by "copied the code" since it seems unnecessary. To get what you want go to the product in admin and create a new option and choose "Custom text field" as the Option type (this will allow the customer to enter some text, and it will displayed with the order). Then you can make it show up in whatever order you want by adjusting the "OrderBy" field.
Edit: If all you are trying to do is place a "line" somewhere, that is a simple <hr> as I said before. |
All times are GMT -8. The time now is 02:26 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.