Jump to content

amol.karande

Retired Forum Member
  • Posts

    31
  • Joined

  • Last visited

About amol.karande

amol.karande's Achievements

Member

Member (2/3)

0

Reputation

  1. Basically I want to perform some validation on accepting user data for that I want to go on different php page where I want perform database connection after validation I may need to send user to configureproduct.tpl to fill value again. But what is happening now is that it is executing that page but not performig ay task on that page and directly going to next page of whmcs so validation part is not executing that is what I want to perform.
  2. I running javascript in that I have window.location='location' but it doesnt work.. Is their are setting for this or what could be the reason I tested code around that works but not that please reply
  3. when we login as admin we can order the product using any client so I want to know that whether it passes through actionhooks.php as it passes when we place order as client or is their any settingd for that
  4. Basicaly I want to validate users value in customfield he entered while product configuration but I am not getting how to access customfields values in js codes function which I will call on submit.If possible tell me the way by which I can access customfield value in js code As I was not able to do that I tried to do some task in actionhooks.php I did my sql part but on else part I need to redict to configuration page for that perticular product as like when we click on EditConfiguration link in viewcart.tpl I think first part is appropriate for my task so please tell me how to access customfiled value entered by user in that .tpl file only on submit
  5. I dont know whether this will help you or not but I want to tell you that by adding code as {php} $customflds = $this->get_template_vars('customfields'); print_r($customflds); {/php} this will print whole arrar of custom fields the nI think to get specific value you need to use syntax as $customflds[1]['id'] where id is name of the field let's try
  6. I want to get information from user when he is ordering product, at that time I would like to get password for my product, is it posible to make customfield as password type.
  7. I ma using get_template_vars() function in my .php file which I have in .tpl using {fetch file ,but in this I am facing problem that I can get few varibles but not all e.g $companyname,$currency these are single values but in single values also field $pagetitle I am not able to get Also tell syntax to access array fields as $products is array so what should I use with get_template_vars()
  8. I am trying to add some functionality for that I want to include() my .php to .tpl but am getting warnig as URL file-access is disabled in the server configuration failed to open stream: no suitable wrapper could be found so what should I do to anable this include() function in .tpl Thank you
  9. Thank you sir I have done with issue with custom fields access and I am in last stage of my applications first part. thank you:)
  10. thank you I am able to run actionhooks as per my requirment.but one more issue I have to clear I want to access custom fields as their is table for custom fields how I supposed to go in order to get custom fields of specific client. Can you guide me on that Thank you
  11. Thank you sir I was makingmistake in where clause variable I got correct way to give it from your query as (WHERE `id` ='".$userid."'"). So now I am able to run query as my expectation. Thank you
  12. $sql = 'SELECT `userid` FROM `tblorders` WHERE `id` = $vars["OrderID"] LIMIT 0, 30 '; $sql = 'SELECT * FROM `tblclients` WHERE `id` = `$userid` LIMIT 0, 30 '; I am trying to run these two queries in actionhooks.php but I am not able to run those.But same queries with hardcodes values for $ordervar`,`$userid` respectively runs perfectly .Also I have tested those variable with various combination of coates but not getting please give the the solution over it thank you
  13. As you have deal with actionhooks please tell me that can I run any action such as connecting to other site because on order completion I want to run some api which is at different website as action hooks dont have any event related to it so ho could i achieve it please guide me thank you
  14. Previosly we have decided for same but now we are using new version of whmcs so I am not getting how to deal with checkoutscript and even if we use cheackoutscript as it also dont have submit button or ant event so how to go to other page using that please guide Thank you
  15. I am using actionhooks.php for the purpose of performing some action I want to perform task that when user clicks checkout then I want to perform task as it should connect to other website i.e I want to perform action="http://www.dummy.com" as actionhooks.php has no event so to achieve this what should I do I stuck on this point I about to achieve my project. so please give me some solution on this Thank you
×
×
  • 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