MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: Flypage trouble if item-code has 2 No. with withespace



On 27 Aug, Frank Miedreich wrote:
>>Hi list,
>>i have an item with two item-code i.e. "12345 6789". If i use the
>>flypage, i get the "Under construction" page. The URL is i.e
>>http://server/cgi-bin/bol/12345 6789?dIGvviCf;;4609
>>if i type as an URL i.e.
>>http://server/cgi-bin/bol/12345%206789?dIGvviCf;;4609
>>i get the flypage. Is this a bug or are there a solution?
>>I will be very glad to get any hints and tips!
>>Thanks!
>>
>>Joachim
>>
> 
> It is not a bug, it is a documented restriction on the code field of the
> database:
> (from minivend.html, Section "The Product Database")
> The product code must be the first field in the line, and must be unique.
> Product codes can contain the characters A-Za-z0-9, along with hyphen (-),
> underscore (_), pound sign/hash mark (#), slash (/), and period (.).
> The space will probably also cause problems in loop constructs etc. I
> suggest you replace it with hyphen/underscore.
> 
> fm
> 
> --
> Frank Miedreich
> Max-Planck-Institut fuer psychologische  Forschung
> Leopoldstr. 24   80802 Muenchen   +49 89 38602-237

Hello Frank,

thank you for your respond. But i think, there is a way to solve it,
because i use 

[page href="[item-code]" send=1] More Info! [/page] 

and i think, MV is able to parse this with "%20". I.e. i use the
srchform and i search for "12345". MV can find it and i get the results
page and see the item "12345 6789". MV insert the item number into this
page. Why not with "%20", i.e. "12345%206789" ?

I have search around the MV perl module and with my bad capability of
perl, i can't find the part of the code on the right place to add a
line like

	$_ = <value of the item-code>;
	s/\ /\%20/;
	<value of the item-code> = $_;

to force MV to replace whitespace with "%20".

Any suggestions? Or is there a case why item-code don't have a
whitespace in the products.asc file?

Thanks!

Joachim

-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1971449
45886 Gelsenkirchen



Search for: Match: Format: Sort by: