Hi,
I am having trouble with a piece of code that keeps giving me "Parse error: syntax error, unexpected T_STRING.
The offending code is
if ($perm->check("admin,storeadmin,shopper")) {
$html_price = "<a href="javascript:void(0)"onclick="window.open\'http://www.holycow.com.au/SR/media/price/{product_sku}.html\', \'win2\', \'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=600,height=150,directories=no,location=no/">View Price</a>/';
}
else {
$html_price = "";
}
it is the second line that is creating problems - but i cant see what! if anyone can, please let me know!
I would also like to know if i general I am going about this the right way. The code is intended to check permissions, then if allowed, to build a link, that opens a popup window.
Cheers,
Luke