Jump to content

 

nil2567

Member Since 24 Dec 2014
Offline Last Active Apr 04 2016 04:42 PM
-----

Posts I've Made

In Topic: Link To Go To Controller

24 January 2016 - 09:55 PM

I dont know why but this is not working for me.

 

I have this test:

 

<a class="cm-js cm-ajax" id="xxx" href="{"index&test=1"|fn_url}">xxxxxxxxxxxxxxxxxxx</a>

 

<script type="text/javascript">
// catch callback trigger of form request
(function(_, $) {
$.ceEvent('on', 'ce.ajaxdone', function(data){
console.log('cxxxxx');
});
}(Tygh, Tygh.$));
</script>

 

on controller I have this:

 

    
      $a = 1111;
    if($_REQUEST['test'] == 1){
        $a = 'hello from controller';
        Registry::get('ajax')->assign('li', $a);
    }
 
I can see the "hello from controller" in the chrome network tab, on PREVIEW tab:
 
  1. {li: "hello from controller",…}
    1. current_url"http://localhost/pmi...h=index&test=1"
    2. li"hello from controller"
  2.  
 
how can I get the value that is beeing returned ?
 
Thanks

In Topic: New Field To Export Products

17 February 2015 - 03:26 PM

what I want is to have one more field to export orders that will be payment methods
ex:

mastercard

In Topic: New Field To Export Products

17 February 2015 - 12:53 PM

What m I doing worng?

addons\my_changes\schemas\exim\orders.post.php

$schema['export_fields']['my_test'] = array (
'db_field' => 'email',
'required' => true,
);
return $schema;