Skip to content

Commit

Permalink
improve: add day cycle in recurring product
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiano-mallmann committed Aug 14, 2023
1 parent b7d8ed0 commit ab8fe91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Block/Adminhtml/Recurrence/Subscriptions/Subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
3 changes: 3 additions & 0 deletions Helper/ProductSubscriptionHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ab8fe91

Please sign in to comment.