diff --git a/Block/Adminhtml/Recurrence/Subscriptions/Subscription.php b/Block/Adminhtml/Recurrence/Subscriptions/Subscription.php index 66182a80..c9430616 100644 --- a/Block/Adminhtml/Recurrence/Subscriptions/Subscription.php +++ b/Block/Adminhtml/Recurrence/Subscriptions/Subscription.php @@ -123,6 +123,7 @@ public function getCicleSelectOption() return [ 'interval_count' => range(1, 12), 'interval_type' => [ + IntervalValueObject::INTERVAL_TYPE_DAY => __('day'), IntervalValueObject::INTERVAL_TYPE_WEEK => __('week'), IntervalValueObject::INTERVAL_TYPE_MONTH => __('month'), IntervalValueObject::INTERVAL_TYPE_YEAR => __('year') diff --git a/Helper/ProductSubscriptionHelper.php b/Helper/ProductSubscriptionHelper.php index 9495a2dd..86006dad 100644 --- a/Helper/ProductSubscriptionHelper.php +++ b/Helper/ProductSubscriptionHelper.php @@ -53,6 +53,9 @@ public function deleteRecurrenceCustomOption(ProductSubscription $productSubscri $customOptions = []; $options = $product->getOptions(); + if (empty($options)) { + return; + } foreach ($options as $option) { if ($option->getSku() == "recurrence") { continue;