Closed cliveportman closed 5 years ago
Also having this issue when calling: {% for plan in subscription.alternativePlans %}
Plans were deleted in the CP but still display in the template.
Looks like a bug. Will look into it now.
In your database, so you see your plans in the commerce_plans
table with isArchived
set to true?
Yeah, the deleted items have isArchived
set to true and a dateArchived
has been assigned.
Not able to reproduce, could you send your DB to support@craftcms.com thanks.
I've sent that across.
Was this resolved in the end or could you not replicate it?
Just pushed a fix https://github.com/craftcms/commerce/commit/19b4f63dd220a7ef95f583c998d0db8b2f553073 will be in the next release in next couple hours.
Oh great. Cheers Luke!
Description
{% set plans = craft.commerce.getPlans().getAllEnabledPlans() %} {% set plans = craft.commerce.getPlans().getAllPlans() %}
Both return plans that I've deleted and are no longer anywhere to be seen in the backend. Currently having to do this to hide them: {% for plan in plans %} {% if plan.id != 4 and plan.id != 1 and plan.id != 3 %}
Steps to reproduce
Additional info