MegaPrice.it
Moderatore: mod Generali
Strano, a me funziona bene....elvinomac ha scritto:non va...
mi mostra solo un prodotto in offerta duplicato e non mostra le immagini.
guarda:
http://www.n1products.com/eecom/
Grazie comunque.
'iao
Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto
http://www.semilandia.it
http://www.semilandia.it
Aspetta, un errore l'ho trovatoBass ha scritto: Strano, a me funziona bene....
Codice: Seleziona tutto
<?php
/*
$Id: specials.php,v 1.31 2003/06/09 22:21:03 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
//TotalB2B start
if (!isset($customer_id)) $customer_id = 0;
$customer_group = tep_get_customers_groups_id();
if ($special_query = tep_db_query("select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status = '1' and p.products_id = s.products_id and pd.products_id = s.products_id and pd.language_id = '" . (int)$languages_id . "' and s.status = '1' and ((s.customers_id = '" . $customer_id . "' and s.customers_groups_id = '0') or (s.customers_id = '0' and s.customers_groups_id = '" . $customer_group . "') or (s.customers_id = '0' and s.customers_groups_id = '0')) order by s.specials_date_added desc limit " . MAX_RANDOM_SELECT_SPECIALS)) {
//TotalB2B end
?>
<!-- specials //-->
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => sprintf(TABLE_HEADING_SPECIALS, strftime('%B')));
new infoBoxHeading($info_box_contents);
$info_box_contents = array();
$row = 0;
$col = 0;
//$counter = 0;
while ($special_product = tep_db_fetch_array($special_query)) {
//TotalB2B start
$special_product['products_price'] = tep_xppp_getproductprice($special_product['products_id']);
//TotalB2B end
//TotalB2B start
$special_product['specials_new_products_price'] = tep_get_products_special_price($special_product['products_id']);
$query_special_prices_hide = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'SPECIAL_PRICES_HIDE'");
$query_special_prices_hide_result = tep_db_fetch_array($query_special_prices_hide);
if ($query_special_prices_hide_result['configuration_value'] == 'true') {
$info_box_contents[$row][$col] = array('align' => 'center',
'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $special_product["products_id"]) . '">' . tep_image(DIR_WS_IMAGES . $special_product['products_image'], $special_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $special_product['products_id']) . '">' . $special_product['products_name'] . '</a><br><span class="productSpecialPrice">' . $currencies->display_price_nodiscount($special_product['specials_new_products_price'], tep_get_tax_rate($special_product['products_tax_class_id'])) . '</span>');
} else {
$info_box_contents[$row][$col] = array('align' => 'center',
'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $special_product["products_id"]) . '">' . tep_image(DIR_WS_IMAGES . $special_product['products_image'], $special_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $special_product['products_id']) . '">' . $special_product['products_name'] . '</a><br><s>' . $currencies->display_price($special_product['products_id'], $special_product['products_price'], tep_get_tax_rate($special_product['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price_nodiscount($special_product['specials_new_products_price'], tep_get_tax_rate($special_product['products_tax_class_id'])) . '</span>');
}
//TotalB2B end
$col ++;
//$counter++;
if ($col > 2) {
$col = 0;
$row ++;
}
}
new contentBox($info_box_contents);
?>
</td>
</tr>
<!-- specials_eof //-->
<?php
}
?>
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto
http://www.semilandia.it
http://www.semilandia.it
Avevo cambiato il nome della variabile ma me ne ero scordata unaelvinomac ha scritto: Cosa c'era di sbagliato che non si vedevano le immagini?
'iao
Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto
http://www.semilandia.it
http://www.semilandia.it
Ci dovrebbe essere la voce in admin -> configuration -> Max valuesakkiotto ha scritto: Come faccio a far in modo di farne visualizzare solo 6?
'iao
Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto
http://www.semilandia.it
http://www.semilandia.it