Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

snights

Pioneers
  • Posts

    27
  • Joined

  • Last visited

Profile Information

  • Real Name
    fredrik
  • Gender
    Male
  • Location
    Stockholm, Sweden

snights's Achievements

  1. @@FWR Media I've sent you a PM with image .png. Another "error". saw that my pixel_trans.gif got a thumbnail now and its white not transparency. Maybe same thing or maby its something wrong with the person behind screen. (me :) )
  2. great work as alway FWR! .jpg works great. .png dont work. any fix for that? or is it just me? :) another question. is there any tip on how to hide the thumbnail folder? htaccess rewrite? or maby change it to catalog/thumbnail/ instead? thought for secuirty reason? maby useless idont know. just got a feeling thats no reason showing of subfolders like that. thanks again for a great addon! if everyone would be like you.. what a wonderful world.
  3. Have someone succed with make wishlist box to a osc 2.3.1 box? Orginal code is <?php /* $Id: wishlist.php,v 3.0 2005/04/20 Dennis Blake osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Released under the GNU General Public License */ /******************************************************************* ****** QUERY THE DATABASE FOR THE CUSTOMERS WISHLIST PRODUCTS ****** *******************************************************************/ require_once(DIR_WS_LANGUAGES . $language . '/' . FILENAME_WISHLIST); ?> <!-- wishlist //--> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_CUSTOMER_WISHLIST ); new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_WISHLIST, '','NONSSL')); $info_box_contents = array(); if (is_array($wishList->wishID) && !empty($wishList->wishID)) { reset($wishList->wishID); if (count($wishList->wishID) < MAX_DISPLAY_WISHLIST_BOX) { $wishlist_box = '<table>'; $counter = 1; /******************************************************************* *** LOOP THROUGH EACH PRODUCT ID TO DISPLAY IN THE WISHLIST BOX **** *******************************************************************/ while (list($wishlist_id, ) = each($wishList->wishID)) { $wishlist_id = tep_get_prid($wishlist_id); $products_query = tep_db_query("select pd.products_id, pd.products_name, pd.products_description, p.products_image, p.products_price, p.products_tax_class_id, 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 from (" . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd ) left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where pd.products_id = '" . $wishlist_id . "' and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' order by products_name"); $products = tep_db_fetch_array($products_query); $wishlist_box .= '<tr><td class="infoBoxContents" valign="top">0' . $counter . '.</td>'; $wishlist_box .= '<td class="infoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products['products_id'], 'NONSSL') . '">' . $products['products_name'] . '</a></td></tr>'; $counter++; } $wishlist_box .= '</table>'; } else { $wishlist_box = '<div class="infoBoxContents">' . sprintf(TEXT_WISHLIST_COUNT, count($wishList->wishID)) . '</div>'; } } else { $wishlist_box = '<div class="infoBoxContents">' . BOX_WISHLIST_EMPTY . '</div>'; } $info_box_contents[] = array('align' => 'left', 'text' => $wishlist_box); new infoBox($info_box_contents); ?> <!-- wishlist_eof //--> Also the old include to column_right.php is if($wishList->count_wishlist() != '0') { require(DIR_WS_BOXES . 'wishlist.php'); }
  4. Try <?php } //++++ QT Pro: End Changed Code change that to <?php //++++ QT Pro: End Changed Code That is delete the first "}" So the whole thing should look like <?php //++++ QT Pro: End Changed Code $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { //++++ QT Pro: Begin Changed code $products_id=(preg_match("/^\d{1,10}(\{\d{1,10}\}\d{1,10})*$/",$HTTP_GET_VARS['products_id']) ? $HTTP_GET_VARS['products_id'] : (int)$HTTP_GET_VARS['products_id']); require(DIR_WS_CLASSES . 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN . '.php'); $class = 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN; $pad = new $class($products_id); echo $pad->draw(); } //Display a table with which attributecombinations is on stock to the customer? if(PRODINFO_ATTRIBUTE_DISPLAY_STOCK_LIST == 'True'): require(DIR_WS_MODULES . "qtpro_stock_table.php"); endif; //++++ QT Pro: End Changed Code ?>
  5. Where did you find 15c) Around line 599 find the section of code that reads as follows: } elseif ($action == 'new_product_preview') { if (tep_not_null($HTTP_POST_VARS)) { $pInfo = new objectInfo($HTTP_POST_VARS); $products_name = $HTTP_POST_VARS['products_name']; $products_description = $HTTP_POST_VARS['products_description']; $products_url = $HTTP_POST_VARS['products_url']; } else { $product_query = tep_db_query("select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "'"); $product = tep_db_fetch_array($product_query); in admin/categories.php?? all I find thats close to that is. } elseif ($action == 'new_product_preview') { $product_query = tep_db_query("select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "'"); $product = tep_db_fetch_array($product_query); $pInfo = new objectInfo($product); $products_image_name = $pInfo->products_image; $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $pInfo->products_name = tep_get_products_name($pInfo->products_id, $languages[$i]['id']); $pInfo->products_description = tep_get_products_description($pInfo->products_id, $languages[$i]['id']); $pInfo->products_url = tep_get_products_url($pInfo->products_id, $languages[$i]['id']); ? Also same file 15e) Around line 386 find the code that reads as follows: $products_name = $HTTP_POST_VARS['products_name']; $products_description = $HTTP_POST_VARS['products_description']; $products_url = $HTTP_POST_VARS['products_url']; Does not exist
  6. Anyone got x-sell to work on osc 2.3.1? I got so far that its working in admin and i can create a cross sale. But it wont show up on products_info Any one that have succeeded?
  7. Ive tried but well i just gave up and hope someone will make a version for 2.3.1 :) information box looks like this on dynamic information pages <?php /* $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ ?> <!-- information_pages //--> <tr> <td> <?php //BEGIN Added Lines: Dynamic Information pages $information_pages_query = tep_db_query("select p.pages_id, pd.pages_name from " . TABLE_PAGES . " p, " . TABLE_PAGES_DESCRIPTION . " pd where p.pages_status = '1' and p.pages_id = pd.pages_id and pd.language_id = '" . $languages_id . "' order by p.sort_order, pd.pages_name"); $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); //To use numbered listing like in the bestsellers box: Replace || . tep_image(DIR_WS_IMAGES . 'tri.gif') . || with || . tep_row_number_format($rows) . $rows = 0; while ($information_pages = tep_db_fetch_array($information_pages_query)) { $rows++; $information_list .= '<a href="' . tep_href_link(FILENAME_PAGE_INFO, 'pages_id=' . $information_pages['pages_id'] . '&pages_name=' . $information_pages['pages_name']) . '">' . $information_pages['pages_name'] . '</a><br>'; } //END Added Lines: Dynamic Information pages $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_IMPRESSUM) . '">' . BOX_INFORMATION_IMPRESSUM . '</a>' //BEGIN Added Lines: Dynamic Information pages . '<br>' . $information_list ); //END Added Lines: Dynamic Information pages new infoBox($info_box_contents); ?> </td> </tr> <!-- information_pages_eof //-->
  8. I have tried Information Pages Unlimited for 2.3.1 and the things i didnt get to work was the menu's in catalog and admin. hope there will be a 2.3.1 release on that addon soon :(
  9. no, i only have one language in oscommerce and that swedish. Edit: I also get this error message with "Modular SEO Header Tags 1.2.2" on every "string" module.
  10. Warning: constant() [function.constant]: Couldn't find constant MODULE_FRONT_PAGE_TEXT_MAIN_SWEDISH in E:\www\includes\modules\front_page\text_main.php on line 46" on version "Modular Front Page 1.2.1"
  11. How do i uninstall the SQL? INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES ('289', 'Google XML SEO', 'Google XML Sitemap SEO Options', '29', '1'); INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added, use_function) VALUES (NULL,'Sitemap file', 'GOOGLE_XML_SITEMAP_SEO', 'Standard', 'Which file to use for the sitemap creation. Use Standard unless it doesn\'t work correctly.<br>(Standard=on Alternate=off)', '289', '1', 'tep_cfg_select_option(array(\'Standard\', \'Alternate\'), ', now(), NULL); INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added, use_function) VALUES (NULL,'Enable Manufacturers Map', 'GOOGLE_XML_SITEMAP_CREATE_MANU', 'false', 'Set to true if you would like a site map created for your manufactureres.<br>(true=on false=off)', '289', '5', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now(), NULL); INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added, use_function) VALUES (NULL,'Enable Specials Map', 'GOOGLE_XML_SITEMAP_CREATE_SPECIALS', 'false', 'Set to true if you would like a site map created for your specials.<br>(true=on false=off)', '289', '7', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now(), NULL); INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added, use_function) VALUES (NULL,'Enable Standard Pages Map', 'GOOGLE_XML_SITEMAP_CREATE_PAGES', 'false', 'Set to true if you would like a site map created for your standard pages.<br>(true=on false=off)', '289', '10', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now(), NULL); INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added, use_function) VALUES (NULL,'Enable Diagnostic Output', 'GOOGLE_XML_SITEMAP_SHOW_DIAGNOSTIC', 'false', 'Set to true if you would like debug information displayed. This is useful if the site maps are not being created correctly.<br>(true=on false=off)', '289', '15', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now(), NULL); INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added, use_function) VALUES (NULL, 'Exclude these pages', 'GOOGLE_XML_SITEMAP_EXCLUDE_PAGES', '', 'Add these pages to the built-in file exclude list. This will prevent the links from being added to the pages site map.', '289', '20', NULL, now(), NULL); DROP something something.. I wanted to update from an older version. Now I have 2 rows of everything in admin->configuration->Google XML Sitemap
  12. Solved. Changed <object width="425" height="344"> <param name="movie" value="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2= 0x999999"> </param><param name="allowFullScreen" value="true"> </param><embed src="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2= 0x999999" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object> To <object type="application/x-shockwave-flash" width="425" height="344" data="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2= 0x999999" id="VideoPlayback"> <param name="movie" value="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2= 0x999999"> <param name="allowScriptAcess" value="sameDomain"> <param name="quality" value="best"> <param name="bgcolor" value="#FFFFFF"> <param name="scale" value="noScale"> <param name="salign" value="TL"> <param name="FlashVars" value="playerMode=embedded" /> <param name="wmode" value="transparent" /> </object>
  13. Im thinking its maby problem occurs with my lightbox script that it haves "dom:loaded".. a i.e problem?..
  14. Hi, Ive installed a contribution called "oscyoutube" http://addons.oscommerce.com/info/6373 I installed this becus putting youtube embedd code directly into products description made it go error and just gave a blank page. After this contribtion it worked perfectly. I tryed it on my three other computers to and it worked.. But then i tried at my friends place and it gave me error.. It loaded the page so that the logo on the top showed but rest of the page was blank. Tried at another computer samething.. Then another computer it worked and so on.. So about 50% of all the test at the same page and product it worked, the rest 50% it didnt. ?.. Anyone have any idé what it could be? And it uses a code i product_info.php <!-- begin Video Youtube --> <?php $small_youtube = $product_info['products_youtube']; if ($small_youtube == NULL) { echo '<font color="red">NO VIDEO</font>'; } else { $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => ' <object width="425" height="344"> <param name="movie" value="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2= 0x999999"> </param><param name="allowFullScreen" value="true"> </param><embed src="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2= 0x999999" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object> '); new infoBox($info_box_contents); } ?> <!-- Video Youtube //-->
×
×
  • Create New...