wannel Posted July 30, 2012 Share Posted July 30, 2012 Bonjour Pour certains produits je souhaite modifer le processus de commande : c'est à dire remplacer "ajout dans le panier" par "Contactez nous" avec redirection vers formulaire de contact. Comment faire ? Merci par avance Link to comment Share on other sites More sharing options...
franckm1000 Posted July 30, 2012 Share Posted July 30, 2012 Une méthode, pas forcément très très jolie, mais qui fonctionne est de modifier le fichier product.tpl. A l'endroit d'affichage du bouton ajouter, vous mettez une condition du type: {if $product->id_product==1||$product->id_product==2||$product->id_product==3} <a href="contact-form.php">Contactez-nous</a> {else} //J'affiche le bouton normal {/if} Ou les numéros id_product représentent les produits dont tu veux rediriger vers le formulaire. Bon si y a 500 produits c'est sûr que là... 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