Jump to content

vipshop.pl

Members
  • Content count

    6
  • Joined

  • Last visited

About vipshop.pl

  • Birthday 03/04/1980

Profile Information

  1. vipshop.pl

    auctionTastic

    FWR its any chance to hide auction starting price after first bidding? 2,23 - to X,XX
  2. vipshop.pl

    auctionTastic

    ok fine. any user can give me help . I can pay.
  3. vipshop.pl

    auctionTastic

    i need help with: 1. Warning: Missing argument 3 for currencies::display_price(), called in /home/public_html/includes/modules/auctions/auctions_show.php on line 65 and defined in /home/public_html/includes/classes/currencies.php on line 86 Warning: Missing argument 3 for currencies::display_price(), called in /home/public_html/includes/modules/auctions/auctions_show.php on line 66 and defined in /home/public_html/includes/classes/currencies.php on line 86 2. Warning: Missing argument 3 for currencies::display_price(), called in /home/public_html/includes/modules/auctions/classes/oscAuctions.php on line 354 and defined in /home/public_html/includes/classes/currencies.php on line 86 3. Fatal error: Call to undefined method currencies::calculate_price() in /home/public_html/includes/modules/auctions/auction_bids.php on line 25 -------------------------------------------------------------------------------------- i have polish prices in PLN - my currencies from line 85 to 147 //TotalB2B start function display_price($products_id, $products_price, $products_tax, $quantity = 1) { global $customer_id; $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; } 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; } $query = tep_db_query("select p.products_discount, c.customers_discount_sign from " . TABLE_PRODUCTS . " p, " . TABLE_CUSTOMERS . " c where p.products_id = '" . $products_id . "' and c.customers_id = '" . $customer_id . "'"); if ($query_result = tep_db_fetch_array($query)) { $customer_discount_sign = abs($query_result['customers_discount_sign']) / 100; $products_discount = abs($query_result['customers_discount']) / 100; $discount = $customer_discount_sign * $products_discount; } if ($customer_discount >= 0) { $products_price = $products_price + $products_price * abs($customer_discount) / 100 * $discount; } else { $products_price = $products_price - $products_price * abs($customer_discount) / 100 * $discount; } return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } else { return PRICES_LOGGED_IN_TEXT; } } function display_price_nodiscount($products_price, $products_tax, $quantity = 1) { global $customer_id; $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'))) || ((tep_session_is_registered('customer_id')))) { return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } else { return PRICES_LOGGED_IN_TEXT; } } ----------------------------------- i also have missing bid button. Please any support.
×