Jump to content

Micke

Members
  • Content count

    193
  • Joined

  • Last visited

Everything posted by Micke

  1. Between lines 122-130 there's this piece of code: if ($GLOBALS['this_level'] != $level) { if ($GLOBALS['this_level'] < $level) $output .= "\n".'<ul>'; else $output .= '</ul></li>'."\n"; $GLOBALS['this_level'] = $level; } I believe that there has to be some code here checking if were back att root level or not... and if were not keep on </ul>'ing until we are... Anybody knows how to fix that?
  2. Hi! I still have the problem I posted earlier... I believe it's something that has to be fixed in ul_categories.php. Here's what happens if I set the "show_full_tree" to "true": The menu has 3 or 4 top level categories, depending on language. In the last top level categoriy there is a tangled up version of the rest of the categories. It seems like the script does not find it's way back to the "root". The UL-list drifts deeper into new levels. (Without CSS, this contribution makes a very nice site map by the way...) Setting the "show_full_tree" to "false" renders all 22 top level categories perfectly! But that's what you get with the standard menu... Since I have 840 products in 22 top level categories with sometimes as much as 4(or 5?) sub levels, rendering the full tree with all the fly-outs will give customers a fair chance to get an overview of the products...
  3. This reply was posted by mistake, and I could not figure out how to delete it...
  4. Here's more... I have 22 main categories in total and three levels at maximum... Firefox: The webpage in Swedish shows the first four main categories and all four fly-out! The webpage in English shows the first three main categories and all three fly-out! IE: The webpage in Swedish shows the first four main categories and none of them fly-out! The webpage in English shows the first three main categories and none of them fly-out! We have to fix this to be able to use this contrib, of course...I'm not sure how.
  5. Thanks for this great contribution, this is exactly what I want! The other dynamic category enhancement I have run into I never got right... I have had a look at Suckerfish and this contributions looks very promising! If I have gotten the instructions right, doing a clean "to-start-with" install of this contribution is just a matter of putting ul_categories.php in the boxes directory and adding the example css to the stylesheet. I run into trouble though, because the menu only shows the first four main categories and no sub levels fly out... Running it without stylesheet renders an unorderd list (as promised) with the four first main categories and all their sub levels. Hmm. Have I missed something?
  6. Micke

    Seperate Pricing Per Customer v3.5

    Hey all you talented coders! I need the same thing as stryn76! And my wishlist goes on: I'd also like to be able to give certain customer groups additional information on "product_info.php"... Like: "Since you are one of our [whatevercustemergroupname]-customers, click here to [whateveraction]" A custom entry in the "Information box" would also be a big hit! Like: "[Whatevercustomersgroupname] pricelist in Excel-format" or: "[Whatevercustomersgroupname] conditions" I have no idea if it would take 30 seconds or 30 days to figure out the code for these features, but it would be something... //Micke
  7. Micke

    Seperate Pricing Per Customer v3.5

    Hi There all you pro's! Here's another question about "Show Price list v.3.5 for SPPC 4.1.1 version 3.5". I'd like to show the customers gruops name to the user. Is it possible to do something like this? In english.php define('SHOW_YOUR_PRICE', '(customers_group_name) Price : '); define('REGULAR_PRICE', '(customers_group_name) Regular Price : '); What do I (a humble cut-and-paste-guy) have to do to make it work?
  8. Micke

    Seperate Pricing Per Customer v3.5

    Just installed "Show Price list v.3.5 for SPPC 4.1.1 version 3.5". (For SPPC 4.1.1 with "Hide Price if 0$" only) Works great, I just have one stupid question: I want to hide all occurances of $0, not only for wholesale but for guests too, in product_info and the product listing. What am I gonna do? Now I have to hide the products for guest and retail when all I want to do is hide the $0... Any ideas?
  9. Micke

    Seperate Pricing Per Customer v3.5

    Regarding SPPC and Autologon Obviously we have to make the same SPPC changes in the autologon routine as the ones we did in the login.php. Here' the changes I made in "includes/modules/autologon.php", Cut and paste, Shayne. It work like a charm!: <?php /* $Id: autologon.php,v 1.11 2003/01/18 20:00:00 Exp $ Adapted for Separate Pricing per Customer 2006/03/03 11:05:00 by Micke osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Copyright © 2003 HMCservices Released under the GNU General Public License */ $cookie_url_array = parse_url((ENABLE_SSL == true ? HTTPS_SERVER : HTTP_SERVER) . substr(DIR_WS_CATALOG, 0, -1)); $cookie_path = $cookie_url_array['path']; if (($email_address != "") && ($password != "")) { // BOF Separate Pricing per Customer /* $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); */ $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_group_id, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); // EOF Separate Pricing Per Customer if (tep_db_num_rows($check_customer_query)) { $check_customer = tep_db_fetch_array($check_customer_query); if (tep_validate_password($password, $check_customer['customers_password'])) { if (SESSION_RECREATE == 'True') { tep_session_recreate(); } $check_country_query = tep_db_query("select entry_country_id, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $check_customer['customers_id'] . "' and address_book_id = '" . (int)$check_customer['customers_default_address_id'] . "'"); $check_country = tep_db_fetch_array($check_country_query); $customer_id = $check_customer['customers_id']; $customer_default_address_id = $check_customer['customers_default_address_id']; $customer_first_name = $check_customer['customers_firstname']; // BOF Separate Pricing per Customer if ($_GET['skip'] == 'true' && $_POST['email_address'] == SPPC_TOGGLE_LOGIN_PASSWORD && isset($_POST['new_customers_group_id'])) { $sppc_customer_group_id = $_POST['new_customers_group_id'] ; $check_customer_group_tax = tep_db_query("select customers_group_show_tax, customers_group_tax_exempt from " . TABLE_CUSTOMERS_GROUPS . " where customers_group_id = '" .(int)$_POST['new_customers_group_id'] . "'"); } else { $sppc_customer_group_id = $check_customer['customers_group_id']; $check_customer_group_tax = tep_db_query("select customers_group_show_tax, customers_group_tax_exempt from " . TABLE_CUSTOMERS_GROUPS . " where customers_group_id = '" .(int)$check_customer['customers_group_id'] . "'"); } $customer_group_tax = tep_db_fetch_array($check_customer_group_tax); $sppc_customer_group_show_tax = (int)$customer_group_tax['customers_group_show_tax']; $sppc_customer_group_tax_exempt = (int)$customer_group_tax['customers_group_tax_exempt']; // EOF Separate Pricing per Customer $customer_country_id = $check_country['entry_country_id']; $customer_zone_id = $check_country['entry_zone_id']; if(!tep_session_is_registered('customer_id')) tep_session_register('customer_id'); if(!tep_session_is_registered('customer_default_address_id')) tep_session_register('customer_default_address_id'); if(!tep_session_is_registered('customer_first_name')) tep_session_register('customer_first_name'); // BOF Separate Pricing per Customer if(!tep_session_is_registered('sppc_customer_group_id')) tep_session_register('sppc_customer_group_id'); if(!tep_session_is_registered('sppc_customer_group_show_tax')) tep_session_register('sppc_customer_group_show_tax'); if(!tep_session_is_registered('sppc_customer_group_tax_exempt')) tep_session_register('sppc_customer_group_tax_exempt'); // EOF Separate Pricing per Customer if(!tep_session_is_registered('customer_country_id')) tep_session_register('customer_country_id'); if(!tep_session_is_registered('customer_zone_id')) tep_session_register('customer_zone_id'); setcookie('email_address', $email_address, time()+ (365 * 24 * 3600), $cookie_path, '', ((getenv('HTTPS') == 'on') ? 1 : 0)); setcookie('password', $check_customer['customers_password'], time()+ (365 * 24 * 3600), $cookie_path, '', ((getenv('HTTPS') == 'on') ? 1 : 0)); $date_now = date('Y-m-d'); $qr = "update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . $customer_id . "'"; tep_db_query($qr); $cart->restore_contents(); // restore cart contents } } } else { if($autologon_executed != 'true'){ $autologon_page = '<html><head><meta http-equiv="Refresh" content="0;URL=' . tep_href_link(FILENAME_LOGOFF, '', 'SSL') . '"></head><body></body></html>'; $autologon_link = ((getenv('HTTPS') == 'on') ? 'https://' : 'http://') . $SERVER_NAME . $REQUEST_URI . (strpos($REQUEST_URI, "?") ? '&' : '?') . SID; $autologon_executed = 'true'; if(!tep_session_is_registered('autologon_link')) tep_session_register('autologon_link'); if(!tep_session_is_registered('autologon_executed')) tep_session_register('autologon_executed'); tep_session_close(); exit($autologon_page); } } if (tep_session_is_registered('autologon_link')) { $x = $autologon_link; tep_session_unregister('autologon_link'); tep_redirect($x); } ?>
  10. Micke

    Seperate Pricing Per Customer v3.5

    Hi There! I've got exactly the same problem with SPPC and autologon myself. It' been a month since your call for help, have you found a way to make it work? If not, at least you know you're not alone... // Micke
  11. Micke

    SPPC & Bundled Products v1.4

    Hi there! I dont have the answer to your question right now, but I'm thinking of installing "BP 1.4" on my "SPPC+hide" site. I want to know exactly what happens with your bundles... Do you put them in your cart as a guest, and the price stays the same when you're logged in? Or does all groups but retail have wrong prices in there bundles? Can you hide a bundle? Is there a bundle in your cart or are the products from the bundle in your cart? // Micke
  12. Hi there! I'm trying to implement the "Hide price if $0". For some reason it hides all prices... No not only those at 0. I also have the SPPC contrib installed. Is there a conflict here? I'ts my experience that when these things happen, I have often overseen some little detail... Thanks in advance, // Micke
  13. Micke

    Hide price if $0 problem

    Thanks! (Waiting is always the hardest part in development, but it's not that complicated....)
  14. Micke

    Hide price if $0 problem

    I have had a look at it but I'm not sure that I'm ready to make the change to "Quantity price breaks". It's such a lot of work and I'm scared I'll mess things up real bad... Maybe I'lll take the chance and do it if there is no other way to get the "Hide price if $0" feature working. Do you think it's worht the chance?
×