ferra1980 Posted November 7, 2014 Share Posted November 7, 2014 Buonasera a tutti, sto cercando di creare un modulo per far eseguire uno script per la prenotazione di libri da parte dei miei utenti. Il mio problema è di programmazione, non me ne intendo molto e vorrei sapere se qualcuno può aiutarmi (anche a pagamento): Ecco la guida: The integration can be tested with a simple HTML page. The page load use jQuery facilities to dinamically load the page inside your application. The library use jQuery.noConflict() in order to not interfer with your already present libraries. There are 3 step to follow as to integrate the Book2C project in your web application: add required JavaScript libraries; put a div with required and/or optional parameters wherever you want in the page; add Javascript code to dinamically load the Book2C customized page; Required JavaScript libraries, to load in the <head> of the HTML page 1. jQuery.min.js (ver >= 1.6.4): if your page already contains it, this is optional; 2. book2c.min.js (mandatory) (see example for the url address); DIV required / optional parameter 1. pw (mandatory): numeric part of the requested Book2c page width, i.e. "1000" if you want a 1000px width; 2. ph (optional): numeric part of the requested Book2c page height, i.e."1000"if you want a 1000px height. If the specified value is less than 1000, it'll be set to 1000; 3. p1 (mandatory): "dominio"; 4. p2 (mandatory): "codice punto vendita cliente FastBook"; 5. p3 (mandatory): "codice cliente finale"; 6. p4 (optional): "nome cognome cliente finale"; 7. p5 (optional): "telefono cliente finale"; 8. p6 (optional): "email cliente finale" it's required to explicitly close the DIV. Code to dinamically load the Book2C customized page Usually called in: jQuery(document).ready(function() { Book2C.load(); }); Eccone un esempio: <html> <head> <!-- Step 1) --> <!--optional if jQuery is already loaded in page--> <script src="http://www.book2c.it/js/ext/jquery.min.js"></script> <!--mandatory --> <script src="http://www.book2c.it/js/ext/book2c.min.js"></script> </head> <body> <!-- Step 2) --> <div id="b2c" pw="711" ph="1000" p1="demo" p2="0000" p3="000003" p4="Marco Rossi" p5="(+39)000111222" p6="[email protected]" ></div> <script type="text/javascript"> <!-- Step 3) --> jQuery(document).ready(function() { Book2C.load(); }); </script> </body> <html> I dati pw, ph, p1, p2 sono fissi e li ho già. Dovrei recuperare dinamicamente p3 (p4,p5,p6 non importano) tramite l'id dell'utente di prestashop. Grazie mille a chi volesse aiutarmi Link to comment Share on other sites More sharing options...
Cédriclalib Posted January 11, 2015 Share Posted January 11, 2015 Buonasera, Avete trovato una soluzione ? in quanto cliente Fastbook, sarei molto interessato alla creazione di questo modulo saluti 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