Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

how to add a <div>

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-18-2011, 08:10 PM
 
ScrapbookSupplies ScrapbookSupplies is offline
 

eXpert
  
Join Date: Oct 2009
Location: Texas
Posts: 325
 

Default 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


Click image for larger version

Name:	new-div.jpg
Views:	198
Size:	113.8 KB
ID:	2625
__________________
(1) xCart
(1) xPayments

2-12-14 FOR SALE
Reply With Quote
  #2  
Old 06-19-2011, 08:08 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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
Reply With Quote
  #3  
Old 06-19-2011, 08:32 AM
 
ScrapbookSupplies ScrapbookSupplies is offline
 

eXpert
  
Join Date: Oct 2009
Location: Texas
Posts: 325
 

Default 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
Reply With Quote
  #4  
Old 06-19-2011, 06:32 PM
 
ScrapbookSupplies ScrapbookSupplies is offline
 

eXpert
  
Join Date: Oct 2009
Location: Texas
Posts: 325
 

Default 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?


Click image for larger version

Name:	forum-div.jpg
Views:	193
Size:	107.8 KB
ID:	2627
__________________
(1) xCart
(1) xPayments

2-12-14 FOR SALE
Reply With Quote
  #5  
Old 06-20-2011, 06:59 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default 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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:27 AM.

   

 
X-Cart forums © 2001-2020