[Skip to main content](#vessel-content)

#   Subscription custom status field value

##

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

8 years 4 months ago [\#294437](#294437) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  *[Subscription custom status field value](/forum/58-hikasubscription/895080-subscription-custom-status-field-value#294437 "-- HikaShop version -- : 3.4.0 -- HikaSerial version -- : 2.1.1 -- Joomla version -- : 3.8.8 -- PHP version -- : 5.6.36  We are creating subscriptions automatically when a product is purchased. However, the subscription requires an external activity for the actual start date to be set. (NOTE: I have a plugin that nulls the start and end date at present as soon as the subscription is created - onAfterSubscriptionCreate.)  I would like to set the subscription status to maybe 'pending'. Would that break anything in HikaSubscriptions? I don't need HikaSubscriptions to understand that status or manage it. Once the event (coming from an external system) is set, I will update the subscription status to active. I just don't want to create anything that will result in odd or unpredictable behavior in HikaSubscriptions or be counting on the 'pending' value only to have HikaSubscriptions somehow come along and change it to any other 'valid' value (active, closed, deleted, expired).  If it is a problem I will probably set some custom field or my own database table field (my custom table).  Thanks Paul")* was created by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")*

-- HikaShop version -- : 3.4.0
-- HikaSerial version -- : 2.1.1
-- Joomla version -- : 3.8.8
-- PHP version -- : 5.6.36

We are creating subscriptions automatically when a product is purchased. However, the subscription requires an external activity for the actual start date to be set. (NOTE: I have a plugin that nulls the start and end date at present as soon as the subscription is created - onAfterSubscriptionCreate.)

I would like to set the subscription status to maybe 'pending'. Would that break anything in HikaSubscriptions? I don't need HikaSubscriptions to understand that status or manage it. Once the event (coming from an external system) is set, I will update the subscription status to active. I just don't want to create anything that will result in odd or unpredictable behavior in HikaSubscriptions or be counting on the 'pending' value only to have HikaSubscriptions somehow come along and change it to any other 'valid' value (active, closed, deleted, expired).

If it is a problem I will probably set some custom field or my own database table field (my custom table).

Thanks
Paul

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vODk1MDgwLXN1YnNjcmlwdGlvbi1jdXN0b20tc3RhdHVzLWZpZWxkLXZhbHVlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

8 years 4 months ago [\#294441](#294441) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Subscription custom status field value](/forum/58-hikasubscription/895080-subscription-custom-status-field-value#294441 "-- HikaShop version -- : 3.4.0 -- HikaSerial version -- : 2.1.1 -- Joomla version -- : 3.8.8 -- PHP version -- : 5.6.36  We are creating subscriptions automatically when a product is purchased. However, the subscription requires an external activity for the actual start date to be set. (NOTE: I have a plugin that nulls the start and end date at present as soon as the subscription is created - onAfterSubscriptionCreate.)  I would like to set the subscription status to maybe 'pending'. Would that break anything in HikaSubscriptions? I don't need HikaSubscriptions to understand that status or manage it. Once the event (coming from an external system) is set, I will update the subscription status to active. I just don't want to create anything that will result in odd or unpredictable behavior in HikaSubscriptions or be counting on the 'pending' value only to have HikaSubscriptions somehow come along and change it to any other 'valid' value (active, closed, deleted, expired).  If it is a problem I will probably set some custom field or my own database table field (my custom table).  Thanks Paul")*

Hello,

If I understand you right ; you want that new subscriptions which are not yet paid/active, have a "pending" status instead of the "closed" one ?
And you will use that status just in such case ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vODk1MDgwLXN1YnNjcmlwdGlvbi1jdXN0b20tc3RhdHVzLWZpZWxkLXZhbHVlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[3by400](/forum/user/6842-3by400 "View 3by400's Profile")**
- [![3by400's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6842.jpg)](/forum/user/6842-3by400 "View 3by400's Profile") Topic Author
- [ Offline](/forum/user/6842-3by400)

Less More

- Posts: 211
- Thank you received: 14
-
-
- [](https://3by400.com)
-

8 years 4 months ago [\#294460](#294460) by [3by400](/forum/user/6842-3by400 "View 3by400's Profile")  Replied by *[3by400](/forum/user/6842-3by400 "View 3by400's Profile")* on topic *[Subscription custom status field value](/forum/58-hikasubscription/895080-subscription-custom-status-field-value#294460 "-- HikaShop version -- : 3.4.0 -- HikaSerial version -- : 2.1.1 -- Joomla version -- : 3.8.8 -- PHP version -- : 5.6.36  We are creating subscriptions automatically when a product is purchased. However, the subscription requires an external activity for the actual start date to be set. (NOTE: I have a plugin that nulls the start and end date at present as soon as the subscription is created - onAfterSubscriptionCreate.)  I would like to set the subscription status to maybe 'pending'. Would that break anything in HikaSubscriptions? I don't need HikaSubscriptions to understand that status or manage it. Once the event (coming from an external system) is set, I will update the subscription status to active. I just don't want to create anything that will result in odd or unpredictable behavior in HikaSubscriptions or be counting on the 'pending' value only to have HikaSubscriptions somehow come along and change it to any other 'valid' value (active, closed, deleted, expired).  If it is a problem I will probably set some custom field or my own database table field (my custom table).  Thanks Paul")*

Actually the initial status will not be tied to paid or not paid. In this case the subscription is bundled with the price of a hardware product. But the subscription should not become active until the hardware item is installed and activated. At that point data from an external system will be reported and a custom plugin will use that data to update the pending subscription by setting the start and end dates and in theory the status.

If I use my custom plugin (which not clears the initial subscription's start and end date) I can set the status to anything. I wanted to make sure that setting a status that was NOT one of the four supported natively would not cause issues with the core software.

If there is any question about such a 'custom' status interfering, then I will set my own 'status' elsewhere. It would be more convenient though in the #__hikaserial_subscription.subscription_status field. I don't need HikaSerial / HikaSubscription to DO anything with a custom status. I just don't want the custom status to 'break' anything in the core code.

---

3by400, Inc.
[ 3by400.com](https://3by400.com)
Websites that Work, Marketing that Matters

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vODk1MDgwLXN1YnNjcmlwdGlvbi1jdXN0b20tc3RhdHVzLWZpZWxkLXZhbHVlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

8 years 4 months ago [\#294467](#294467) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Subscription custom status field value](/forum/58-hikasubscription/895080-subscription-custom-status-field-value#294467 "-- HikaShop version -- : 3.4.0 -- HikaSerial version -- : 2.1.1 -- Joomla version -- : 3.8.8 -- PHP version -- : 5.6.36  We are creating subscriptions automatically when a product is purchased. However, the subscription requires an external activity for the actual start date to be set. (NOTE: I have a plugin that nulls the start and end date at present as soon as the subscription is created - onAfterSubscriptionCreate.)  I would like to set the subscription status to maybe 'pending'. Would that break anything in HikaSubscriptions? I don't need HikaSubscriptions to understand that status or manage it. Once the event (coming from an external system) is set, I will update the subscription status to active. I just don't want to create anything that will result in odd or unpredictable behavior in HikaSubscriptions or be counting on the 'pending' value only to have HikaSubscriptions somehow come along and change it to any other 'valid' value (active, closed, deleted, expired).  If it is a problem I will probably set some custom field or my own database table field (my custom table).  Thanks Paul")*

Hello,

The only section I can think of is the functions to get Renewals or Upgrades ; but if you do not put a "end date", it won't generate unwanted side effects.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzU4LWhpa2FzdWJzY3JpcHRpb24vODk1MDgwLXN1YnNjcmlwdGlvbi1jdXN0b20tc3RhdHVzLWZpZWxkLXZhbHVlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.076 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
