Jump to content

Passive Product Buttons


system53

Recommended Posts

Hello,

I developed a module.
We can renew or extend active or suspended services in advance.

It works fine and convenient.

But the product is passive ( suspended,abuse,closed-deleted,canceled) in case I want to disable the refresh button.

I have used the following code for this but I did not succeed.

 

{if $service.status != 'active'}Disabled{/if}

I'd appreciate it if you could help me.

Link to comment
Share on other sites

33 minutes ago, system53 said:

Hello,

I developed a module.
We can renew or extend active or suspended services in advance.

It works fine and convenient.

But the product is passive ( suspended,abuse,closed-deleted,canceled) in case I want to disable the refresh button.

I have used the following code for this but I did not succeed.

 



 

Bana yardım edebilirsen sevinirim.

I tried it like the following and it happened.

 


{if $service.status|strtolower != 'active'}disabled{/if}

 

Edited by system53
Link to comment
Share on other sites

2 minutes ago, brian! said:

status is uppercase, I think statusClass would be lowercase.

Thank you, Brian, you're a wonderful person.

As I said, I did what I wanted with the code below.

 

{if $service.status|strtolower != 'active'}disabled{/if}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated