Attributes onchange setAttrValue

15.02.2017 12:30
#1
le5
Joomshopping forum user no avatar
Name: le5 GmbH
17.03.2012
Posts: 74
Quote
Attributes onchange setAttrValue

I would like to manipulate the select boxes after the ajax call.

If I'm reading the functions.js correctly, there is at the end of the function reloadAttribSelectAndPrice() a call possibility for 3th party functions?

jQuery.each(reloadAttribEvents, function(key, handler){
handler.call(this, json);
});

So I tried in the product_default.php to create a function like this (I tried several possibilities).
As example:

<script type="text/javascript">
reloadAttribEvents.push('reformatAjaxSelect');

var reformatAjaxSelect = function( param ){
console.log('reformat: ' + param);
};
</script>

But non of my tries didn't work.

Any advise how I have to create the function, so it will be called?

Pawel


Joomla: 3.6.5
JoomShopping: 4.15.1
PHP: 7.x
 
15.02.2017 13:23
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25916
Quote
Aw: Attributes onchange setAttrValue

reloadAttribEvents[reloadAttribEvents.length] = function(json){
...
}

 
15.02.2017 14:35
#3
le5
Joomshopping forum user no avatar
Name: le5 GmbH
17.03.2012
Posts: 74
Quote
Aw: Attributes onchange setAttrValue

Thanks a lot.

Got it working now.

Have a nice day.
Pawel

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.