xaxa Posted December 9, 2016 Share Posted December 9, 2016 Bonjour, j'aimerais passer une variable javascript "id_product_ajax" : $(document).ready(function(){ $('#bouton').on('click', function(){ var id_product_ajax = $('#product_page_product_id').val(); $.fancybox({ maxWidth : 615, maxHeight : 2000, fitToView : true, width : '100%', height : '100%', autoSize : false, wrapCSS : 'people', href: baseDir+'index.php?controller=affichageFancyBox&content_only=1&module=monmodule&fc=module&var='+id_product_ajax, type: 'ajax', }); }); }); vers mon controlleur class MonModuleAffichageFancyBoxModuleFrontController extends ModuleFrontController { public $php_self = 'affichageFancyBox'; public function initContent() { parent::initContent(); $this->setTemplate('affichageFancyBox.tpl'); } } Quelqu'un aurait-il la solution s'il vous plait? merci Link to comment Share on other sites More sharing options...
xaxa Posted December 12, 2016 Author Share Posted December 12, 2016 Ok nikel!!! Oui désolé, pourtant je cherche sur le forum et sur google mais je ne trouve pas :/ Un grand Merci en tout cas! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now