Moderator: madimar
1) into the file header.tpl add the following code just before the </head> tag
<link type="text/css" href="css/reset.css" rel="stylesheet" />
<link type="text/css" href="css/styles.css" rel="stylesheet" />
2) Add the following code just after the <body> tag
<div id="contactFormContainer">
<div id="contactForm">
<div class="loader"></div>
<div class="bar"></div>
<form action="mail.php" class="contactForm" name="cform" method="post">
<p>Talk to me about anything. If you’d like to work with me, or <br />even if you just need a hug, I’ll get back to you shortly.</p>
<div class="input_boxes">
<p><label for="name">Name</label><span class="name-missing">Please enter your name</span><br />
<input id="name" type="text" value="" name="name" /></p>
<p><label for="e-mail">E-mail</label><span class="email-missing">Please enter a valid e-mail</span><br />
<input id="e-mail" type="text" value="" name="email" /></p>
<p><label for="message">Message</label><span class="message-missing">Say something!</span><br />
<textarea id="message" rows="" cols="" name="message"></textarea></p>
</div>
<input class="submit" type="submit" name="submit" value="Submit Form" onfocus="this.blur()" />
</form>
</div>
<div class="contact"></div>
</div>
3) Open your template footer.tpl(Here i am taking in default opencart installation),
Catalog->View->Theme->Default->Template-Common-footer.tpl.
4) Add the following code just before </body> tag.
<div id="backgroundPopup"></div>
<script src="js/scripts.js" type="text/javascript"></script>
<link type="text/css" href="css/reset.css" rel="stylesheet" />
<link type="text/css" href="css/styles.css" rel="stylesheet" />
2) Add the following code just after the <body> tag
<div id="contactFormContainer">
<div id="contactForm">
<div class="loader"></div>
<div class="bar"></div>
<form action="mail.php" class="contactForm" name="cform" method="post">
<p>Talk to me about anything. If you’d like to work with me, or <br />even if you just need a hug, I’ll get back to you shortly.</p>
<div class="input_boxes">
<p><label for="name">Name</label><span class="name-missing">Please enter your name</span><br />
<input id="name" type="text" value="" name="name" /></p>
<p><label for="e-mail">E-mail</label><span class="email-missing">Please enter a valid e-mail</span><br />
<input id="e-mail" type="text" value="" name="email" /></p>
<p><label for="message">Message</label><span class="message-missing">Say something!</span><br />
<textarea id="message" rows="" cols="" name="message"></textarea></p>
</div>
<input class="submit" type="submit" name="submit" value="Submit Form" onfocus="this.blur()" />
</form>
</div>
<div class="contact"></div>
</div>
3) Open your template footer.tpl(Here i am taking in default opencart installation),
Catalog->View->Theme->Default->Template-Common-footer.tpl.
4) Add the following code just before </body> tag.
<div id="backgroundPopup"></div>
<script src="js/scripts.js" type="text/javascript"></script>
http://www.restaurantsupplies.eu Restaurant Supplies
Opencart 1.5.6.4 VQMOD 2.4.1
Languages: Italian, French, German, Hungarian, English, Russian, Polish and Spanish
Ciao,
e' un po' difficile senza provare (qualcosa sfugge sempre) ma questo dovrebbe fare quello che chiedi:
<operation>
<search position="before">
<![CDATA[
</head>
]]></search>
<add>
<![CDATA[
<link type="text/css" href="css/reset.css" rel="stylesheet" />
<link type="text/css" href="css/styles.css" rel="stylesheet" />
]]></add>
</operation>
<search position="after">
<![CDATA[
<body>
]]></search>
<add>
<![CDATA[
<div id="contactFormContainer">
<div id="contactForm">
<div class="loader"></div>
<div class="bar"></div>
<form action="mail.php" class="contactForm" name="cform" method="post">
<p>Talk to me about anything. If you’d like to work with me, or <br />even if you just need a hug, I’ll get back to you shortly.</p>
<div class="input_boxes">
<p><label for="name">Name</label><span class="name-missing">Please enter your name</span><br />
<input id="name" type="text" value="" name="name" /></p>
<p><label for="e-mail">E-mail</label><span class="email-missing">Please enter a valid e-mail</span><br />
<input id="e-mail" type="text" value="" name="email" /></p>
<p><label for="message">Message</label><span class="message-missing">Say something!</span><br />
<textarea id="message" rows="" cols="" name="message"></textarea></p>
</div>
<input class="submit" type="submit" name="submit" value="Submit Form" onfocus="this.blur()" />
</form>
</div>
<div class="contact"></div>
</div>
]]></search>
</operation>
</file>
<operation>
<search position="before">
<![CDATA[
</body>
]]></search>
<add>
<![CDATA[
<div id="backgroundPopup"></div>
<script src="js/scripts.js" type="text/javascript"></script>
]]></add>
</operation>
</file>
Ovviamente aggiungi all'inizio del file la descrizione del vqmod, ad es:
<modification>
<id>Funzione XXX</id>
<version>1.0</version>
<vqmver>2.1.5</vqmver>
<author>Pinco Pallino</author>
e alla fine
</modification>
e' un po' difficile senza provare (qualcosa sfugge sempre) ma questo dovrebbe fare quello che chiedi:
<file name="catalog/view/theme/default/template/common/header.tpl">matteoraggi wrote: 1) into the file header.tpl add the following code just before the </head> tag
<link type="text/css" href="css/reset.css" rel="stylesheet" />
<link type="text/css" href="css/styles.css" rel="stylesheet" />
<operation>
<search position="before">
<![CDATA[
</head>
]]></search>
<add>
<![CDATA[
<link type="text/css" href="css/reset.css" rel="stylesheet" />
<link type="text/css" href="css/styles.css" rel="stylesheet" />
]]></add>
</operation>
<operation>matteoraggi wrote: 2) Add the following code just after the <body> tag
<div id="contactFormContainer">
<div id="contactForm">
<div class="loader"></div>
<div class="bar"></div>
<form action="mail.php" class="contactForm" name="cform" method="post">
<p>Talk to me about anything. If you’d like to work with me, or <br />even if you just need a hug, I’ll get back to you shortly.</p>
<div class="input_boxes">
<p><label for="name">Name</label><span class="name-missing">Please enter your name</span><br />
<input id="name" type="text" value="" name="name" /></p>
<p><label for="e-mail">E-mail</label><span class="email-missing">Please enter a valid e-mail</span><br />
<input id="e-mail" type="text" value="" name="email" /></p>
<p><label for="message">Message</label><span class="message-missing">Say something!</span><br />
<textarea id="message" rows="" cols="" name="message"></textarea></p>
</div>
<input class="submit" type="submit" name="submit" value="Submit Form" onfocus="this.blur()" />
</form>
</div>
<div class="contact"></div>
</div>
<search position="after">
<![CDATA[
<body>
]]></search>
<add>
<![CDATA[
<div id="contactFormContainer">
<div id="contactForm">
<div class="loader"></div>
<div class="bar"></div>
<form action="mail.php" class="contactForm" name="cform" method="post">
<p>Talk to me about anything. If you’d like to work with me, or <br />even if you just need a hug, I’ll get back to you shortly.</p>
<div class="input_boxes">
<p><label for="name">Name</label><span class="name-missing">Please enter your name</span><br />
<input id="name" type="text" value="" name="name" /></p>
<p><label for="e-mail">E-mail</label><span class="email-missing">Please enter a valid e-mail</span><br />
<input id="e-mail" type="text" value="" name="email" /></p>
<p><label for="message">Message</label><span class="message-missing">Say something!</span><br />
<textarea id="message" rows="" cols="" name="message"></textarea></p>
</div>
<input class="submit" type="submit" name="submit" value="Submit Form" onfocus="this.blur()" />
</form>
</div>
<div class="contact"></div>
</div>
]]></search>
</operation>
</file>
<file name="catalog/view/theme/default/template/common/footer.tpl">matteoraggi wrote: 3) Open your template footer.tpl(Here i am taking in default opencart installation),
Catalog->View->Theme->Default->Template-Common-footer.tpl.
4) Add the following code just before </body> tag.
<div id="backgroundPopup"></div>
<script src="js/scripts.js" type="text/javascript"></script>
<operation>
<search position="before">
<![CDATA[
</body>
]]></search>
<add>
<![CDATA[
<div id="backgroundPopup"></div>
<script src="js/scripts.js" type="text/javascript"></script>
]]></add>
</operation>
</file>
Ovviamente aggiungi all'inizio del file la descrizione del vqmod, ad es:
<modification>
<id>Funzione XXX</id>
<version>1.0</version>
<vqmver>2.1.5</vqmver>
<author>Pinco Pallino</author>
e alla fine
</modification>
Le modifiche indicate servivano a rendere vqmod compatibile questo modulo: http://www.opencart.com/index.php?route ... _license=0
Seguendo le tue istruzioni ho creato questo file xml allegato.
Ma quando carico il file xml e gli altri dell'estensione mi dice:
Warning: VQMod script XML syntax is invalid! Please contact the author for support.
Seguendo le tue istruzioni ho creato questo file xml allegato.
Ma quando carico il file xml e gli altri dell'estensione mi dice:
Warning: VQMod script XML syntax is invalid! Please contact the author for support.
Attachments
http://www.restaurantsupplies.eu Restaurant Supplies
Opencart 1.5.6.4 VQMOD 2.4.1
Languages: Italian, French, German, Hungarian, English, Russian, Polish and Spanish
Grazie! ora non fa nessun errore di sintassi!
Il pulsante in alto a destra compare, ma assieme la suo modulo comprare troppo a destra, vedo coem sistemarlo..
Il pulsante in alto a destra compare, ma assieme la suo modulo comprare troppo a destra, vedo coem sistemarlo..
http://www.restaurantsupplies.eu Restaurant Supplies
Opencart 1.5.6.4 VQMOD 2.4.1
Languages: Italian, French, German, Hungarian, English, Russian, Polish and Spanish
Who is online
Users browsing this forum: No registered users and 1 guest