Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

hozone

Pioneers
  • Posts

    182
  • Joined

  • Last visited

Everything posted by hozone

  1. This contribution allows you to show a box with news readed from a rss file. You can show news from yahoo news or whatelse. A complete view page for all news is given. Also a modules box is given. download @ http://www.oscommerce.com/community/contributions,2787.
  2. @Young Tae Byun this contrib is discontinued, please use TotalB2B about your error: be sure to have load the sql code in your database.,
  3. u have to add as the first argument of the call to diplay_price the product_id of the product you want to display
  4. @ estrellashopping i don't know oscaffiate :( so i can't help u @ wonderboy try this function for classes/currencies.php i hope it's then things u need: //TotalB2B start function display_price($products_id, $products_price, $products_tax, $quantity = 1) { global $customer_id; $products_price_ori = $products_price; $query_price_to_guest = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'ALLOW_GUEST_TO_SEE_PRICES'"); $query_price_to_guest_result = tep_db_fetch_array($query_price_to_guest); if (($query_price_to_guest_result['configuration_value']=='true') && !(tep_session_is_registered('customer_id'))) { $query_guest_discount = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " WHERE configuration_key = 'GUEST_DISCOUNT'"); $query_guest_discount_result = tep_db_fetch_array($query_guest_discount); $customer_discount = $query_guest_discount_result['configuration_value']; if ($customer_discount >= 0) { $products_price = $products_price + $products_price * abs($customer_discount) / 100; } else { $products_price = $products_price - $products_price * abs($customer_discount) / 100; } if ((abs($customer_discount) != 0) && (tep_get_products_special_price($products_id) == "")) { return "<s>" . $this->format(tep_add_tax($products_price_ori, $products_tax) * $quantity) . "</s> " . $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } else { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } } elseif (tep_session_is_registered('customer_id')) { $query_A = tep_db_query("select m.manudiscount_discount from " . TABLE_MANUDISCOUNT . " m, " . TABLE_PRODUCTS . " p where m.manudiscount_groups_id = 0 and m.manudiscount_customers_id = '" . $customer_id . "' and p.products_id = '" . $products_id . "' and p.manufacturers_id = m.manudiscount_manufacturers_id"); $query_B = tep_db_query("select m.manudiscount_discount from " . TABLE_CUSTOMERS . " c, " . TABLE_MANUDISCOUNT . " m, " . TABLE_PRODUCTS . " p where m.manudiscount_groups_id = c.customers_groups_id and m.manudiscount_customers_id = 0 and c.customers_id = '" . $customer_id . "' and p.products_id = '" . $products_id . "' and p.manufacturers_id = m.manudiscount_manufacturers_id"); $query_C = tep_db_query("select m.manudiscount_discount from " . TABLE_MANUDISCOUNT . " m, " . TABLE_PRODUCTS . " p where m.manudiscount_groups_id = 0 and m.manudiscount_customers_id = 0 and p.products_id = '" . $products_id . "' and p.manufacturers_id = m.manudiscount_manufacturers_id"); if ($query_result = tep_db_fetch_array($query_A)) { $customer_discount = $query_result['manudiscount_discount']; } else if ($query_result = tep_db_fetch_array($query_B)) { $customer_discount = $query_result['manudiscount_discount']; } else if ($query_result = tep_db_fetch_array($query_C)) { $customer_discount = $query_result['manudiscount_discount']; } else { $query = tep_db_query("select g.customers_groups_discount from " . TABLE_CUSTOMERS_GROUPS . " g inner join " . TABLE_CUSTOMERS . " c on g.customers_groups_id = c.customers_groups_id and c.customers_id = '" . $customer_id . "'"); $query_result = tep_db_fetch_array($query); $customers_groups_discount = $query_result['customers_groups_discount']; $query = tep_db_query("select customers_discount from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'"); $query_result = tep_db_fetch_array($query); $customer_discount = $query_result['customers_discount']; $customer_discount = $customer_discount + $customers_groups_discount; } if ($customer_discount >= 0) { $products_price = $products_price + $products_price * abs($customer_discount) / 100; } else { $products_price = $products_price - $products_price * abs($customer_discount) / 100; } if ((abs($customer_discount) != 0) && (tep_get_products_special_price($products_id) == "")) { return "<s>" . $this->format(tep_add_tax($products_price_ori, $products_tax) * $quantity) . "</s> " . $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } else { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } } else { return PRICES_LOGGED_IN_TEXT; } }
  5. 1) is right 2) me, but i made a mistake and delete the easypopulate modificated contrib :) so the only things i can tell u, is that in 5 hours i suppose, u can do the modificate dontrib ;)
  6. i'm not develop this contrib anymore. now i develop totalb2b
  7. you have to controll that evey call to disaply_price has as firt argument the ID of the product. (have to had the ID of the prod. to all call of this funct)
  8. i don't have it anymore ;) i've to rewrite it.. but now i cant't cause i'm doing othr works... it is better if u do it byyourself
  9. i olny can tell u.... taht is possible to integrate easypopulate with xppp or total b2b. i made an intregration but unfortunatly i lost it :(
  10. 4 dropdeadred: contrib should work well. are u sure u have installed contrib in the correct way? and made the correct edits
  11. as i sayd before. this contrib is not updated anymore. use TotalB2B
  12. i suppose we chould write a code to block a group of your to buy, if they are in the gruop callad "not buy users" or something like this. but the only way to do this is editing the code, and now.. i don't have time to do it
  13. this contrib is discontinued, please use TotalB2B
  14. you dont edit all the files :) you have to add the tep_xppp_getproductprice()... lock at the source file to found where.
  15. i think u have not apply this contrib well ;) controll every call to function display_price ,there will be 3 arguments, the first one must be the products ID
  16. version 1.2a is OUT Changelog . Product prices of the products that have special prices set, can be hidden: "Configuration / My Store/ Special price (products price hiding)". . Administrator must activate customers after registrations.
  17. both diff patch and ms2 patched files, works with a clean version of osc 2.2 otherwise if you have a version of osc 2.2 ms2 with yet some contribution, you have to look by hand all files in ms2 pathed files, and change all the files with an editor (only where files are chancged). do'nt overwrite existing files
  18. look at modified languages files, all language addings are betweew //AdminRewiew start ........define(,......) //AdminRevies stop
  19. /homepages/21/d69142426/htdocs/site/catalog/includes/classes/currencies.php on line 131 not it is currencies.php (maybe :)) if you want to know only the canges made by this contib, use diff script to generate differeces between clean oscommerce and a totalb2b patched oscommerce
  20. i suppose it is not a totalb2b problem. maybe you have this problem even with a clean 2.2 ms2 ?
  21. you have to select right username and password for your database!
  22. what do you mean when you said "parse time"?
  23. next version will have thi s fix. tks
  24. in totalB2B order confirmation mail are sent with discounted prices. also admin/orders's prices are with discount applied
×
×
  • Create New...