osCmax v2.5 User Manual
Results 1 to 4 of 4

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 ...

      
  1. #1
    New Member
    Join Date
    Jun 2009
    Posts
    19
    Rep Power
    0


    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

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    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!

  3. #3
    New Member
    Join Date
    Jun 2009
    Posts
    19
    Rep Power
    0


    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.

  4. #4
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    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!

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •