FerrA Posted January 29 Share Posted January 29 Hi to all guys, everyone can share with us a code snippet for add the attributes/combinations name after the products name? For example "Product one" have combination called (two, three) On product page now appear as product name "Product one" and you can select the combinations "two and three". I what that, when users select a combination the product name will be updated. So Select combination "three" the product name will be "Product one - Three". Anyone can share a code parts for do that? Link to comment Share on other sites More sharing options...
JBW Posted January 30 Share Posted January 30 You need two changes. 1. In your (child)-themes .tpl add the reference after the product name {$product.reference_to_display} 2. When a combination is chooses presta updates only parts of the page. You need a JS to listen for changes and update accordingly e.g. prestashop.on('updatedProduct', function(e) {$('#mylabelxyz').text($('.product-reference').text())}); Link to comment Share on other sites More sharing options...
FerrA Posted February 19 Author Share Posted February 19 On 30/1/2024 at 8:53 AM, JBW dice: $product.reference_to_display This is my $product.reference_to_display on /templates/catalog/_partials {if isset($product.reference_to_display) && $product.reference_to_display neq ''} <div class="product-reference"> <label class="label">{l s='Reference' d='Shop.Theme.Catalog'} </label> <span>{$product.reference_to_display}</span> </div> {/if} where I put this line? Link to comment Share on other sites More sharing options...
ps8modules Posted February 22 Share Posted February 22 Hi. You ask about the combination and solve the reference 🙃 You probably need this: Link to comment Share on other sites More sharing options...
FerrA Posted February 22 Author Share Posted February 22 Adesso, ps8modules.com dice: Hi. You ask about the combination and solve the reference 🙃 You probably need this: Yesssss, it’a module? Link to comment Share on other sites More sharing options...
ps8modules Posted February 22 Share Posted February 22 Yes 😉 Since commercial links are checked here, I won't put it here. But the module can be obtained from my e-shop for free => Free category🤫 Link to comment Share on other sites More sharing options...
FerrA Posted February 22 Author Share Posted February 22 Yes but on your website not work the registration. I can't register an account. Please check and solve that Link to comment Share on other sites More sharing options...
ps8modules Posted February 22 Share Posted February 22 Possible. The form contains antispam. If someone enters false information, they will not be registered 🤔 Link to comment Share on other sites More sharing options...
FerrA Posted February 22 Author Share Posted February 22 No false information. I put my real details Link to comment Share on other sites More sharing options...
ps8modules Posted February 22 Share Posted February 22 1 minute ago, FerrA said: No false information. I put my real details Tested and everything works. Link to comment Share on other sites More sharing options...
FerrA Posted February 22 Author Share Posted February 22 Ok, see my reg video. video here Link to comment Share on other sites More sharing options...
FerrA Posted February 22 Author Share Posted February 22 (edited) Tried via chrome too, and firefox. Same problem Opened directly from url, not from redirects Edited February 22 by FerrA (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