RE: Can a product link to an external site (ie: cafepress.com)?
MaxiDVD <[email protected]> 10 Sep 2003 15:57:46 -0000
| Newsgroups | gmane.comp.web.oscommerce.contributions |
|---|---|
| Message-ID | <56f992a930d1b95ec7d6c57e9d695e44@osCommerce-Forums> |
This message was sent from: Contributions
http://forums.oscommerce.com/viewtopic.php?p=227446#227446
----------------------------------------------------------------
No "#" it does not affect it, I have just tried this with my store, I can only assume that your code placement is causing this problem,,
FYI: this code is a combination of "Javascript and HTML" it is not PHP coding in anyway, so what you need to check when placing this code is that you Do-Not place it inside <?php - ?> Tags:
[code]?> // Make Sure its placed after a Closing Tag
<a href="#" onclick="javascript: window.open('http://forums.oscommerce.com/viewtopic.php?t=38047', '','width=500,height=140,left=10,top=10,scrollbars=no');return false;">Click for My New Window</a>
// And Placed Before an Opening Tag
<?php[/code]
If for some reason you are wanting to place this code within "<?php - PHP Tags - ?>", it would need to be written like this:
[code]. '<a href="#" onclick="javascript: window.open(\'http://forums.oscommerce.com/viewtopic.php?t=38047\', \'\',\'width=500,height=140,left=10,top=10,scrollbars=no\');return false;">Click for My New Window</a>' .[/code]
the beggining [b].' then the end '. [/b] need to placed correctly or this will cause parse erroes too.
If you still cant get it to work, paste up a code snippet for me to look at where you placing it, If your getting Parse Errors it mean you trying to place the code directly into php coding.
Cheers MaxiDVD