Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

oldshoe

Archived
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • Real Name
    OldShoes
  • Gender
    Male
  • Location
    UK
  • Website

oldshoe's Achievements

  1. Hello team, I've created new fields in the 'products' table to hold additional image paths. Then, in the sts_inc/product_info.php I've defined new variables that would work as thumbnails and one to work as a zoomed area, to avoid the use of popups. Thumbnails: $template_pinfo['image01'] $template_pinfo['image02'] $template_pinfo['image03'] Zoomed area: $template_pinfo['imagezoom'] Now I would like to transform the thumbnails in hyperlinks, so for instance, if I clicked on image01, the variable $template_pinfo['imagezoom'] would be set to what's in image01 (the same happening in the products page). How do I do this?? I was trying to play with the imagepopup definition (below) but had no joy with the sintax, as I'm not a PHP programmer at all. $template_pinfo['product_popup']= '<script language="javascript"><!--'."\n". 'document.write(\'<a href="java script:popupWindow(\\\'' . tep_href_link($product_info['products_image01'], 'pID=' . (int)$products_id) . '\\\')">' . $template_pinfo['imagesmall'] . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>\');'."\n". '//--></script>'."\n". '<noscript>'."\n". '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">'.$template_pinfo['imagesmall'] . '<br>' . TEXT_CLICK_TO_ENLARGE .'</a>'."\n". '</noscript>'."\n"; Please help. Thanks, Old Shoe
  2. I'm trying to work this around by having a product_info.php.html that has only $content. Then I include this product_info.php.html in my index.php.html: <?php include("product_info.php.html"); ?> Now the question: if I click on a button somewhere in my index.php.html, can I refresh the included product_info.php.html so that it will display the product passed in by the click? Thanks, os
  3. Hi bkellum, Thanks for your reply. I've tried as you suggested but it unfortunatelly has the same behaviour as before. The flash component is still refreshed every time I chose a different product. Do you know if I can trigger a refresh only on $content, so the rest of the page wouldn't be reloaded? Thanks, os
  4. Hi team, Let me know if you can crack this one. - My site has only a few products, so my home page is already the products info page. - I have a flash image scroller at the top. - The idea is to select an image from the flash component and the respective product info would be displayed in the contents area. I am doing this by calling the right product URL (e.g. http://mydomain//OSCommerce/catalog/produc...?products_id=5) from the respective image within the flash component. Here's the problem: if I select image number 3, the contents of product number 3 come up perfectly, but since it's reloading the page, the flash obejct is also reloaded, hence going back to its initial state displaying image number 1. How can I get it not to reload the flash component so it can keep displaying the latest image I've selected? p.s. To keep it simple, I'm using only sts_template.html which is directly referencing the flash object. Thanks for any help, OS
  5. Hi team, Let me know if you can crack this one. - My site has only a few products, so my home page is already the products info page. - I have a flash image scroller at the top. - The idea is to select an image from the flash component and the respective product info would be displayed in the contents area. I am doing this by calling the right product URL (e.g. http://mydomain//OSCommerce/catalog/produc...?products_id=5) from the respective image within the flash component. Here's the problem: if I select image number 3, the contents of product number 3 come up perfectly, but since it's reloading the page, the flash obejct is also reloaded, hence going back to its initial state displaying image number 1. How can I get it not to reload the flash component so it can keep displaying the latest image I've selected? p.s. To keep it simple, I'm using only sts_template.html which is directly referencing the flash object. Thanks for any help, OS
×
×
  • Create New...