Jump to content

juanstg

Members
  • Content count

    7
  • Joined

  • Last visited

  1. juanstg

    [contribution] GroupDiscount

    michimaus, hozone had this to say early on in this topic. It will allow your guests to see pricing for products use this function in includes/classes/currencies.php //CGDiscountSpecials start function display_price($products_price, $products_tax, $quantity = 1) { global $customer_id; $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; } return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } function display_price_nodiscount($products_price, $products_tax, $quantity = 1) { global $customer_id; return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); } //CGDiscountSpecials end
  2. juanstg

    [contribution] GroupDiscount

    michimaus, Thats easy to implement. Search for more on this contribution, there is a section that allows your guest to view regular pricing. Change this and then change the default discount rate to what your new customers would get. I will try to find the section mentioned and include it in my next reply! Jason W. Owner ComputerBeginnings.com
  3. juanstg

    [contribution] GroupDiscount

    Never Mind...I forgot to insert thedefine database line in the database_table.php file. Thanks anyway! Jason
  4. juanstg

    [contribution] GroupDiscount

    I installed the CGDiscount and at some points it displays a message: 1146 - Table 'computer_osc1.TABLE_CUSTOMERS_GROUPS' doesn't exist select g.customers_groups_discount from TABLE_CUSTOMERS_GROUPS g inner join customers c on g.customers_groups_id = c.customers_groups_id and c.customers_id = '' i inserted the table as instructed in the SQL file and everthing in the admin panel works fine. When the browser tries to display prices it put out this error. Can anyone help?
  5. juanstg

    Installing A Contribution

    Thanks, I'll try that! Sounds much easier than looking through the files themselves. Juan
  6. I just downloaded the Customer Group Discount Contribution and was wondering if there was an easy to install it instead of editing all the files manually. This is not a clean install and the directory is called /shop instead of /catalog. Any one know? Juan
×