Jump to content

peteschulte

Members
  • Content count

    29
  • Joined

  • Last visited

Profile Information

  • Real Name
    Peter Schulte
  • Gender
    Male
  • Location
    Seattle
  • Interests
    Interactive Voice Response applications, VXML, CCXML, XML, PHP, PHP My Admin, MySQL, ASP.NET, FoxPro
  • Website
  1. peteschulte

    Canada Post Tracking Number in Order Update Email

    Hi Crazihouse and Enigma1, I need to obtain the vendor's shipping number AKA tracking number and email it to the customer from osC, which it sound like you have accomplished. Also, it looks like the Canada Post contribution gives you this number. Is that correct? If so, maybe I can re-engineer part of it to get our U.S. vendor's shipping numbers for our orders. thanks for any feedback, Peter
  2. peteschulte

    Rollover image in product page PHP and Javascript

    Hey babyrocky1 I imagine you started with General Information / Tips and Tricks "Add Mouseover Graphics Links" Following the above article has gotten me a little further down the road with this. I'd like to know whether you succeeded. Maybe you could help me with it. I'm using php and Dreamweaver. When Dreamweaver generates mouseOver code, it is not in php. more about that below. I used DW to generate the javascript text that you did. I put that code you quoted into a mm.js text file and called it from header.php, according to the documentation. Then in DW I used the Insert / Interactive Images command dialog box to name the rollover, specify a link from it, and identify the images for mouseOut and mouseOver. This also gave me the <body onload=...> code. Instead of following the Doc, which refers to a nonexistent <body> tag in header.php, I added the onload=2nd_image attribute to the body tag in catalog/index.php. With each step I checked in the browser that my Home Page still works. In index.php about line 320 I am already displaying some images using <TD> after the line <td class="main"><?php echo TEXT_MAIN; ?> Instead of following the Documentation, which says to put the php links into header.php, I put them in index.php with the images I'm already displaying as anchors for links. The logic is, if they're called from header.php, who knows where they will display on the Home Page? So now we are down to the nuts and bolts, which required me to understand and look up php functions at http://us2.php.net/manual/en/funcref.php, in particular, The HTML image wrapper function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') X-Ref The HTML href link wrapper function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) X-Ref Before I show the sample code from the Documentation and my code that I want to work the same, let me describe one problem solved. My rollover images are a link to a page. The page address "http://whatever.com" kicked me out of the php statement <? echo ('<a href="' . . tep_href_link(http://...); ?> because in php "//" turns whatever follows into a comment. So I learned how to declare and load a variable in the index.php <head></head> section. I put the address into it and used it just like the Documentation uses a variable. Here is the code from the Documentation followed by my version, using Dreamweaver generated instances which I'm trying to wrap in php. <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '" onMouseOver="MM_swapImage(\'nav_home\', \'\', \'../images/nav_home_over.gif\', 1)" onMouseOut="MM_swapImgRestore()">' . tep_image(DIR_WS_IMAGES . 'nav_home.gif', 'Home', null, null, 'name="nav_home"') . '</a>'; ?> My nuts and bolts which still have something wrong. <?php echo ' <a href="http://championpartysupply.peteschulte.info/catalog/index.php?cPath=21&osCsid=95e8db3d700cb353c905d19dd34acbac" ' onMouseOver="MM_swapImage('/catalog/images/menuButtons/menuValBatGirlWeb480.jpg','\','/catalog/images/menuButtons/menuValManWeb.jpg',1)" onMouseOut="MM_swapImgRestore()">' . tep_image('/catalog/images/menuButtons/menuValBatGirlWeb480.jpg', 'Adult Costumes', null, null, 'name="menuValBatGirlWeb480"') . '</a>'; ?> ...boy would it be nice to see my problem solved here tomorrow! The store, not yet published (I know I need to restore the osC logo at the bottom!) is at Visit the not ready-for-prime-time website.
  3. Hey Bill, thank you for the new comments to index.php! What a great help; I only wish it had happened before the hair loss! :-)

×