Welcome Guest, Not a member yet? Register   Sign In
flexi cart - A comprehensive shopping cart library for CodeIgniter
#94

[eluser]koichirose[/eluser]
Hi haseydesign,

First of all happy new year!

I'm back with a new issue Smile

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`)
VALUES
(3, 2, 7, 1, NULL, NULL, 0, 0, 0, 'TESTUSER', NULL, 0, 0, 0.00, 10.00, NULL, NULL, NULL, NULL, '1', '0', '0', 16777215, '2013-01-08 14:44:21', '2013-01-08 14:44:21', '2013-01-08 14:43:57', '2013-01-15 14:43:57', 1, 100);

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 Smile

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!


Messages In This Thread
flexi cart - A comprehensive shopping cart library for CodeIgniter - by El Forum - 01-08-2013, 07:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB