Jump to content

Add custom field in Domains Configuration cart


glardone

Recommended Posts

Dear all,

I have modified the Domains Configuration template to add a descriptive text field for each domain in order:

 

<div class="form-group">
 <label for="RefClient">{$LANG.refclient}</label>
 <input type="text" class="form-control" id="RefClient" name="refclient" value="{$refclient}" />
</div>

 

I would like to save to a custom table data entered with a hook "AfterShoppingCartCheckout".

 

I though I did not understand how to retrieve the array of variables $refclient :?:

 

Thank you!

Link to comment
Share on other sites

Ok,

I have tried this hook:

 

<?php

add_hook("ShoppingCartValidateDomainsConfig", 1, function refclient_hook($vars) {

$refclient = $vars['RefClient'];

$return = array("refclient" => $refclient);
return $return;

});

 

But it's not work properly...

 

How can I retrieve the variable values "$refclient" sent by form "<form method="post" action="{$smarty.server.PHP_SELF}?a=confdomains" id="frmConfigureDomains">" ?

 

Thank you!

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