A więc, mam sklep postawiony na osc premium i chciałbym zmienić wygląd jednego z boxów, ściślej mówiąc Hit sklepu, jeżleli możecie doradzić jak spowodować żeby w moim Hiciew sklepu pojawiało się inne obramowanie, tj. top, bot, upper_left itd. jakich zmian dokonać, tak wygląda plik star_product.php, z którym dłuższy czas walczę:
<?php <?php new infoBoxHeading($info_box_contents, true, true); $star_products_query = tep_db_query("select substring(pd.products_description, 1, 598) as products_description, pd.products_shortdescription, p.products_id, p.pr
oducts_image, p.manufacturers_id, p.products_price, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price, p.products_tax_class_id, sp.product_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_STAR_PRODUCT . " sp left join " . TABLE_SPECIALS . " s on s.products_id = s.products_id where p.products_id = pd.products_id an
d p.products_status = '1' and p.products_id=sp.product_id and pd.language_id = '" . $languages_id . "'"); $star_products = tep_db_fetch_array($star_products_query); $star_products['products_name'] = tep_get_products_name($star_products['products_id']); if (tep_not_null($star_products['products_shortdescription'])) { } else { } if ($star_products_price = tep_get_products_special_price($star_products['products_id'])) { $star_products_price2 = '<s>' . $currencies->display_price($star_products['products_price'], tep_get_tax_rate($star_products['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($star_products_price, tep_get_tax_rate($star_products['products_tax_class_id'])) . '</span>'; } else { $star_products_price2 = $currencies->display_price($star_products['products_price'], tep_get_tax_rate($star_products['products_tax_class_id'])); } $star_products["0"] = array('text' => '<table width="100%"><tr><td class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, "products_id=" . $star_products["products_id"]). '">' . tep_image(DIR_WS_IMAGES . $star_products['products_image'], $star_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT,'align=left') . '</a></td><td class="main"><b><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, "products_id=" . $star_products["products_id"]). '">' . $star_products['products_name'] . '</b></a><br /> '.$star_products_price2.'<br> '. $star_products_description . '<br><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, "products_id=" . $star_products["products_id"]). '">' . tep_image_button('button_read_more.gif', IMAGE_BUTTON_MORE) . '</a> <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $star_products["products_id"], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a></td></tr></table>'); new infoBox($star_products); ?> <?php } ?>
funkcja DIR_WS_IMAGES odnosi do pliku /includes/classes/boxes.php gdzie jest zdefiniowana grafika do boxów, chciałbym żeby wczytywała się inna grafika w moim boxie Hit sklepu, proszę doradźcie jakie zmiany wprowadzić lub gdzie szukać rozwiązania, dziękuje z góry za wszelką okazaną pomoc, pozdrawiam serdecznie, oto plik boxes.php definiujący grafikę boxów:
<?php // Graphical Borders function infoBox($contents) { $this->tableBox($info_box_contents, true); } function mws_infoboxcontents($contents) { $this->table_cellpadding = '0'; $this->align = 'center'; 'params' => 'class="boxText"', } $output = ' <table cellspacing="0" cellpadding="0" border="0"> <tr> <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_left.gif','') . '</td> <td class="mws_boxTop" width="100%">' . $mws_headerText; if ($mws_headerLink != false) { $output .= ' <a href="' . $mws_headerLink . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } $output .= '</td> <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_right.gif','') . '</td> </tr> <tr> <td class="mws_boxLeft"></td> <td class="mws_boxCenter">' . $this->tableBox($info_box_contents) . '</td> <td class="mws_boxRight"></td> </tr> <tr> <td>' . tep_image(DIR_WS_IMAGES . 'infobox/lower_left.gif','') . '</td> <td class="mws_boxBottom"></td> <td>' . tep_image(DIR_WS_IMAGES . 'infobox/lower_right.gif','') . '</td> </tr> </table>'; return $output; } ?>