Jump to content


  • Content count

  • Joined

  • Last visited

  1. yicon

    Order Controller v1.0

    Great contribution, that worked without any adjustments, I only found one problem that I cant solve. When batch printing invoices the first one looks great, with full width on the page, the second page hasn´t the same width as the first and so on, so once printing five or more pages the last ones are quite small and narrow. Anyone who has a solution to the problem?
  2. I kept looking around and Sam had a solution that worked in an earlier thread, as he wrote there, in /include/modules/product_listing.php Find (293) while ($products = tep_db_fetch_array($listing_query)) { Replace with: $no_of_listings = tep_db_num_rows($listing_query); 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'; } while ($_listing = tep_db_fetch_array($listing_query)) { $listing[] = $_listing; $list_of_prdct_ids[] = $_listing['products_id']; } if ($customer_group_id != '0') { $pg_query = tep_db_query("select pg.products_id, customers_group_price as price from " . TABLE_PRODUCTS_GROUPS . " pg where products_id in (" . implode(',', $list_of_prdct_ids) . ") and pg.customers_group_id = '" . $customer_group_id . "'"); while ($pg_array = tep_db_fetch_array($pg_query)) { $new_prices[] = array ('products_id' => $pg_array['products_id'], 'products_price' => $pg_array['price'], 'specials_new_products_price' => '', 'final_price' => $pg_array['price']); } for ($x = 0; $x < $no_of_listings; $x++) { if(!empty($new_prices)) { for ($i = 0; $i < count($new_prices); $i++) { if( $listing[$x]['products_id'] == $new_prices[$i]['products_id'] ) { $listing[$x]['products_price'] = $new_prices[$i]['products_price']; $listing[$x]['final_price'] = $new_prices[$i]['final_price']; } } } // end if(!empty($new_prices) $listing[$x]['specials_new_products_price'] = ''; // makes sure that a retail specials price doesn't carry over to another customer group $listing[$x]['final_price'] = $listing[$x]['products_price']; // final price should not be the retail special price } } $specials_query = tep_db_query("select products_id, specials_new_products_price from " . TABLE_SPECIALS . " where products_id in (" . implode(',', $list_of_prdct_ids) . ") and status = '1' and customers_group_id = '" . $customer_group_id . "'"); while ($specials_array = tep_db_fetch_array($specials_query)) { $new_s_prices[] = array ('products_id' => $specials_array['products_id'], 'products_price' => '', 'specials_new_products_price' => $specials_array['specials_new_products_price'] , 'final_price' => $specials_array['specials_new_products_price']); } // add the correct specials_new_products_price and replace final_price for ($x = 0; $x < $no_of_listings; $x++) { if(!empty($new_s_prices)) { for ($i = 0; $i < count($new_s_prices); $i++) { if( $listing[$x]['products_id'] == $new_s_prices[$i]['products_id'] ) { $listing[$x]['specials_new_products_price'] = $new_s_prices[$i]['specials_new_products_price']; $listing[$x]['final_price'] = $new_s_prices[$i]['final_price']; } } } // end if(!empty($new_s_prices) } // end for ($x = 0; $x < $no_of_listings; $x++) reset($listing); while (list($key, $products) = each($listing)) { Give it a try...
  3. Have the same problem as you so if you found a solution for it please post it here, will follow your thread.
  4. I tried to download the files from the contrib section but i cant unzip the files. It say "cant find file" when I unzip them and inside some of the files are not possible to open. Is there another place where you can download it? I tried version 1.8 to 1.3 all has the same problem.
  5. yicon

    [Contribution] STS v4

    Hey guys, I am not sure if there are a solution for it, but we seams quite a few having the same problem. The Ajax shopping cart doesn't work correctly with STS. Some asked questions here (ajax shopping cart) but no one had a solution. I try a post here and see if any of you guys got it to work with STS? In such case what kind of adjustments are needed? Cheers Hakan
  6. yicon

    "Dynamenu" for osCommerce

    I kept looking and found the solution, if someone has the same problem, it had to do with a value in the CSS, .vertsubmenu, I probably changed it... anyhow it should be: .vertsubmenu { /* Behaviour of sub-menu - leave as is for proper operation of submenus */ position: absolute; left: 0; top: 0; visibility: hidden; } Well atleast its working now, cheers for a great contrib.
  7. yicon

    "Dynamenu" for osCommerce

    Hope you can help me, I have for some time now looked around here without finding a solution for my problem with Dynamenu. I got most of it working, using vertical flyout, but there is still one thing. When I load the page I will get the sub menu to pop up in upper left corner of the page. If I move the mouse to the popup it will move to the right but still in the top, however if i point at my menu the popup will disappear. I am confused and hope you can help me with a solution. I am using it together with STS