Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > how to add new product and transformations View modes: 
User avatar
Member
Member
bijukumar.r-gmail - 1/21/2011 6:15:47 AM
   
how to add new product and transformations
hi

how to add new product and transformations?.

when i add one document and generated its default tranformation.but when i add this tranformation in product datalist i didnt get product details...how to do it?

my transformations is like


<table>
<tr>
<td>Bike Image:</td>
<td><%# Eval("BikeImage") %></td>
</tr>
<tr>
<td>Bike Name:</td>
<td><%# Eval("BikeName") %></td>
</tr>
<tr>
<td>Bike Price:</td>
<td><%# Eval("BikePrice") %></td>
</tr>
<tr>
<td>Bike Description:</td>
<td><%# Eval("BikeDescription") %></td>
</tr>
</table>

User avatar
Member
Member
dima - 1/21/2011 6:27:44 AM
   
RE:how to add new product and transformations
Did you select the transformation you'd developed in the web part properties? In the design mode?

User avatar
Member
Member
bijukumar.r-gmail - 1/21/2011 6:32:28 AM
   
RE:how to add new product and transformations
ys

custom.bike.Default
custom.bike.Preview these transformations selected in product datalist tranformations list

User avatar
Member
Member
dima - 1/21/2011 7:22:07 AM
   
RE:how to add new product and transformations
does it render anything? try to add some static text inside your transformation and see if it displays on the page

User avatar
Member
Member
bijukumar.r-gmail - 1/21/2011 9:05:16 AM
   
RE:how to add new product and transformations
ya sure.it displaying field names but no value

User avatar
Member
Member
dima - 1/21/2011 9:12:27 AM
   
RE:how to add new product and transformations
Are you sure you've written the fields names correctly?
When you press "generate default transformation" does it use the same field names?
Does the default transformation work for you?
Have you tried looking at the html generated?

User avatar
Member
Member
bijukumar.r-gmail - 1/21/2011 9:21:42 AM
   
RE:how to add new product and transformations
this is the default generated.

<table>
<tr>
<td>Bike Image:</td>
<td><%# Eval("BikeImage") %></td>
</tr>
<tr>
<td>Bike Name:</td>
<td><%# Eval("BikeName") %></td>
</tr>
<tr>
<td>Bike Price:</td>
<td><%# Eval("BikePrice") %></td>
</tr>
<tr>
<td>Bike Description:</td>
<td><%# Eval("BikeDescription") %></td>
</tr>
</table>

when i check other builtin transformations i found that some "sku" added before attribute name.but in my generated form its not found...and one more thing i found some more html with div and styles in builtin tranformations..but only tables structure in my generated tranformation..

i get only the field names displayed...

User avatar
Member
Member
dima - 1/21/2011 9:29:55 AM
   
RE:how to add new product and transformations
When you added the DataList or Repeater webpart on on the page, did you select the proper document type? Please check this field on the detail template as well.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/24/2011 4:24:24 AM
   
RE:how to add new product and transformations
Hi,

you need to use the e-commerce functions in transformation to display the SKU data. Using default transformation you are displaying just document data.

I would like to recommend to check the Site Manager -> Development -> Document types -> E-commerce - Transformations type -> Transformations tab. There are created some sample transformations. Or, you can also take a look on the sample E-commerce site template to see how the transformations are used and which controls and functions are displaying the data you want.

Best regards,
Juraj Ondrus

User avatar
Member
Member
bijukumar.r-gmail - 1/24/2011 4:27:37 AM
   
RE:how to add new product and transformations
thanks i solved that issue