Jump to content

pakoste

Members
  • Content count

    7
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Florin
  1. easy populate: Easypopulate v2.71-MS2 (with attributes)
  2. pakoste

    [CONTRIB] Debug array for osc

    great tool, need it like air :) any enhancements since january?
  3. pakoste

    Advanced Guestbook for Osc

    quick hack: look in comment.class.php at line 176 replace header("Location: $GB_PG[gbook]"); with ?> <meta http-equiv="refresh" content="0;URL=<?php echo $GB_PG[gbook] ?>"> <?php that should do it. but what bothers me is if a customer is loged in, if he adds a comment, he will be automatically logged out... hmm
  4. pakoste

    [contribution] GroupDiscount

    The problem I had: Let's say we have a product that costs 10 euro. Using this contrib, I could make discounts (-50%), i.e. 5 euro . But I coundn't make the price be 15 euro. (+50%) . assuming $customers_groups_discount= "+50" and $customer_discount ="+0" in db; after the following line (in catalog/includes/classes/shopping_cart.php) $customer_discount = $customer_discount + $customers_groups_discount; $customer_discount would be "50", without the "+" sign , so this condition if (strstr($customer_discount, "+") != null) { will always be false, thus no addition to the initial price. After those little fixes posted above, everything works just fine :)
  5. pakoste

    [contribution] GroupDiscount

    ...also in catalog/includes/classes/shoping_cart.php find and replace if (strstr($customer_discount, "+") != null) { $products_price = $products_price + $products_price * abs($customer_discount) / 100; } else { $products_price = $products_price - $products_price * abs($customer_discount) / 100; } with if (strstr($customer_discount, "-") != null) { $products_price = $products_price - $products_price * abs($customer_discount) / 100; } else { $products_price = $products_price + $products_price * abs($customer_discount) / 100; } you should have 3 occurrences.
  6. pakoste

    [contribution] GroupDiscount

    just a little quick fix: catalog/includes/classes/currencies.php on line 82 you should replace if (strstr($customer_groups_discount, "+") != null) { with this line: if (strstr($customers_groups_discount, "+") != null) { notice $customers_groups_discount Now you can have positives or negatives discounts. thanks hozone for this great contribution.
×