cancel
Showing results for 
Search instead for 
Did you mean: 

How do I add multiple lines in product description with SIM and C#?

Hello everyone,

 

How can I had multiple lines to the product descripting with x_line_item in C#?  Following the guide, SIM Guide

 

Adding to the ASP page:

<input type="hidden" name="x_line_item"  value="item1<|>golf balls<|><|>2<|>18.95<|>Y">
        <input type="hidden" name="x_line_item"  value="item2<|>golf bag<|>Wilson golf carry bag, red<|>1<|>39.99<|>Y">
        <input type="hidden"  name="x_line_item"  value="item3<|>book<|>Golf for Dummies<|>1<|>21.99<|>Y">

Works perfectly and displays all three items.  But I can't change the values from the ASP page from other values.  They have to be hardcoded.

 

Doing:

<input type="hidden" runat="server" name="x_line_item" id="x_line_item"/>  

 

Then in C# 

x_line_item.Value = "Payment<|>Policy Premium<|><|>1<|>100<|>N&";

Works perfectly and allows me to input whatever values from the code in there but only allows one value. 

 

Any help on this is appreciated. 

 

5kwatts
Member
1 ACCEPTED SOLUTION
2 REPLIES 2

Thats exactly what I needed.  Thank you so much!