template need your advice in codes

General ShopSite user discussion

template need your advice in codes

Postby Mannon » Tue Nov 04, 2008 10:49 am

Code: Select all
<table width="600" align="center" border="0" cellpadding="0" cellspacing="0">
<tr><td><table width="100%" cellspacing="0" border="0">
<tr valign="top">
<td  align="left">
<!-- google_ad_section_start -->
<script src="http://www.***/ddtab.js" type="text/javascript"></script>
<div id="tablist">
<ul style="padding:0px;margin:0px">
<li><a href="javascript:void(0);" title="Most Recent" id="tab1"  onclick="expandcontent('sc1', this)" ><span>Description</span></a></li>
<li><a href="javascript:void(0);" id="tab2" title="Sort by Rating" onclick="expandcontent('sc2', this)"><span>Features</span></a></li>
<li><a href="javascript:void(0);" id="tab3" title="Sort by Rating" onclick="expandcontent('sc3', this)"><span>Colors</span></a></li>
<li><a href="javascript:void(0);" id="tab4" title="Sort by Rating" onclick="expandcontent('sc4', this)"><span>Sizes</span></a></li>
<li><a href="javascript:void(0);" id="tab5" title="Sort by Rating" onclick="expandcontent('sc5', this)"><span>Discounts</span></a></li>
<li><a href="javascript:void(0);" id="tab6" title="Sort by Rating" onclick="expandcontent('sc6', this)"><span>Other Info</span></a></li>

<li>
<div style="float:left;display:none" align="left">
</div>

</li>
</ul>
</div>
<div id="tabcontentcontainer">
<div id="sc1" class="tabcontent">

This one piece Jumpsuit was specially designed for that resident who likes to get undressed at the wrong times. Expandable elastic on the side of the waist for those who might gain a few. Short sleeve, crew-neck.   

</div>
<div id="sc2" class="tabcontent">


Poly/cotton twill fabric for durability with anti strip snaps and a buckle.

</div>
<div id="sc3" class="tabcontent">

Assorted Solid Colors

</div>
<div id="sc4" class="tabcontent">

S-M-L-XL-2X-3X

</div>
<div id="sc5" class="tabcontent">

<b><i>On Sale Now</i></b>

</div>
<div id="sc6" class="tabcontent">



</div>
</div>

</td>
</tr>
</table>
</td></tr><tr><td><img src="http://****.gif" width="600"></td></tr></table>


I have this code in every product in More Info Page Text: section.
What I need right now it I want to add to the templ ate not all the code but only
Code: Select all
id="sc5"
(for example).

Now I am adding the code with [-- PRODUCT.MoreInformationText --] tag. But I need only some id now. How can I do it automatically?

Thanks I hope you understood what I mean.
Mannon
 
Posts: 9
Joined: Wed Sep 17, 2008 11:02 am

f

Postby Mannon » Wed Nov 05, 2008 12:56 pm

still actual
Mannon
 
Posts: 9
Joined: Wed Sep 17, 2008 11:02 am

Postby Jim » Wed Nov 05, 2008 1:23 pm

It isn't clear to me what you are trying to do. Maybe you could explain it a little clearer?
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

1

Postby Mannon » Wed Nov 05, 2008 1:41 pm

Jim, I have this particular code on each product page, the template takes this code with a tag [-- PRODUCT.MoreInformationText --] but now I need not all of this code but only one part of table content for example id="tab2 how can I put it in to the template?
Mannon
 
Posts: 9
Joined: Wed Sep 17, 2008 11:02 am

Postby Jim » Wed Nov 05, 2008 1:58 pm

So are you saying you want to extract just part of the information that is in the [-- PRODUCT.MoreInformationText --] field, for example
Code: Select all
<div id="sc2" class="tabcontent">


Poly/cotton twill fabric for durability with anti strip snaps and a buckle.

</div>

If so that is not possible, you would need to put that information in one of the custom product fields or an include file and use the appropriate tag to include that information.

It may be helpful to included general information (e.g. the javascript onclick section) in an include file and just put product specific information in the moreinfo section of the product. That might make it so you won't have to have so much data in the one field.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby Mannon » Thu Nov 06, 2008 2:10 pm

Jim, yes this is what I was trying to say.
Clear to me now. Thanks
Mannon
 
Posts: 9
Joined: Wed Sep 17, 2008 11:02 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 144 guests