Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

plazman65

Pioneers
  • Posts

    78
  • Joined

  • Last visited

  • Days Won

    1

plazman65 last won the day on December 7 2014

plazman65 had the most liked content!

1 Follower

Profile Information

  • Real Name
    Michelle

plazman65's Achievements

  1. The only thing that I have noticed is hidden reviews are showing even if they are inactive. Non hidden ones are showing correctly when active or inactive.. any ideas?
  2. Thanks! Here is the code list($dt_year, $dt_month, $dt_day) = explode('-', $downloads['date_purchased_day']); $download_timestamp = mktime(23, 59, 59, $dt_month, $dt_day + $downloads['download_maxdays'], $dt_year); Im unsure where to put the (int) in it? Can you help? Thanks!
  3. I have this mod installed http://addons.oscommerce.com/info/8080. It works perfect on my local server and downloads correctly . When I transferred everything online including the database,this was updating the database from 2.2 to 2.3 It completes the order online no problem but when you go to download the file you get this error Warning: mktime() expects parameter 6 to be long, string given in /home4/tristan1/public_html/download.php on line 31 Warning: Cannot modify header information - headers already sent by (output started at /home4/tristan1/public_html/download.php:31) in /home4/tristan1/public_html/download.php on line 122 In comparing databases etc the the only thing I have been able to figure out that the column "last_modified" in the new orders table database doesnt have a value in it. If I add a date manually in the database the error goes away and the product downloads correctly. I double checked the structure and they are both the same. Since the files are synchronized. I think I need to be looking at something in the database but Im not sure what? Thanks for any help :)
  4. Hi! I currently have Google XML Sitemap SEO V 1.7 installed and it works great. I have a lot of hidden products and categories that I dont want to show in the sitemap. Is there a work around for this? Or does someone have another suggestion? Thanks so much for the help :)
  5. I hope this is the thread to ask in.. Does anyone know of a sitemap generator that works for SPPC and Hide Products? Thanks for any help :)
  6. thanks for the help sadly it didnt work. I think I will have to forgo the box darn it
  7. No luck it still doesnt show at all.. any other ideas? I really appreciate the help :) I dont know if it helps but I tried it with just the SPPC changes before the hidden stuff is added as well and it disappears there as well.
  8. Yes I did.. its so strange especially because everything else works perfect. Here is my existing one in case that may help give a clue to what Im doing wrong? <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License */ class bm_whats_new { var $code = 'bm_whats_new'; var $group = 'boxes'; var $title; var $description; var $sort_order; var $enabled = false; function bm_whats_new() { $this->title = MODULE_BOXES_WHATS_NEW_TITLE; $this->description = MODULE_BOXES_WHATS_NEW_DESCRIPTION; if ( defined('MODULE_BOXES_WHATS_NEW_STATUS') ) { $this->sort_order = MODULE_BOXES_WHATS_NEW_SORT_ORDER; $this->enabled = (MODULE_BOXES_WHATS_NEW_STATUS == 'True'); $this->group = ((MODULE_BOXES_WHATS_NEW_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right'); } } function execute() { global $currencies, $oscTemplate; if ($random_product = tep_random_select("select products_id, products_image, products_tax_class_id, products_price from " . TABLE_PRODUCTS . " where products_status = '1' order by products_date_added desc limit " . MAX_RANDOM_SELECT_NEW)) { $random_product['products_name'] = tep_get_products_name($random_product['products_id']); $random_product['specials_new_products_price'] = tep_get_products_special_price($random_product['products_id']); if (tep_not_null($random_product['specials_new_products_price'])) { $whats_new_price = '<del>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</del><br />'; $whats_new_price .= '<span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>'; } else { $whats_new_price = $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])); } $data = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading"><a href="' . tep_href_link(FILENAME_PRODUCTS_NEW) . '">' . MODULE_BOXES_WHATS_NEW_BOX_TITLE . '</a></div>' . ' <div class="ui-widget-content infoBoxContents" style="text-align: center;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br />' . $whats_new_price . '</div>' . '</div>'; $oscTemplate->addBlock($data, $this->group); } } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_BOXES_WHATS_NEW_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 What\'s New Module', 'MODULE_BOXES_WHATS_NEW_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_WHATS_NEW_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_WHATS_NEW_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_WHATS_NEW_STATUS', 'MODULE_BOXES_WHATS_NEW_CONTENT_PLACEMENT', 'MODULE_BOXES_WHATS_NEW_SORT_ORDER'); } } ?>
  9. Hi! Separate Pricing Per Customer v4.2 2007/06/23, Hide products and categories from groups 2008/08/05. Everything is working great but the whats_new box. If I apply the new bm_whats_new page the box disappears. Can someone point me in the right direction? Thanks so much! <?php /* $Id$ adapted for Separate Pricing Per Customer v4.2 2007/08/10, Hide products and categories from groups 2008/08/04 osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License */ class bm_whats_new { var $code = 'bm_whats_new'; var $group = 'boxes'; var $title; var $description; var $sort_order; var $enabled = false; function bm_whats_new() { $this->title = MODULE_BOXES_WHATS_NEW_TITLE; $this->description = MODULE_BOXES_WHATS_NEW_DESCRIPTION; if ( defined('MODULE_BOXES_WHATS_NEW_STATUS') ) { $this->sort_order = MODULE_BOXES_WHATS_NEW_SORT_ORDER; $this->enabled = (MODULE_BOXES_WHATS_NEW_STATUS == 'True'); $this->group = ((MODULE_BOXES_WHATS_NEW_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right'); } } function execute() { global $currencies, $oscTemplate; // BOF Separate Pricing Per Customer /* if ($random_product = tep_random_select("select p.products_id, p.products_image, p.products_tax_class_id, p.products_price, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and pd.language_id = '" . (int)$languages_id . "' and p.products_id = pd.products_id order by p.products_date_added desc limit " . MAX_RANDOM_SELECT_NEW)) { */ // BOF Hide products and categories from groups if ($random_product = tep_random_select("select p.products_id, p.products_image, p.products_tax_class_id, p.products_price, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd left join " . TABLE_PRODUCTS_TO_CATEGORIES . " using(products_id) left join " . TABLE_CATEGORIES . " using(categories_id) where p.products_status = '1' and pd.language_id = '" . (int)$languages_id . "' and p.products_id = pd.products_id and find_in_set('".$customer_group_id."', products_hide_from_groups) = 0 and find_in_set('" . $customer_group_id . "', categories_hide_from_groups) = 0 order by products_date_added desc limit " . MAX_RANDOM_SELECT_NEW)) { // EOF Hide products and categories from groups // $random_product['products_name'] = tep_get_products_name($random_product['products_id']); $random_product['specials_new_products_price'] = tep_get_products_special_price($random_product['products_id']); // global variable (session) $sppc_customer_group_id -> local variable customer_group_id if (isset($_SESSION['sppc_customer_group_id']) && $_SESSION['sppc_customer_group_id'] != '0') { $customer_group_id = $_SESSION['sppc_customer_group_id']; } else { $customer_group_id = '0'; } if ($customer_group_id !='0') { $customer_group_price_query = tep_db_query("select customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . $random_product['products_id'] . "' and customers_group_id = '" . $customer_group_id . "'"); if ($customer_group_price = tep_db_fetch_array($customer_group_price_query)) { $random_product['products_price'] = $customer_group_price['customers_group_price']; } } // EOF Separate Pricing Per Customer if (tep_not_null($random_product['specials_new_products_price'])) { $whats_new_price = '<del>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</del><br />'; $whats_new_price .= '<span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>'; } else { $whats_new_price = $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])); } $data = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading"><a href="' . tep_href_link(FILENAME_PRODUCTS_NEW) . '">' . MODULE_BOXES_WHATS_NEW_BOX_TITLE . '</a></div>' . ' <div class="ui-widget-content infoBoxContents" style="text-align: center;"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br />' . $whats_new_price . '</div>' . '</div>'; $oscTemplate->addBlock($data, $this->group); } } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_BOXES_WHATS_NEW_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 What\'s New Module', 'MODULE_BOXES_WHATS_NEW_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_WHATS_NEW_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_WHATS_NEW_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_WHATS_NEW_STATUS', 'MODULE_BOXES_WHATS_NEW_CONTENT_PLACEMENT', 'MODULE_BOXES_WHATS_NEW_SORT_ORDER'); } } ?>
  10. Hi! I have SPPC and Hidden Products installed. Does anyone know what changes I would need to make to exclude hidden products from showing up? Thanks for any help :)
  11. I need help. I have version 2.3 installed and Ultimate Seo 5 installed on my local server and it worked perfectly! Now I put it up on my server (hostgator in case thats relevant) and Im getting a few strange errors. When I go into the database and manually turn it off I get this error Warning: strpos(): Empty needle in /home4/tristan1/public_html/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 121 above the logo area When I turned it on I get these errors and I am unable to see anything Warning: strpos(): Empty needle in /home4/tristan1/public_html/includes/modules/ultimate_seo_urls5/main/bootstrap.php on line 121 Warning: Cannot modify header information - headers already sent by (output started at /home4/tristan1/public_html/includes/modules/ultimate_seo_urls5/main/bootstrap.php:121) in /home4/tristan1/public_html/includes/modules/ultimate_seo_urls5/main/validator.php on line 178 Warning: Cannot modify header information - headers already sent by (output started at /home4/tristan1/public_html/includes/modules/ultimate_seo_urls5/main/bootstrap.php:121) in /home4/tristan1/public_html/includes/modules/ultimate_seo_urls5/main/validator.php on line 179 If someone could point me in the right direction I would greatly appreciate it :D
×
×
  • Create New...