XF 2.2 Promotion Downgrade

htsumer

Active member
I'm getting promoted to Group B. Later, this group B buys group C as a paid group.
It lives the special code permissions of group B.
Sample

post_macros​

Code:
<!----3000 karakter başı--->
        
        <article class="message-body js-selectToQuote">
    <xf:ad position="post_above_content" arg-post="{$post}" />
    <xf:if is="{{$xf.visitor.isMemberOf([1, 27])}}">
        <xf:set var="$snippetPost" value="{{ snippet($post.message, 150) }}" />
        {{ bb_code($snippetPost, 'post', $post) }}
        <xf:if is="$snippetPost != $post.message">
            <div class="blockMessage blockMessage--important blockMessage--iconic">
                &#304;&ccedil;eri&#287;in tamam&#305;n&#305; g&ouml;r&uuml;nt&uuml;lemek i&ccedil;in <a href="https://www.maasmutemeti.com/forum/sayfa/altin_uyelik_premium/">&Ouml;zel &Uuml;ye</a> olman&#305;z gerekmektedir.
            
            </div>
        </xf:if>
        <xf:else/>
        {{ bb_code($post.message, 'post', $post) }}
    </xf:if>
    <div class="js-selectToQuoteEnd">&nbsp;</div>
    <xf:ad position="post_below_content" arg-post="{$post}" />
</article>
            
<!----3000 karakter sonu--->

Since this goes to group C, the membership of group B is stuck.

1655071922819.png

My question is how can I drop it from Group B. If it's a C that he bought, it's like leaving group B.
 

htsumer

Active member
There must be some logic.
/admin.php?user-upgrades/

Regardless of which group to buy here, the secondary groups should be deducted.

While in Group A, it buys Group B, but still has some restrictions as Group A is active.

Note:
group A in the picture will be B
Group B will be C. I typed wrong

1655072666062.png
 
Last edited:

htsumer

Active member
Edit the promotion for group B to only apply if not in group C.
Where will I do it? There is no such criterion in the promotion (/admin.php?user-group-promotions/) section


It would be great if there was an option in Purchased Subscriptions to have other groups free upon purchase.
Test

1655197211045.png

Let me explain again.
Promoted from Group B to Group C.
Group C bought Group D.
Member has 2 groups C+D
Now when he buys group D, he must leave group C.
 
Last edited:
Top