Reply
Highlighted
Member
Posts: 2
Registered: ‎06-28-2013
Accepted Solution

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

[ Edited ]

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. 

 


Accepted Solutions
Highlighted
Solution
Accepted by RichardH (Administrator)
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

All Replies
Highlighted
Solution
Accepted by RichardH (Administrator)
‎08-21-2015 01:58 AM
Expert
Posts: 4,525
Registered: ‎03-08-2010

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

Highlighted
Member
Posts: 2
Registered: ‎06-28-2013

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

Thats exactly what I needed.  Thank you so much!