Changing The appearance of Product Information on the mailgreenspun.com : LUSENET : S-Mart Shopping Cart : One Thread
How can I change the appearance of the product information that is sent in the mail to the client. The problem is that this information is not align whith the title of the fields.
for example, In the mail sent to the client and to the merchant, it appears like this:
Product Name Unit Price Quant. Ball of Tenis 7.253$00 1
And the correct way is like this: Product Name Unit Price Quant. Ball of Tenis 7.253$00 1
Thanks in advance for any help, that I receive.
-- Manuel Tavares (email@example.com), June 29, 1999
Find in the "s-mart.cgi" file these lines. Look for the send mail sub routine.
print MAIL sprintf "%-28.28s", "Item Name"; print MAIL sprintf "%14.14s", "Item Price"; print MAIL sprintf "%10.10s", "Quantity"; print MAIL sprintf "%18.18s", "Item Total";
There are a few sets you have to change every set to get what you need. I think four.
"%-28.28s" The numbers are what you have to change. You will have to try it to you get it the way you want.
-- James L. Farmer (firstname.lastname@example.org), June 30, 1999.