host.mahmud Posted June 4, 2020 Share Posted June 4, 2020 Hi, Is there any variable to check if marketconnect product activated or not? For example: {if sitelock enable} Will show something here... {/If} How can I check exactly this way? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 4, 2020 Share Posted June 4, 2020 39 minutes ago, host.mahmud said: Is there any variable to check if marketconnect product activated or not? where? in a site template or email ?? there won't be in an email template, and almost certainly not in a site template either - I suspect depending on where you want to do it, it's going to need a hook to check the database to see if they have active MC products. it can be done as I once wrote a very similar hook solution for a client - the thing ended up being nearly 100 lines of code... it would be longer now as there are more MC products than there was then. 😲 but you first need to know where/how it's going to be used and that will determine what hook to use.... 0 Quote Link to comment Share on other sites More sharing options...
host.mahmud Posted June 4, 2020 Author Share Posted June 4, 2020 5 minutes ago, brian! said: where? in a site template or email ?? there won't be in an email template, and almost certainly not in a site template either - I suspect depending on where you want to do it, it's going to need a hook to check the database to see if they have active MC products. it can be done as I once wrote a very similar hook solution for a client - the thing ended up being nearly 100 lines of code... it would be longer now as there are more MC products than there was then. 😲 but you first need to know where/how it's going to be used and that will determine what hook to use.... I would like to add this in client area theme. Can you share the hook codes here? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.