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

[eluser]koichirose[/eluser]
Hi haseydesign,

Here's the dump for those discounts:
Code:
insert  into `mkt_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 (1,2,7,1,0,0,0,0,0,'TEST','iiii',NULL,NULL,NULL,10.00,NULL,NULL,NULL,NULL,'0','0','0',65531,'2012-11-15 12:49:40','2012-11-15 18:55:29','2012-11-14 12:49:40','2012-11-26 12:49:40',1,100),(3,2,7,1,0,0,0,0,0,'TEST','ddd',NULL,NULL,NULL,40.00,NULL,NULL,NULL,NULL,'0','0','0',65535,'2012-11-15 12:49:40','2012-11-15 18:55:29','2012-11-14 12:49:40','2012-11-26 12:49:40',1,100);

I changed the names of some columns so I don't think you'll be able to import as is.

Entering TEST as a coupon code applies a 10% discount (discount id 1), but var_dump($this->flexi_cart->discount_codes()); shows this:
Code:
array
  'TEST' =>
    array
      'id' => string '3' (length=1)
      'code' => string 'TEST' (length=4)
      'description' => string 'ddd' (length=3)

Thank you


Messages In This Thread
flexi cart - A comprehensive shopping cart library for CodeIgniter - by El Forum - 11-22-2012, 03:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB