Migrated from Redmine #350 | Author: Ebrahim Hasan
Status: New | Priority: Normal | Created: 2019-03-05
getPromotionList returns:
array(2) { [0]=> object(stdClass)#5 (38) { [“id”]=> string(1) “1” [“name”]=> string(13) “FBNOJDAKUNDER” [“description”]=> string(0) “” [“file_id”]=> NULL [“is_visible”]=> string(1) “1” [“is_active”]=> string(1) “1” [“position”]=> string(1) “1” [“promotion_type”]=> string(8) “discount” [“discount_type”]=> string(10) “percentage” [“discount”]=> string(7) “50.0000” [“price”]=> string(6) “0.0000” [“plugin_invoice_tax_id”]=> NULL [“duration”]=> string(1) “1” [“duration_type”]=> string(5) “month” [“allow_usage_count”]=> string(1) “0” [“client_type”]=> string(3) “all” [“affect_events”]=> string(1) “1” [“affect_products”]=> string(1) “0” [“affect_paid_attributes”]=> string(1) “0” [“affect_memberships”]=> string(1) “0” [“plugin_promotion_print_template_id”]=> string(1) “1” [“code”]=> string(17) “FBNOJDAKUNDER1437” [“start_date”]=> NULL [“expired_date”]=> NULL [“was_used_by_clients”]=> string(1) “0” [“was_purchased_by_clients”]=> string(1) “0” [“picture”]=> NULL [“picture_sub_path”]=> NULL [“has_conflict_with_old_code”]=> bool(false) [“picture_path”]=> NULL [“picture_preview”]=> NULL [“picture_large”]=> NULL [“has_messages”]=> bool(false) [“sheduler_restrictions”]=> array(0) { } [“services”]=> array(0) { } [“memberships”]=> array(0) { } [“products”]=> array(0) { } [“paid_attributes”]=> array(0) { } } [1]=> object(stdClass)#6 (38) { [“id”]=> string(1) “2” [“name”]=> string(12) “Halva priset” [“description”]=> string(0) “” [“file_id”]=> NULL [“is_visible”]=> string(1) “1” [“is_active”]=> string(1) “1” [“position”]=> string(1) “2” [“promotion_type”]=> string(8) “discount” [“discount_type”]=> string(10) “percentage” [“discount”]=> string(7) “50.0000” [“price”]=> string(6) “0.0000” [“plugin_invoice_tax_id”]=> NULL [“duration”]=> string(1) “1” [“duration_type”]=> string(5) “month” [“allow_usage_count”]=> string(1) “0” [“client_type”]=> string(3) “all” [“affect_events”]=> string(1) “1” [“affect_products”]=> string(1) “0” [“affect_paid_attributes”]=> string(1) “0” [“affect_memberships”]=> string(1) “0” [“plugin_promotion_print_template_id”]=> string(1) “1” [“code”]=> string(11) “HALVAPRISET” [“start_date”]=> NULL [“expired_date”]=> NULL [“was_used_by_clients”]=> string(1) “0” [“was_purchased_by_clients”]=> string(1) “0” [“picture”]=> NULL [“picture_sub_path”]=> NULL [“has_conflict_with_old_code”]=> bool(false) [“picture_path”]=> NULL [“picture_preview”]=> NULL [“picture_large”]=> NULL [“has_messages”]=> bool(false) [“sheduler_restrictions”]=> array(0) { } [“services”]=> array(0) { } [“memberships”]=> array(0) { } [“products”]=> array(0) { } [“paid_attributes”]=> array(0) { } } }
running getPromocodeInfo(“HALVAPRISET”) returns NULL
I also tried validatePromoCode but it returns an error saying that the code doesn’t exist