| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
how to add a <div> | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
how to add a <div>
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
__________________
(1) xCart (1) xPayments 2-12-14 FOR SALE |
|||||||
#2
|
|||||||||
|
|||||||||
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.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#3
|
|||||||
|
|||||||
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.
__________________
(1) xCart (1) xPayments 2-12-14 FOR SALE |
|||||||
#4
|
|||||||
|
|||||||
Re: how to add a <div>
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?
__________________
(1) xCart (1) xPayments 2-12-14 FOR SALE |
|||||||
#5
|
|||||||||
|
|||||||||
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.
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
|
|||
X-Cart forums © 2001-2020
|