flexi cart - A comprehensive shopping cart library for CodeIgniter |
[eluser]koichirose[/eluser]
Hi haseydesign, First of all happy new year! I'm back with a new issue ![]() I'm trying to use custom statuses for discounts. I set '1' as custom_status_1 in my discount table: Code: INSERT INTO `discount` (`discount_id`, `discount_type_id_fk`, `discount_method_id_fk`, `discount_tax_method_id_fk`, `user_id_fk`, `TEMP_product_version_id_fk`, `discount_group_id_fk`, `country_id_fk`, `zone_id_fk`, `discount_code`, `description`, `quantity_required`, `quantity_discounted`, `value_required`, `value_discounted`, `is_recursive`, `is_non_combinable_discount`, `void_reward_points`, `force_ship_discount`, `custom_status_1`, `custom_status_2`, `custom_status_3`, `usage_limit`, `insert_time`, `update_time`, `start_date`, `end_date`, `status`, `order_by`) Trying to apply the 'TESTUSER' discount, it is correctly not applied, since the custom status does not match, but the status message says 'Discount code has been set'. Using 'set_custom_status_1(1)' correctly applies the discount. This is a minor bug anyway ![]() I also noticed that discount messages are all set in english, even if the set language is another one. I tried emptying my cart, for example, and the returned status messages are in Italian (correct). It seems all discount functions have this issue. I also wanted to share the Russian language file with you. I told you I would have done it but then completely forgot. Here it is: http://pastie.org/5648272 Thank you! |
Welcome Guest, Not a member yet? Register Sign In |