Jump to content

add custom field in prestashop while creating new cart rule.


Recommended Posts

Hi,

 

Problem while saving custom field which is add in cart rule condition .

Created one field 'usertype' in ps_cart_rule table..also define in cartrule.php like
public $usertype;

'usertype' => array('type' => self::TYPE_INT),

 

in condition.tpl i have write,

<select name="selecttype">
<option value="0"> Select Type </option>
{foreach from=$resultstype item=type}
<option value="{$type['id']}"> {$type['name']}</option>
{/foreach}
</select>
 
where can i write code for save selecttype?
 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...