Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

danta67

Pioneers
  • Posts

    56
  • Joined

  • Last visited

Everything posted by danta67

  1. @@Tsimi Done and we will see thx a lot Danny
  2. @@Tsimi It got nothing to do with the contri i see now . Nothing works in edge so sorry for that. there must be something wrong with the whole osc edge version Danny
  3. Thx tsimi for the quick reply. but is it not that our customers decide what browser they use and should the contri not be working in all browser, i m not trying to be an .... but just trying to understand Danny
  4. Hi there, Just installed this contri and have a problem . If i work with chrome i can put text in the productoptions and everything goes well. but in Edge i cant write in the text area just nothing happens Any idea someone thx Danny
  5. I just installed your php5 tnt export

    But when i use it it doesnt export the streetname

    can you maybbee be any help

    Groet danta67

  6. Hi Jack installed your latest version today And the problem is still there can it be a language problem i can change everything in admin but still no result on links.php very strange danta67
  7. Thanks Jack but that doesnt change a thing so i think i did something wrong while installing the contri danta67
  8. Found the options but what to fill in there 1 2 3 or leave blanc i tryed all but they still come up danta67
  9. Does anyone know how to disable the image and discription options i looked in admin i found them but they will not go away thank you danta67
  10. Hi pete More people including me have this error and we do not know the answer So just wait and maybbee someone will help us danta67
  11. I used it on 2 stores 1 is a clean and 1 i mixed this contri in both gave me the same error so im lost Danny
  12. Hi Coolfly Still same errors here dont know what to do think i remove this contrie cause its not working right i copied al the files from the contri so it got nothing to do with missing some code danta67
  13. Btw it gives the error when i want change the lenght of characters 0 to 12 then i get the error i can make options but cant touch the character change thingy danta67
  14. there is no code for the database.php i copyed the product-atributes.php from the contri so there must be a error in the given file? Danta67
  15. Hi there i just installed this contri but i get on admin site when i want to create an text option Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in includes/functions/database.php on line 99 and Warning: Cannot modify header information - headers already sent by (output started at ....includes/functions/general.php on line 22 any one know this problem thank you Danta67
  16. I solved the tablebox but now i dont have any image i get error database any idea
  17. Hi there try to install this great contri but get an strange error Fatal error: Cannot redeclare class tablebox in public_html/includes/classes/boxes.php on line 13 any idea thanks danta67 my mistake solve but now i have no images any more i get error database
  18. Seems i was missing some code starproduct looks ok now only it messes up my site thanks for all your help danta67
  19. i only change that ? if i understand right done
  20. sorry for that it was not working so i changed it back Its now with your code if you look its still the same Thanks
  21. Thanks for the file change But it isnt working still the same Any more ideas Thanks Danta67
  22. If i put the code you gave me the error is gone but i miss some borders then and its together with the new prod module instead of both modules separate boxes have a look website
  23. yess i did then i get an error Parse error: syntax error, unexpected T_NEW that didnt do the trick thankyou danta67
  24. <?php //REMOVE THIS LINES IF YOU DON'T WANT TO SHOW THE HEADER //$header_star_product = array(); //$header_star_product[] = array('align' => 'center', 'text' => sprintf(STAR_TITLE)); new contentBoxHeading($header_star_product); //END OF -REMOVE THIS LINES IF YOU DON'T WANT TO SHOW THE HEADER- function tep_star_product_with_attributes($products_id) { $attributes_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$products_id . "'"); $attributes = tep_db_fetch_array($attributes_query); if ($attributes['count'] > 0) { return true; } else { return false; } } $star_products_query = tep_db_query("select substring(pd.products_description, 1, 598) as products_description, p.products_id, p.products_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 p.products_id = s.products_id) where p.products_id = pd.products_id and p.products_status = '1' and pd.products_description != '' 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']); $evita_cortar_palabras = explode( ' ', $star_products["products_description"] ); array_pop( $evita_cortar_palabras ); $star_products["products_description"] = implode( ' ', $evita_cortar_palabras ); if (!tep_star_product_with_attributes($star_products['products_id'])) { $star_products["0"] = array('align' => 'center', 'params' => 'width="100%" valign="top"', 'text' => '<tr> <td height="15%" width="85%" class="star-product-title">' . $star_products['products_name'] . '</td> <td align="right" height="100%" width="15%" rowspan="2"><a href="' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $star_products['products_id']) . '"' . ' target="popup"' . ' onClick="window.open(this.href, this.target, \'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=' . SMALL_IMAGE_WIDTH . ', height=' . SMALL_IMAGE_HEIGHT . '\').focus(); return false;">' . tep_image(DIR_WS_IMAGES . $star_products['products_image'], $star_products['products_name'], SMALL_IMAGE_WIDTH*2, SMALL_IMAGE_HEIGHT*2) . '</a></td> </tr> <tr> <td height="80%" width="85%" class="star-product">'. strip_tags($star_products["products_description"]) . '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, "products_id=" . $star_products["products_id"]). '">' . STAR_READ_MORE . '</a></td> </tr> <tr> <td height="5%" width="85%" class="star-product-price" align="center">'. $currencies->display_price($star_products['final_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</td> </tr> <tr> <td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, "products_id=" . $star_products["products_id"]). '">' . tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/more_info.gif') . '</a>' . tep_draw_separator('pixel_trans.gif', '10', '10') . '<a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $star_products['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_IN_CART) . '</a></td> </tr>'); $star_products_output = array_slice($star_products, sizeof($star_products)-1); new contentBox($star_products_output); } else { $star_products["0"] = array('align' => 'center', 'params' => 'width="100%" valign="top"', 'text' => '<tr> <td height="15%" width="85%" class="star-product-title">' . $star_products['products_name'] . '</td> <td align="right" height="100%" width="15%" rowspan="2"><a href="' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $star_products['products_id']) . '"' . ' target="popup"' . ' onClick="window.open(this.href, this.target, \'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=' . SMALL_IMAGE_WIDTH . ', height=' . SMALL_IMAGE_HEIGHT . '\').focus(); return false;">' . tep_image(DIR_WS_IMAGES . $star_products['products_image'], $star_products['products_name'], SMALL_IMAGE_WIDTH*2, SMALL_IMAGE_HEIGHT*2) . '</a></td> </tr> <tr> <td height="80%" width="85%" class="star-product">'. strip_tags($star_products["products_description"]) . '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, "products_id=" . $star_products["products_id"]). '">' . STAR_READ_MORE . '</a></td> </tr> <tr> <td height="5%" width="85%" class="star-product-price" align="center">'. $currencies->display_price($star_products['final_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</td> </tr> <tr> <td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, "products_id=" . $star_products["products_id"]). '">' . tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/more_info.gif') . '</a>' . tep_draw_separator('pixel_trans.gif', '10', '10') . '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $star_products['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_IN_CART) . '</a></td> </tr>'); new contentBox($star_products); } ?> this is my starproduct file thanks for the quick answer
  25. You can style any box using the included functions if you have say new contentBox($info_box_contents) change to mws_boxHeader () new noborderBox($info_box_contents) mws_boxFooter() if you need to place a title in the header, add the text within the brackets. I tryed this in starproducts but i dont have this line in the file the closest i get is new contentBox($star_products); if i change that then i get an error Parse error: syntax error, unexpected T_NEW can anybody tell me what to do help please Danta67
×
×
  • Create New...