Baba deCode Posted April 2, 2016 Share Posted April 2, 2016 Bonjour tout le monde, Je me demande si c'est possible sur un Presta 1.6.1.4 multiboutique d'afficher sur le site A les produits d'un categorie du site B via le module homefeatured. Si vous avez des pistes je suis preneur cordialement Link to comment Share on other sites More sharing options...
doekia Posted April 2, 2016 Share Posted April 2, 2016 Home featured est attaché à la home du shop, => ps_shop il te suffit de mettre tes produits visible dans les 2 catégories et ça fera café Link to comment Share on other sites More sharing options...
Baba deCode Posted April 2, 2016 Author Share Posted April 2, 2016 Merci de cette réponse doekia, mais en faisant cela, ca ne me donne pas un lien produit du style www.siteB.com/produit-1.html mais www.siteA.com/produit-1.html Link to comment Share on other sites More sharing options...
doekia Posted April 2, 2016 Share Posted April 2, 2016 ah oui j'avais pas compris ta question Le problème, est qu'il semble que tu ais viré le categorie de l'url, sinon, tu fais comme ici, mais tu ajoutes une règle dans ton .htaccess qui fasse une 301 ... bon j'admets c'est un poil moche 1 Link to comment Share on other sites More sharing options...
Baba deCode Posted April 2, 2016 Author Share Posted April 2, 2016 (edited) Bon j'ai bricolé un truc qui me va... donc je met les produits dans les deux boutiques, ensuite je change le homefeatured.tpl de mon theme {if isset($products) && $products} <!-- On change l appel de la liste de produit on fait un tpl custom --> {include file="$tpl_dir./home-product-list.tpl" class='homefeatured tab-pane' id='homefeatured'} {else} <ul id="homefeatured" class="homefeatured tab-pane"> <li class="alert alert-info">{l s='No featured products at this time.' mod='homefeatured'}</li> </ul> {/if} Mon home-product-list.tpl customisé .... <div class="product-image-container"> <!-- je change l url du lien des produits attention c est un rewrite perso d url dans seo ---> <a class="product_img_link" href="http://www.siteb.com/{$product.link_rewrite|escape:'html':'UTF-8'}-{$product.id_product}.html" title="{$product.name|escape:'html':'UTF-8'}" itemprop="url"> <img class="replace-2x img-responsive" src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" title="{if !empty($product.legend)}{$product.legend|escape:'html':'UTF-8'}{else}{$product.name|escape:'html':'UTF-8'}{/if}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} itemprop="image" /> </a> </div> .... Merci pour ton aide Edited April 2, 2016 by Alex-Kodd (see edit history) 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