Latest News: (loading..)

claireb85

Members
  • Content count

    32
  • Joined

  • Last visited

1 Follower

About claireb85

Profile Information

  • Real Name
    Claire
  • Gender
    Female
  1. @@DunWeb Yeah, I think I will have to install a fresh version of oscommerce and re install all the add ons I added until I figure out what is causing the problem, I will post here once I find out what the problem is. Thanks Claire
  2. Chris They asked me to create a custom field for osCid which makes me think they must use it somewhere, I cant see anywhere that would cause it to send it twice though, i think it is a problem with the module rather then oscommerce. I am trying to contact securetrading but they aren't much help :( Thanks again for your qucik reply
  3. Hello Chris, Thanks for your quick reply, I only have minimal knowledge of coding (enough to install addons etc) but I think securetrading asks for the oscid in their payent module, is this not normal? Thanks again Claire
  4. Hello, i have recently started installing secureTrading as my payment module, but I cant get it to work. I contacted securetrading and they said that "the field “osCsid” is being submitted twice" to their system. I cant find where this would be happening or even where to start looking for the problem. I would be exteemely greatful if anyone could help me with this as I am really stuck on it. Thanks Claire
  5. Jim Yeah it was a CSS problem, thanks for your help, it now works perfectly. Claire
  6. 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
  7. 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
  8. 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
  9. 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
  10. @@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
  11. @@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. :(
  12. @@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.
  13. @@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.
  14. 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
  15. 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