From f515e148f464890f6d8744bd368c5c0340e32ed2 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 15 Jul 2014 20:40:46 +0200 Subject: [PATCH] updated subscriptions --- .../materio_subscriptions.info | 3 +++ .../materio_subscriptions.strongarm.inc | 21 ++++++++++++------- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/materio_subscriptions/materio_subscriptions.info b/materio_subscriptions/materio_subscriptions.info index e40fa392..1e8e2433 100644 --- a/materio_subscriptions/materio_subscriptions.info +++ b/materio_subscriptions/materio_subscriptions.info @@ -15,10 +15,12 @@ dependencies[] = taxonomy dependencies[] = text dependencies[] = uc_attribute dependencies[] = uc_cart_links +dependencies[] = uc_cmcic dependencies[] = uc_coupon dependencies[] = uc_credit dependencies[] = uc_order dependencies[] = uc_payment +dependencies[] = uc_payment_pack dependencies[] = uc_product dependencies[] = uc_store dependencies[] = uc_taxes @@ -78,6 +80,7 @@ features[user_role][] = Adhérent features[user_role][] = Premium features[user_role][] = Utilisateur features[user_role][] = Utilisateur test UC +features[variable][] = date_format_uc_store features[variable][] = uc_add_item_redirect features[variable][] = uc_address_fields features[variable][] = uc_address_fields_required diff --git a/materio_subscriptions/materio_subscriptions.strongarm.inc b/materio_subscriptions/materio_subscriptions.strongarm.inc index cfda9ce4..d6fcad14 100644 --- a/materio_subscriptions/materio_subscriptions.strongarm.inc +++ b/materio_subscriptions/materio_subscriptions.strongarm.inc @@ -10,6 +10,13 @@ function materio_subscriptions_strongarm() { $export = array(); + $strongarm = new stdClass(); + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ + $strongarm->api_version = 1; + $strongarm->name = 'date_format_uc_store'; + $strongarm->value = 'm/d/Y'; + $export['date_format_uc_store'] = $strongarm; + $strongarm = new stdClass(); $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ $strongarm->api_version = 1; @@ -470,13 +477,13 @@ function materio_subscriptions_strongarm() { $strongarm->api_version = 1; $strongarm->name = 'uc_check_address'; $strongarm->value = array( - 'uc_check_mailing_company' => '', - 'uc_check_mailing_street1' => '', + 'uc_check_mailing_company' => 'materiO\'', + 'uc_check_mailing_street1' => '4 rue du faubourg saint antoine', 'uc_check_mailing_street2' => '', - 'uc_check_mailing_city' => '', - 'uc_check_mailing_zone' => '', + 'uc_check_mailing_city' => 'Paris', + 'uc_check_mailing_zone' => 0, 'uc_check_mailing_country' => '124', - 'uc_check_mailing_postal_code' => '', + 'uc_check_mailing_postal_code' => '75012', ); $export['uc_check_address'] = $strongarm; @@ -1128,7 +1135,7 @@ For your convenience, you are already logged in with your newly created account. $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ $strongarm->api_version = 1; $strongarm->name = 'uc_payment_method_credit_checkout'; - $strongarm->value = 1; + $strongarm->value = 0; $export['uc_payment_method_credit_checkout'] = $strongarm; $strongarm = new stdClass(); @@ -1142,7 +1149,7 @@ For your convenience, you are already logged in with your newly created account. $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ $strongarm->api_version = 1; $strongarm->name = 'uc_payment_method_free_order_checkout'; - $strongarm->value = 1; + $strongarm->value = 0; $export['uc_payment_method_free_order_checkout'] = $strongarm; $strongarm = new stdClass();