Jump to content


  • Content count

  • Joined

  • Last visited

  1. badtown


    Just a quicky if ($product_info['products_master_status'] ==1) { $sts->start_capture(); echo "\n<!-- Start MASTER PROD -->\n"; include(DIR_WS_MODULES . FILENAME_MASTER_PRODUCTS); echo "<!-- End MASTER PROD -->\n"; } $sts->stop_capture('masterproducts'); $template_pinfo['masterproducts'] = $sts->template['masterproducts']; (stops the $masterproducts$ tag from showing up if their are no master products) :D
  2. badtown

    STS and Related Products Contrib

    Sounds like you need to upgrade to the latest version. 4.2 Linky And it might be worth installing oscommerce from scratch then installing this, as you may even be running an older version of OSC, and that would be bad :)
  3. badtown

    STS and Related Products Contrib

    What version of STS are you using? :)
  4. badtown

    STS and Related Products Contrib

    Yep, Add this to Catalog/includes/modules/sts_inc/product_info.php at the bottom // See if any "Related" items. $sts->start_capture(); // DANIEL: begin - show related products $attributes = "select pop_products_id_slave, products_name, products_price, products_tax_class_id, products_image from " . TABLE_PRODUCTS_OPTIONS_PRODUCTS . ", " . TABLE_PRODUCTS_DESCRIPTION . " pa, ". TABLE_PRODUCTS . " pb WHERE pop_products_id_slave = pa.products_id and pa.products_id=pb.products_id and language_id = '" . (int)$languages_id . "' and pop_products_id_master = '".$HTTP_GET_VARS['products_id']."' and products_status=1 order by pop_order_id, pop_id"; $attribute_query = tep_db_query($attributes); if (mysql_num_rows($attribute_query)>0) { echo '<tr><td><table class="productlisting" border="0" cellspacing="0" cellpadding="2" width="100%">'; echo '<tr><td align="center" class="productListing-heading" >?'.TEXT_RELATED_PRODUCTS.'?</td></tr><tr><td align="center" class="productListing-data">'; echo '<table border="0" cellspacing="0" cellpadding="2" width="100%" align="center"><Tr>'; while ($attributes_values = tep_db_fetch_array($attribute_query)) { $products_name_slave = ($attributes_values['products_name']); $products_id_slave = ($attributes_values['pop_products_id_slave']); if ($new_price = tep_get_products_special_price($products_id_slave)) { $products_price_slave = $currencies->display_price($new_price, tep_get_tax_rate($attributes_values['products_tax_class_id'])); } else { $products_price_slave = $currencies->display_price($attributes_values['products_price'], tep_get_tax_rate($attributes_values['products_tax_class_id'])); } // show thumb image if Enabled echo '<td class="productListing-data" align="center">'; if (MODULE_RELATED_PRODUCTS_SHOW_THUMBS!='False') { echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_id_slave) . '">' . tep_image(DIR_WS_IMAGES . $attributes_values['products_image'], $attributes_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"').'</a>'; } echo '<Br>?<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_id_slave) . '">'.$products_name_slave.'<Br>@ '.$products_price_slave.'</a>'; } echo '</td>'; echo '</tr></table></td></tr></table></td></tr>'; } $sts->stop_capture ('relateditems'); // Get the result to the main array $template_pinfo['relateditems']= $sts->template['relateditems']; // Put it in the product info Then just add $relateditems$ to your template :D
  5. badtown

    Current AUctions V2.0

    the fopen() command has been disabled by my host. is there any workround?