Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
8072 Lượt xem

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.    

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 12 21
1882
0
thg 3 18
4208
1
thg 3 15
7511
2
thg 3 15
10393
1
thg 1 23
5020