Jump to content

Creating a Pop up / script in (clientareaproductdetails.tpl)


neo.ealink

Recommended Posts

In my custom module,---->

function custommodule_ClientArea($params) {

 

# Output can be returned like this, or defined via a clientarea.tpl template file (see docs for more info)

 

$code = '

<form name="form1" method="post" action="clientarea.php?action=productdetails">

<input type="hidden" name="id" value="{$serviceid}" />

<input type="hidden" name="modop" value="custom" />

<input type="hidden" name="a" value="genkey" />

<input type="submit" value="Generate Key" />

</form>

'

;

return $code;

 

}

I have created a button as well :

function custommodule_ClientAreaCustomButtonArray()

{

$buttonarray = array(

"Generate Key" => "genkey",

);

return $buttonarray;

}

which this button has come up at my clientarea.php?action=productdetails

(clientareaproductdetails.tpl).

What those button do actually I want to run some external keygen / javascript and also i want it to reload it back to the same page.. but it seems like,when i push the button, it goes to ../../clientarea.php?ction=product

not ../../clientarea.php?action=productdetails

 

My problem are :

1. Why it did not go back to the same page after clicking it

2. Can i implement the script directly in the clientareaproductdetails.tpl or in the custommodule?

3. Please give me some example

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