Jump to content

El_Heso

Members
  • Content count

    150
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Tony Jansson
  1. El_Heso

    [Contribution] STS v4

    Hi! Anyone got this contrib working on STS? http://addons.oscommerce.com/info/6431 auctionTastic_1.0_RC_r125[full package]
  2. El_Heso

    auctionTastic

    Hi! Anyone got this contrib to work with STS?
  3. El_Heso

    HORIZONTAL PRODUCT SCROLLER

    try this solution: http://www.phpfreaks.com/forums/index.php?topic=299238.0
  4. El_Heso

    HORIZONTAL PRODUCT SCROLLER

    Hi again! everything works in my code as well, i missed to put the .js under includes directory Great contrib Regards Tony :thumbsup:
  5. El_Heso

    HORIZONTAL PRODUCT SCROLLER

    Hi! i have tryed to even download but dont work. Maybe i have done something bad :-) can you see if i missed something in my try to alter the new products: <!-- new_products //--> <?php $new_products_query = tep_db_query("SELECT distinct p.products_id, p.products_image, p.products_tax_class_id, IF (s.status, s.specials_new_products_price, NULL) AS specials_new_products_price, p.products_price, pd.products_name FROM " . TABLE_PRODUCTS . " p LEFT JOIN " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c using(products_id) LEFT JOIN " . TABLE_CATEGORIES . " c USING (categories_id) LEFT JOIN " . TABLE_FEATURED . " f ON p.products_id = f.products_id LEFT JOIN " . TABLE_SPECIALS . " s ON p.products_id = s.products_id LEFT JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd ON p.products_id = pd.products_id AND pd.language_id = '" . (int)$languages_id . "' where p.products_status = '1' AND f.status = '1' "); $no_of_new_products = tep_db_num_rows($new_products_query); $pblock_html = ''; while ($new_products = tep_db_fetch_array($new_products_query)) { $pblock_html .= '<div class="scrollblock"><div><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a></div>'. '<div class="scrollblock_img"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div>'. '<div class="scrollblock_price">'. $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</div></div>'; } ?> <table class="scroller" border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><td width="100%" align="right"> <span class="scrollcnter">Page <span class="txt_pn">1</span> of <span class="txt_maxpn"><?php echo ceil($no_of_new_products/5); ?></span> <a href="#" onclick="return false;" class="scrollrestart"> (start over) </a></span> </td></tr> <tr><td width="100%"> <table><tr> <td width="5%" align="right"><img src="images/icons/button_scroll_left_up.gif" class="gol"></td> <td width="90%" class="smallText"> <span class="scrollcontainer"><span class="scrollbox"> <?php echo $pblock_html; ?> </span></span> </td> <td width="5%" align="left"><img src="images/icons/button_scroll_right_up.gif" class="gor"></td> </tr></table> </td></tr> </table> <!-- new_products_eof //--> Regards Tony
  6. El_Heso

    HORIZONTAL PRODUCT SCROLLER

    Hi! Hopefully a great contrib, but my problem is that i can´t scroll to next page any idea how to fix the problem?
  7. El_Heso

    [Contribution] STS v4

    Hi! I have a problem with STS, i have this code i header in index.php.html: <script language='javascript' type='text/javascript'> function showDiv(pass) { var divs = document.getElementsByTagName('div'); for(i=0;i<divs.length;i++){ if(divs.id.match(pass)){//if they are 'see' divs if (document.getElementById) // DOM3 = IE5, NS6 divs.style.visibility="visible";// show/hide else if (document.layers) // Netscape 4 document.layers[divs].display = 'visible'; else // IE 4 document.all.divs.visibility = 'visible'; } else { if (document.getElementById) divs.style.visibility="hidden"; else if (document.layers) // Netscape 4 document.divs.visibility = 'hidden'; else // IE 4 document.all.divs.visibility = 'hidden'; } } } </script> then this under the body tag: <?php if (HOLIDAY_SETTINGS == 'on') { ?> <div id="F512" > <a href="javascript:showDiv('F256')"><img src="info.png" border="0"></a> </div> <div id="F256" style="position: absolute; left:250px; top:0px; visibility: hidden"> " here is the ordinary code for the page " </div> and my problem is that in the case i click the image the "normal" page shows ( that´s the point ) but every sts tag ex. $categorybox$ don´t show at all it´s blank in the space there it should be a category menu Any idea how to make this work? Regards Tony
  8. El_Heso

    STS problem

    Hi! I have a problem with STS, i have this code i header in index.php.html: <script language='javascript' type='text/javascript'> function showDiv(pass) { var divs = document.getElementsByTagName('div'); for(i=0;i<divs.length;i++){ if(divs.id.match(pass)){//if they are 'see' divs if (document.getElementById) // DOM3 = IE5, NS6 divs.style.visibility="visible";// show/hide else if (document.layers) // Netscape 4 document.layers[divs].display = 'visible'; else // IE 4 document.all.divs.visibility = 'visible'; } else { if (document.getElementById) divs.style.visibility="hidden"; else if (document.layers) // Netscape 4 document.divs.visibility = 'hidden'; else // IE 4 document.all.divs.visibility = 'hidden'; } } } </script> then this under the body tag: <?php if (HOLIDAY_SETTINGS == 'on') { ?> <div id="F512" > <a href="javascript:showDiv('F256')"><img src="info.png" border="0"></a> </div> <div id="F256" style="position: absolute; left:250px; top:0px; visibility: hidden"> " here is the ordinary code for the page " </div> and my problem is that in the case i click the image the "normal" page shows ( that´s the point ) but every sts tag ex. $categorybox$ don´t show at all it´s blank in the space there it should be a category menu Any idea how to make this work? Regards Tony
  9. El_Heso

    [Contribution] STS v4

    Hi Bill! I wonder if you can give me some hint how i can manage to include the additional_image to product_info.php.html. Is there a guide or something how to include contributions in sts? how to code for example attributes etc etc so i can figure out how to make the codes for the different logics of each contribution i want to make possible to include in product_info.php.html? Regards Tony
  10. El_Heso

    [Contribution] STS v4

    Hi! Im trying to manage to inlude additional_image.php in product_info.php.html. from this contribution ( Ultra Pics 2.07.01 - incl. STS + CCGV + LightBox_1 ) I tryed to replicate the function of this beeacuse that was the only function that i found that reminded me of what im trying to do. $sts->start_capture(); if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } $sts->stop_capture ('alsopurchased'); // Get the result to the main array $template_pinfo['alsopurchased']= $sts->template['alsopurchased']; // Put it in the product info I thought that this would work beacuse that file also includes from modules as additional_image also do but i cant make this work... Has anyone manage to get it work to use $additionalimage in product_info under content? Regards Tony
  11. Hi! Have someone got CCGV working with Alternative_Checkout? Need help to figure that out Regards Tony
  12. El_Heso

    [Contribution] STS v4

    Hi Bill! Im trying to manage to inlude additional_image.php in product_info.php.html. from thiscontribution ( Ultra Pics 2.07.01 - incl. STS + CCGV + LightBox_1 ) I tryed to replicate the function of this beeacuse that was the only function that i found that reminded me of what im trying to do. $sts->start_capture(); if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } $sts->stop_capture ('alsopurchased'); // Get the result to the main array $template_pinfo['alsopurchased']= $sts->template['alsopurchased']; // Put it in the product info I thought that this would work beacuse that file also includes from modules as additional_image also do but i cant make this work... any idea how to get it to work so i only put $additionalimage in product_info under content? Regards Tony
  13. El_Heso

    [Contribution] STS v4

    Hi Bill! Im trying to manage to inlude additional_image.php in product_info.php.html. from thiscontribution ( Ultra Pics 2.07.01 - incl. STS + CCGV + LightBox_1 ) I tryed to replicate the function of this beeacuse that was the only function that i found that reminded me of what im trying to do. $sts->start_capture(); if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } $sts->stop_capture ('alsopurchased'); // Get the result to the main array $template_pinfo['alsopurchased']= $sts->template['alsopurchased']; // Put it in the product info I thought that this would work beacuse that file also includes from modules as additional_image also do but i cant make this work... any idea how to get it to work so i only put $additionalimage in product_info under content? Regards Tony
  14. Hi! someone know how to implement easy populate with Product Tabs 2.2 regards Tony
  15. Hi! someone know how to implement easy populate with Product Tabs 2.2 regards Tony
×