patate34 Posted February 18, 2011 Share Posted February 18, 2011 Bonjour, J'ai plusieurs retours de clients regrettant le fait que le pavé commande dans l'historique des commande, n'offre pas la possibilité de cliquer sur les produits commandés pour accéder directement sur la fiche produit et les conseils associés.Savez-vous si cela est possible ?Merci pour votre aide. Link to comment Share on other sites More sharing options...
DevNet Posted February 20, 2011 Share Posted February 20, 2011 Bonjour,Je pense que c'est envisageable. En revanche le listing prévoit déjà l'apparition d'un lien de téléchargement dans le cas où il s'agit d'un produit à télécharger.Tout se passe dans /themes/[votre_theme]/order-detail.tpl ligne 134 : {if $product.download_hash && $invoice && !in_array($order_history.0.id_order_state, $denyDownloadForOrderStates)} {$product.product_name|escape:'htmlall':'UTF-8'} {else} {$product.product_name|escape:'htmlall':'UTF-8'} {/if} Bien cordialement Link to comment Share on other sites More sharing options...
patate34 Posted February 21, 2011 Author Share Posted February 21, 2011 Super, merci beaucoup, j'ai testé, ça fonctionne bien.Pour info, au cas où certains veulent le mettre en oeuvre : Dans ton extrait de code j'ai remplacé {$product.product_name|escape:'htmlall':'UTF-8'} par {$product.product_name|escape:'htmlall':'UTF-8'} Et un petit résolu, 1 ! Link to comment Share on other sites More sharing options...
jp77 Posted February 25, 2011 Share Posted February 25, 2011 bonjour a tous ldeux super idée je l'applique ce jourmerci beaucoup Link to comment Share on other sites More sharing options...
Hardwell Posted March 24, 2013 Share Posted March 24, 2013 (edited) Je UP ce sujet car je ne comprend pas où placer la ligne de code de Devnet, ligne 134 ok mais le code que tu donnes est bizarre. Help Je suis sous presta 1.5.2 Edited March 24, 2013 by Hardwell (see edit history) Link to comment Share on other sites More sharing options...
utaku Posted March 25, 2013 Share Posted March 25, 2013 +1 je comprend pas trop ce qu'il faut changer et je suis également sous ps 1.5.2 merci Link to comment Share on other sites More sharing options...
utaku Posted March 25, 2013 Share Posted March 25, 2013 Bon j'ai trouver +/- ce qu'il fallait faire à la ligne 266 du fichier order-detail.tpl j'ai rajouter ceci : {$base_dir}product.php?id_product={$product.product_id} j'ai bien dans l'historique des commandes, l'url vers le produit, cependant le lien n'est pas clicable et de plus on à l'adresse brut, il n'est pas " recouverte " par un l s, ou le nom du produit d’où ma question comment rendre ces 2 codes réuni en une seul ligne dans l'historique avec le nom du produit clicable avec la bonne adresse url du produit ? {$base_dir}product.php?id_product={$product.product_id} et {$product.product_name|escape:'htmlall':'UTF-8'} merci pour toute aide Link to comment Share on other sites More sharing options...
Hardwell Posted March 25, 2013 Share Posted March 25, 2013 (edited) Finalement j'ai trouvé hier la solution sous presta 1.5.2 Utaku Ouvre ton fichier order-detail.tpl Aux alentours de la ligne 266 tu devrais avoir ça: {else} {$product.product_name|escape:'htmlall':'UTF-8'} {/if} Il te suffit d'ajouter le <a href=...: {else} {$product.product_name|escape:'htmlall':'UTF-8'} {/if} <a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">Voir la fiche produit</a> </label> En espérant être clair, dis moi si cela fonctionne Edited March 25, 2013 by Hardwell (see edit history) Link to comment Share on other sites More sharing options...
Superbegood31 Posted March 25, 2013 Share Posted March 25, 2013 Chez moi j'ai fait comme ceci : <a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category)}">{$product.product_name|escape:'htmlall':'UTF-8'}</a> Link to comment Share on other sites More sharing options...
utaku Posted March 25, 2013 Share Posted March 25, 2013 Hello merci à vous 2 , cela fonctionne super bien Merci Harwell, d'avoir trouver la solution, finalement j'ai appliqué la solution de switchboard, qui est exactement ce que je recherchais ^^' Voila enfin un soucis de régler, cela sera plus facile pour nos clients ^^' Link to comment Share on other sites More sharing options...
Superbegood31 Posted March 25, 2013 Share Posted March 25, 2013 Il ne faut pas oublier de changer également pour les produits personnalisables et téléchargeables... Link to comment Share on other sites More sharing options...
utaku Posted March 25, 2013 Share Posted March 25, 2013 Yep, enfin pour ma part je n'ai pas de produits personnalisables ni téléchargeables ma ta solution fonctionne super bien merci Link to comment Share on other sites More sharing options...
Superbegood31 Posted March 25, 2013 Share Posted March 25, 2013 Avec plaisir Link to comment Share on other sites More sharing options...
presta'luv Posted April 16, 2013 Share Posted April 16, 2013 Bonjour, Je souhaitrai rendre clickable l'image du produit concerné. Or, je n'arrive pas à afficher l'image du produit dans order-detail.tpl. Pour récupérer le lien OK mais avez-vous une idée pour afficher l'image car j'ai essayé : $link->getImageLink($product.link_rewrite, $product.id_image, 'small') Et ça ne marche pas.. Merci d'avance. Link to comment Share on other sites More sharing options...
pfluperi Posted September 15, 2013 Share Posted September 15, 2013 bonjour, vous pouvez directement ajouter le produit a votre panier au lieu de l'afficher? Link to comment Share on other sites More sharing options...
amina95 Posted June 12, 2020 Share Posted June 12, 2020 On 2/18/2011 at 9:29 PM, patate34 said: Bonjour, je voudrais mettre le nom de produit cliquable sur le devis j'utilise le module pdfquotation. Savez-vous si cela est possible ? Merci pour votre aide. 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