Jump to content

Custom Module - Effects of changing "Status" and module buttons


dan.trainor

Recommended Posts

Hi -

 

After a few days of back and forth I finally got the answer from Support that I was hoping to not get; the simple fact that changing the Status of an order to Inactive, Terminated, Cancelled, Fraud, or back to Active has no effect on the actual module action itself.

 

So what's the point of having that Status field, if it makes absolutely no change at all? Is it just there for show, to look pretty? Hell, I can't even use it - $params contains the same Status, regardless of what its changed to. What gives?

 

What I'm getting at is, I want to go ahead and just mark an order as Inactive, and I want that - through my custom module - to disable the associated product through the associated module. I'm at the point now where I'm just going to curl and repost that data to the module button and subsequent link based on the $_REQUEST[] variable submitted.

 

But that's ugly. Unfortunately I've not been able to find any additional help on this.

 

With that, has anyone ever done anything like this? Care to share some advice or insight as to exactly how to ADMINISTRATIVELY control the availability of said product which is tied in to a custom module? In this case, changing the Status field and submitting that actually performs an action against my custom module?

 

I'm getting more frustrated by the day. I gave up ClientExec because it sucks. I've been very happy with WHMCS until this point, but if I can get over this one last hurdle, I'm going to marry this thing. Know what I mean?

 

Thanks

-dant

Link to comment
Share on other sites

What I'm getting at is, I want to go ahead and just mark an order as Inactive, and I want that - through my custom module - to disable the associated product through the associated module

 

to do that you'd mark the *product* as cancelled or whatever using the buttons which does call your module functions - i thin kyou're misunderstanding what "order" in WHMCS parlance is used for ...

Link to comment
Share on other sites

Hi -

 

Thanks for the reply.

 

I understand the differences - an Order being one instance of a Product.

 

Regardless, that doesn't get me any closer - but reading some of your forum posts it sounds like you might have a clue as to how to achieve what I'm working on.

 

Care to elaborate a bit? I'll send you a case of beer.

 

Thanks

-dant

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