跳至內容
選單
此問題已被標幟
1 回覆
8128 瀏覽次數

Hi there,

I'm using a PHP script to generate quotation through our website via XMLRPC. In the quotation line description I'd like to insert a new line, so that the format of the line description becomes something like:

Product name

Size: length x width x height

Color: blue

Instead of "Product name, Size x y z, color: blue"

Does somebody has any clue about how to format this in the XMLRPC value? I tried both html, xml and python line breaks/carriage returns.    

頭像
捨棄
最佳答案

try concatenate string values using '\n' for line break before sendig it via xmlrpc...
syntax should be something like: 

desc = product_name + '\n' '+ 'Size : ' + lenght_val + 'x' + width_val +'x' ...

use desc string value to send description via xmlrpc

hope it helps

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
12月 21
1919
0
3月 18
4243
1
3月 15
7577
2
3月 15
10439
1
1月 23
5069