Witam Wszystkich serdecznie, zacznę od przeprosin ponieważ ten temat pojawił się na forum Przedszkole za moją sprawką za co przepraszam moderatorów, mam nadzieję, że publikacja tutaj mojego problemu jest trafna i zachowam wszelkie panujące u Was zasady.

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ę:

  1. <?php
  2. if (isset($currencies) && is_object($currencies)) {?>
  3.  
  4. <?php
  5. $info_box_contents = array();
  6. $info_box_contents[] = array('text' => BOX_HEADING_STAR_PRODUCT);
  7. new infoBoxHeading($info_box_contents, true, true); 
  8.  
  9. $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 . "'");
  10. $star_products = tep_db_fetch_array($star_products_query);
  11. $star_products['products_name'] = tep_get_products_name($star_products['products_id']);
  12.  
  13. if (tep_not_null($star_products['products_shortdescription'])) {
  14. $star_products_description = strip_tags(substr($star_products['products_shortdescription'],0,170));
  15. }
  16. else {
  17. $star_products_description = strip_tags(substr($star_products['products_description'],0,170));
  18. }
  19.  
  20. if ($star_products_price = tep_get_products_special_price($star_products['products_id'])) {
  21. $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>';
  22. } else {
  23. $star_products_price2 = $currencies->display_price($star_products['products_price'], tep_get_tax_rate($star_products['products_tax_class_id']));
  24. }
  25.  
  26. $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>');
  27. new infoBox($star_products);
  28.  
  29. ?>
  30.  
  31. <?php
  32. }
  33. ?>


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:

  1. <?php
  2. // Graphical Borders
  3. function infoBox($contents) {
  4. $info_box_contents = array();
  5. $info_box_contents[] = array('text' => $this->mws_infoBoxContents($contents));
  6. $this->tableBox($info_box_contents, true);
  7. }
  8.  
  9. function mws_infoboxcontents($contents) {
  10. global $mws_headerText, $mws_headerLink;
  11. $this->table_cellpadding = '0';
  12. $this->align = 'center';
  13. $info_box_contents = array();
  14. $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
  15. for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
  16. $info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''),
  17. 'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''),
  18. 'params' => 'class="boxText"',
  19. 'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : '')));
  20. }
  21. $output = '
  22. <table cellspacing="0" cellpadding="0" border="0">
  23. <tr>
  24. <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_left.gif','') . '</td>
  25. <td class="mws_boxTop" width="100%">' . $mws_headerText;
  26. if ($mws_headerLink != false) {
  27. $output .= ' <a href="' . $mws_headerLink . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
  28. }
  29. $output .= '</td>
  30. <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_right.gif','') . '</td>
  31. </tr>
  32. <tr>
  33. <td class="mws_boxLeft"></td>
  34. <td class="mws_boxCenter">' . $this->tableBox($info_box_contents) . '</td>
  35. <td class="mws_boxRight"></td>
  36. </tr>
  37. <tr>
  38. <td>' . tep_image(DIR_WS_IMAGES . 'infobox/lower_left.gif','') . '</td>
  39. <td class="mws_boxBottom"></td>
  40. <td>' . tep_image(DIR_WS_IMAGES . 'infobox/lower_right.gif','') . '</td>
  41. </tr>
  42. </table>';
  43. return $output;
  44. }
  45. ?>