osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Linking a button to pre-set sized popup window

This is a discussion on Linking a button to pre-set sized popup window within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi! I'm trying to link a button to a pre-determined popup window size. My code is : <td class="main"><?php echo ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Reply

 

LinkBack Thread Tools
  #1  
Old 06-29-2009, 07:33 AM
New Member
 
Join Date: Jun 2009
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
SarahR is on a distinguished road
Default Linking a button to pre-set sized popup window

Hi! I'm trying to link a button to a pre-determined popup window size. My code is :

<td class="main"><?php echo '<a href="SizeChart" TARGET="new" onClick="window.open('http://www.aphroditescloset.ca/SizeChart.html','new','width=900,height=525'); return false">;' . tep_image_button('button_sizechart.gif', IMAGE_BUTTON_sizechart) . '</a>'</td>


I'm receiving error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/aphrod6/public_html/catalog/templates/fallback/content/product_info.tpl.php on line 202

I cannot seem to figure out where this error is. The link works fine, but when I add the pre-set sizes, the error occurs.

If anybody can spot the error, it would be greatly appreciated!

Thanks

Sarah
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 06-30-2009, 12:56 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
Default Re: Linking a button to pre-set sized popup window

Possably :
HTML Code:
'width=900,height=525'
Looking for something like:
HTML Code:
'width=900','height=525'
????

You should use the html or php tags to display code.
__________________
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 06-30-2009, 12:57 PM
New Member
 
Join Date: Jun 2009
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
SarahR is on a distinguished road
Default Re: Linking a button to pre-set sized popup window

Hi. That didn't fix the problem either. I'm not sure what you mean by html or php tags to display the code. I'm pretty new to html & php and have been getting by on searching help forums & learning a bit of html through google searches, so i'm not familiar at all with some of the lingo.

Could you please enlighten me by what you mean?

Thanks & Sorry to be a bother.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 07-04-2009, 10:05 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
Default Re: Linking a button to pre-set sized popup window

is standard quoting on many bulletin boards...

Using the advance editor in our board - just click on the icon of # for code, <> for html and 'php' for well php code

or to manually add in ---see: BB Code List

PHP Code:
<td class="main"><?php echo '<a href="SizeChart" TARGET="new"
    onClick="window.open('
http://www.aphroditescloset.ca/SizeChart.html','new','width=900,height=525'); return false">;'
    
tep_image_button('button_sizechart.gif'IMAGE_BUTTON_sizechart) . '</a>'</td>
Check for incorrect , or ; like:
PHP Code:
<td class="main"><?php echo '<a href="SizeChart" TARGET="new"
    onClick="window.open('
http://www.aphroditescloset.ca/SizeChart.html','new','width=900','height=525'); return false">'
    
tep_image_button('button_sizechart.gif'IMAGE_BUTTON_sizechart) . '</a></td>'
__________________
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Auto-sized image PopUp in Products Info Page michael_s New osCommerce Contributions 0 05-11-2009 12:00 AM
Problem with the popup window carlossilva Introduce yourself! 4 03-02-2008 01:13 AM
Auto-sized image PopUp in Products Info Page michael_s New osCommerce Contributions 0 02-06-2008 04:52 PM
Auto-sized image PopUp in Products Info Page michael_s New osCommerce Contributions 0 02-05-2008 03:31 PM
Anyway to get a popup window from FCK editor?? Redeye_Joe osCMax v2 Features Discussion 1 03-07-2006 12:00 PM


All times are GMT -8. The time now is 10:15 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design