Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

claireb85

Pioneers
  • Posts

    32
  • Joined

  • Last visited

Everything posted by claireb85

  1. Jim Yeah it was a CSS problem, thanks for your help, it now works perfectly. Claire
  2. hello, I am trying to add sale banner to sale products on my site but it seems to appear below the image instead of on top on it. i am not sure where I am going wrong, below is my code for product_listing, it is slightly different to the code you have used. case 'PRODUCT_LIST_IMAGE': $specials_overlay = false; if( tep_not_null( $listing['specials_new_products_price'] ) ) $specials_overlay = true; if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) { $p_pic = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, '', $specials_overlay ) . '</a>'; } else { $p_pic = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, '', $specials_overlay ) . '</a>'; } break; I would be greatful for any help with this. Thanks Claire
  3. Jim, I figured out how to fix it, I changed the Review Text Minimum value in my admin area to 10 and removed approved and IP address from catalog/includes/modules/product_info_process as these were not values in my TABLE _REVIEWS, not sure if this is the correct thing to do but it now works perfectly. Overall this is an excellent add-on (if not a little tricky to setup) but overall works really well, Thanks Claire
  4. Hello, I was wondering did anyone ever worked out how to make the reviews tab work, I have made all the changes suggested on this forum but I still get this: product_info.php?action=process&tab=9&products_id=47 in the address bar but it doesn't show in the reviews area in my admin. I would be greatful for any help, I have managed to solve all other problems but I just cant work this one out, other then that the add-on is working perfectly. Thanks Claire
  5. Hi Jim I have installed ckeditor but i dont want to use it on my products_tabs, I have removed "class="ckeditor" (as you suggested in earlier post )from admin/includes/modules/products_tabs.php but it still appears. Is there a step that I am missing, I also get this error in firebug uncaught exception: [CKEDITOR.editor.replace] The element with id or name "" was not found. The reason I want to remove it is that it seems to break the tab structure. I would really appreciate any help. Thanks Claire
  6. @@kymation No problem, I tried adding a div around each filter but I seems to put them inside each other, but I will take a look at functions/product_specifications.php and hopefully I will fix it out there, thanks again for all your help :D
  7. @@kymation Thanks for your reply, I have checked this in firebug on firefox and the only errors i get are for missing images (example below) which i have fixed and have no effect on the layout http://postimage.org/image/7eiwf6cxt/ Below is my bm_product_filters.php (i think this is where the problem is) could you check it to see if I have deleted or changed something that I shouldn't have. <?php /* $Id: bm_products_filter.php, v 1 20110717 kymation Exp $ $Loc: catalog/includes/modules/boxes/ $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2011 osCommerce Released under the GNU General Public License */ class bm_products_filter { var $code = 'bm_products_filter'; var $group = 'boxes'; var $title; var $description; var $sort_order; var $enabled = false; function bm_products_filter() { $this->title = MODULE_BOXES_PRODUCTS_FILTER_TITLE; $this->description = MODULE_BOXES_PRODUCTS_FILTER_DESCRIPTION; if (defined('MODULE_BOXES_PRODUCTS_FILTER_STATUS')) { $this->sort_order = MODULE_BOXES_PRODUCTS_FILTER_SORT_ORDER; $this->enabled = (MODULE_BOXES_PRODUCTS_FILTER_STATUS == 'True'); $this->group = ((MODULE_BOXES_PRODUCTS_FILTER_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right'); } } function execute() { global $current_category_id, $languages_id, $oscTemplate, $currencies; require_once (DIR_WS_FUNCTIONS . 'products_specifications.php'); require_once (DIR_WS_CLASSES . 'specifications.php'); $spec_object = new Specifications(); $box_text = ''; //HTML string goes into the text part of the box $specs_query_raw = " select s.specifications_id, s.products_column_name, s.filter_class, s.filter_show_all, s.filter_display, sd.specification_name, sd.specification_prefix, sd.specification_suffix from " . TABLE_SPECIFICATION . " s join " . TABLE_SPECIFICATION_DESCRIPTION . " sd on (sd.specifications_id = s.specifications_id) join " . TABLE_SPECIFICATION_GROUPS . " sg on (sg.specification_group_id = s.specification_group_id) join " . TABLE_SPECIFICATIONS_TO_CATEGORIES . " s2c on (s2c.specification_group_id = sg.specification_group_id) where s2c.categories_id = '" . $current_category_id . "' and s.show_filter = 'True' and sg.show_filter = 'True' and sd.language_id = '" . $languages_id . "' order by s.specification_sort_order, sd.specification_name "; // print $specs_query_raw . "<br>\n"; $specs_query = tep_db_query($specs_query_raw); $first = true; while ($specs_array = tep_db_fetch_array($specs_query)) { // Retrieve the GET vars, sanitize, and assign to variables // Variable names are the letter "f" followed by the specifications_id $var = 'f' . $specs_array['specifications_id']; $$var = '0'; if (isset ($_GET[$var]) && $_GET[$var] != '') { // Decode the URL-encoded names, including arrays $$var = tep_decode_recursive($_GET[$var]); // Sanitize variables to prevent hacking $$var = tep_clean_get__recursive($_GET[$var]); // Get rid of extra values if Select All is selected $$var = tep_select_all_override($$var); } $filters_query_raw = " select sf.specification_filters_id, sfd.filter from " . TABLE_SPECIFICATIONS_FILTERS . " sf join " . TABLE_SPECIFICATIONS_FILTERS_DESCRIPTION . " sfd on (sfd.specification_filters_id = sf.specification_filters_id) where sf.specifications_id = '" . (int) $specs_array['specifications_id'] . "' and sfd.language_id = '" . $languages_id . "' order by sf.filter_sort_order, sfd.filter "; // print $filters_query_raw . "<br>\n"; $filters_query = tep_db_query($filters_query_raw); $count_filters = tep_db_num_rows($filters_query); $filters_select_array = array (); if ($count_filters >= MODULE_BOXES_PRODUCTS_FILTER_MINIMUM) { $filters_array = array (); if ($first == false) { $box_text .= "<br>\n"; } $first = false; $box_label .= '<b>' . $specs_array['specification_name'] . '</b><br/>'; $filter_index = 0; if ($specs_array['filter_show_all'] == 'True') { $count = 1; if (MODULE_BOXES_PRODUCTS_FILTER_NO_RESULT != 'normal' || MODULE_BOXES_PRODUCTS_FILTER_SHOW_COUNT == 'True') { // Filter ID is set to 0 so no filter will be applied $count = $spec_object->getFilterCount('0', $specs_array['specifications_id'], $specs_array['filter_class'], $specs_array['products_column_name']); } // The ID value must be set as a string, not an integer $filters_select_array[$filter_index] = array ( 'id' => '0', 'text' => TEXT_SHOW_ALL, 'count' => $count ); $filter_index++; } $previous_filter = 0; $previous_filter_id = 0; while ($filters_array = tep_db_fetch_array($filters_query)) { $filter_id = $filters_array['filter']; if ($specs_array['products_column_name'] == 'products_price' || $specs_array['products_column_name'] == 'final_price') { $previous_filter = $currencies->format($previous_filter); $filter_text = $currencies->format($filters_array['filter']); } else { $filter_text = $specs_array['specification_prefix'] . ' ' . $filters_array['filter'] . ' ' . $specs_array['specification_suffix']; } if ($specs_array['filter_class'] == 'range') { $filter_text = $previous_filter . ' - ' . $filter_text; $filter_id = $previous_filter_id . '-' . $filters_array['filter']; $previous_filter = $filters_array['filter']; $previous_filter_id = $filters_array['filter']; } $count = 1; if (MODULE_BOXES_PRODUCTS_FILTER_NO_RESULT != 'normal' || MODULE_BOXES_PRODUCTS_FILTER_SHOW_COUNT == 'True') { $count = $spec_object->getFilterCount($filter_id, $specs_array['specifications_id'], $specs_array['filter_class'], $specs_array['products_column_name']); } $filters_select_array[$filter_index] = array ( 'id' => $filter_id , 'text' => $filter_text, 'count' => $count); $filter_index++; } // while ($filters_array // For range class only, create a filter for maximum value + if ($specs_array['filter_class'] == 'range') { if ($specs_array['products_column_name'] == 'products_price' || $specs_array['products_column_name'] == 'final_price') { $previous_filter = $currencies->format($previous_filter); } $count = 1; if (MODULE_BOXES_PRODUCTS_FILTER_NO_RESULT != 'normal' || MODULE_BOXES_PRODUCTS_FILTER_SHOW_COUNT == 'True') { $count = $spec_object->getFilterCount($previous_filter_id, $specs_array['specifications_id'], $specs_array['filter_class'], $specs_array['products_column_name']); } // $filters_select_array[$filter_index] = array ('id' => rawurlencode ($previous_filter_id), $filters_select_array[$filter_index] = array ( 'id' => ($previous_filter_id ), 'text' => $previous_filter . '+', 'count' => $count); } // if ($specs_array['filter_class'] == 'range' $box_text .= tep_get_filter_string($specs_array['filter_display'], $filters_select_array, FILENAME_PRODUCTS_FILTERS, $var, $$var); if ($box_text != '<br clear=all>') { $box_text = $box_label . $box_text; } } // if ($count_filters } // while ($specs_array if ($count_filters >= MODULE_BOXES_PRODUCTS_FILTER_MINIMUM) { $oscTemplate->addBlock($box_text, $this->group); } } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_BOXES_PRODUCTS_FILTER_STATUS'); } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Filter Box Module', 'MODULE_BOXES_PRODUCTS_FILTER_STATUS', 'True', 'Do you want to add the module to your shop?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Placement', 'MODULE_BOXES_PRODUCTS_FILTER_CONTENT_PLACEMENT', 'Left Column', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Left Column\', \'Right Column\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_BOXES_PRODUCTS_FILTER_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '2', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Minimum Spec Filter', 'MODULE_BOXES_PRODUCTS_FILTER_MINIMUM', '2', 'The minimum number of filters needed to have the Filters box show up in the column', '6', '3', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Filter Show Count', 'MODULE_BOXES_PRODUCTS_FILTER_SHOW_COUNT', 'True', 'Show the number of products that the filter would return', '6', '4', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Filter No Result', 'MODULE_BOXES_PRODUCTS_FILTER_NO_RESULT', 'normal', 'What to show for a filter that would return no result.', '6', '5', 'tep_cfg_select_option(array(\'normal\', \'grey\', \'none\'), ', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { $keys = array (); $keys[] = 'MODULE_BOXES_PRODUCTS_FILTER_STATUS'; $keys[] = 'MODULE_BOXES_PRODUCTS_FILTER_CONTENT_PLACEMENT'; $keys[] = 'MODULE_BOXES_PRODUCTS_FILTER_SORT_ORDER'; $keys[] = 'MODULE_BOXES_PRODUCTS_FILTER_MINIMUM'; $keys[] = 'MODULE_BOXES_PRODUCTS_FILTER_SHOW_COUNT'; $keys[] = 'MODULE_BOXES_PRODUCTS_FILTER_NO_RESULT'; return $keys; } } ?> Thank you for your help, I am beginning to pull my hair out trying to figure this out. :(
  8. @@kymation I am having a problem with products filter infobox. I have tried alot of different variations but it always looks like image (link below). I can not figure out how to fix it. I have also shown how I have set the filters up in admin incase I am doing something wrong here. http://postimage.org/image/wlknbfgcb/ I would be extremely greatful for any help.
  9. @@willer2k Did you have any luck with this?, i have exactly the same thing is happening to my site but I cant figure out how to fix it. I have even removed all specifications and started again but get the same problem.
  10. Jim, thank you, problem solved, I had forgot to add link to clean_code.php in application_top, seems to work fine now, I just need to style it, thanks again for your quick response. :D
  11. Hello, I installed this add on a few days ago and am having a few problems with it, I know these are due to some mistake that I have made but I just cant figure it out. On product_info.php I cant get the tabs to work properly. I have included a link to my site: http://idesignni.com/nineteen83/product_info.php?cPath=2_16&products_id=7 If someone could point me in the right direction or let me know know what I have done wrong, I would be extremely greatful. :D
  12. Hello, Could someone help me link this in my site. I have used a template so the code is slightly different, what do I change to link it to my pages? I assume that this is the same principals as changing the links in the infobox but I can't get it to work. My code is: (this is for links in the header of my site) <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ class hm_user_menu { var $code = 'hm_user_menu'; var $group = 'boxes'; var $title; var $description; var $sort_order; var $enabled = false; function hm_user_menu() { $this->title = MODULE_BOXES_USER_MENU_TITLE; $this->description = MODULE_BOXES_USER_MENU_DESCRIPTION; if ( defined('MODULE_BOXES_USER_MENU_STATUS') ) { $this->sort_order = MODULE_BOXES_USER_MENU_SORT_ORDER; $this->enabled = (MODULE_BOXES_USER_MENU_STATUS == 'True'); $this->group = 'box_header_user_menu'; } } function execute() { global $oscTemplate, $button_act, $tab_sel; if (($tab_sel == tep_href_link(FILENAME_CREATE_ACCOUNT)) || ($tab_sel == tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS)) || ($tab_sel == tep_href_link(FILENAME_ACCOUNT)) || ($tab_sel == tep_href_link(FILENAME_ACCOUNT_PASSWORD)) || ($tab_sel == tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS)) || ($tab_sel == tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS)) || ($tab_sel == tep_href_link(FILENAME_ACCOUNT_HISTORY)) || ($tab_sel == tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO)) || ($tab_sel == tep_href_link(FILENAME_ACCOUNT_EDIT)) || ($tab_sel == tep_href_link(FILENAME_ADVANCED_SEARCH))) { $button_act2 = " act"; } if (($tab_sel == tep_href_link(FILENAME_LOGIN)) || ($tab_sel == tep_href_link(FILENAME_LOGOFF)) ){ $button_act1 = " act"; } if ($tab_sel == tep_href_link(FILENAME_SHIPPING)) { $button_act3 = " act"; } if (tep_session_is_registered('customer_id')) { $login_link = tep_href_link('logoff.php'); $login_title= MODULE_BOXES_USER_MENU_BOX_TITLE_LOGOFF; } else{ $login_link = tep_href_link('login.php'); $login_title= MODULE_BOXES_USER_MENU_BOX_TITLE_LOGIN; } if (tep_session_is_registered('customer_id')) { $acc_link = tep_href_link('account.php'); $acc_title= MODULE_BOXES_USER_MENU_BOX_MY_ACCOUNT; } else{ $acc_link = tep_href_link('create_account.php'); $acc_title= MODULE_BOXES_USER_MENU_BOX_CREATE_ACCOUNT; } $data = '<ul class="user_menu">'. '<li class="'.$button_act3.'"><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">'.tep_draw_button_header_top().'<span>'.MODULE_BOXES_USER_MENU_BOX_ADVANCED_SEARCH.'</span>'.tep_draw_button_header_bottom().'</a></li>'. '<li class="'.$button_act3.'"><a href="' . tep_href_link(FILENAME_SHIPPING) . '">'.tep_draw_button_header_top().'<span>'.MODULE_BOXES_USER_MENU_BOX_SHIPPING.'</span>'.tep_draw_button_header_bottom().'</a></li>'. '<li class="'.$button_act2.'"><a href="' .$acc_link. '">'.tep_draw_button_header_top().'<span>'.$acc_title.'</span>'.tep_draw_button_header_bottom().'</a></li>'. '<li class="'.$button_act1.'"><a href="'.$login_link.'">'.tep_draw_button_header_top().'<span>'.$login_title.'</span>'.tep_draw_button_header_bottom().'</a></li>'. '</ul>'; $oscTemplate->addBlock($data, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_BOXES_USER_MENU_STATUS'); } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Information Module', 'MODULE_BOXES_USER_MENU_STATUS', 'True', 'Do you want to add the module to your shop?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Placement', 'MODULE_BOXES_USER_MENU_CONTENT_PLACEMENT', 'Header Block', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Header Block\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_BOXES_USER_MENU_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_BOXES_USER_MENU_STATUS', 'MODULE_BOXES_USER_MENU_CONTENT_PLACEMENT', 'MODULE_BOXES_USER_MENU_SORT_ORDER'); } } ?> I am sure that i have installed the add-on correctly, I just cant figure out how to link it. I would be really grateful for any help.
  13. Hi I have installed this contribution it is exactly what i am looking for. But i have one problem my Best Sellers seems to show as "products z to a" instead. I cant figure out what i did wrong, no sure if i have my cron jobs set up right. Can anyone help!!! Thanks ClaireB
  14. Hey just wanted to say really good contribution, really easy to install and works perfect Thanks :thumbsup:
  15. Hi was wondering if anyone could help! I have downloaded this contribution and it works great except that it doesnt seem to be able to find my style sheet. Any changes i make to the stylesheet are not reflected in the email I would be really greatful if anyone could help Thanks
  16. Hi everyone i have installed the wishlist contribution and it works well however I have added a wishlist button to product_listing but when the button is pressed the item is not added to the list. it says "no products are in wishlist" Could anyone tell me what i am doing wrong or how to fix this. I was also wondering how the "email your wish list" works all i have when the user is signed in is a message area but no area to type in the email address. I am a bit confussed Thanks if anyone can help
×
×
  • Create New...