Jump to content

Dave1234

Members
  • Content count

    7
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Dave
  1. Dave1234

    [contribution] Simple Template System (sts)

    Sorry. I tried that capitalinz. I still couldn't get the image to enlarge on the product info page. Does anyone have a working copy of OSC with STS they would be willing to share? Thanks. Dave.
  2. Dave1234

    [contribution] Simple Template System (sts)

    Did anyone run into a problem getting the click to enlarge fix working? I did a fresh install o OSC and STL. Then I tried the bug fix so when I click on the click to enlarge on the product info page it would work correctly. I must be missing something small. I've tried all fixes I could find. There are a few of them out there. I think 3 main ones. None of them would fix it. Can someone offer some advice on what I might be missing? I've seen some just remove the click to enlarge link and just make the thumbnail larger. Did most of you do that and forget about the fix? Thanks. Dave.
  3. Dave1234

    [contribution] Simple Template System (sts)

    Okay. I did a clean install of oscommerce-2.2ms2.zip I downloaded the file called "Simple Template System (STS) v2.01" I copied all of the files extracted from it to the includes directory. I then followed the directions from the file that is supposed to help you fix the click to enlarge bug in sts. What am I doing wrong? Everything works fine but one thing. When I click on the thumbnail to enlarge the images it comes up to a page but not the image. Any help would be appreciated. I've been trying to figure this out for a week. I'm missing something. Thanks. Dave. 6/10/05 How to use pop up or click to enlarge with the product_info.php.html file ***Special thanks to the STS man himself Brian Gallagher for his help with this, ***Couldn't have done it without him. STEP ONE In sts_product_info.php change this below: // Start the "Add to Cart" form $template['startform'] = tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); // Add the hidden form variable for the Product_ID $template['startform'] .= tep_draw_hidden_field('products_id', $product_info['products_id']); $template['endform'] = "</form>"; To this: // Start the "Add to Cart" form $template['productid'] = $product_info['products_id']; $template['productsid'] = $product_info['products_id']; // Just for consistende with osC names $template['startform'] = tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); // Add the hidden form variable for the Product_ID $template['startform'] .= tep_draw_hidden_field('products_id', $product_info['products_id']); $template['endform'] = "</form>"; STEP TWO In your product_info.php.html file (which should be in your "sts_templates" folder) My "click to enlarge" link worked with this below added between the <head> and </head> section: <script language="JavaScript" type="text/JavaScript"> <!-- function MM_callJS(jsStr) { //v2.0 return eval(jsStr) } //--> </script> <noscript> STEP THREE Then elsewhere in the body of product_info.php.html for the actually link, I inserted the code below. <script language="javascript"><!-- function popupWindow(url) { url = url + '<?php echo $products_id ?>' window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script> <a href="java script:void(0)" onClick="MM_callJS('popupWindow(\'popup_image.php?pID=$productid\')')"> $imagesmall</a><a href="java script:void(0)" onClick="MM_callJS('popupWindow(\'popup_image.php?pID=$productid\')')"> See Bigger Image</a> ----------------------
  4. Dave1234

    [contribution] Simple Template System (sts)

    One thing I forgot to mention. I'm using 7dana.com She added stl to OSC
  5. Dave1234

    [contribution] Simple Template System (sts)

    Thanks for the reply. Can you show me a copy of your page with the changes? I tried doing that and it doesn't work for some reason. I'm missing something. Thaks. Dave. .
  6. Dave1234

    [contribution] Simple Template System (sts)

    hmm? I just don't know what I'm doing wrong. I'm using STS with OSC and I can't get the image to enlarge no matter what I try. I have searched high and low and tried everything I have found with no luck. Does anyone have a copy of OSC loaded with STS that works? I tried adding the java to between the header tags and the link code. I must not be doing something right. Does anyone know where I can get a copy of OSC and sts already combined and working? Free or not free. Your help would be appreciated. Thanks. Dave.
×