jmikemiller Posted September 17, 2021 Share Posted September 17, 2021 Hi, I'm using the default theme with some tweak changes on css. When a product have a big number of attributes and similar color hues, its difficult to talk on the phone with the client which color is referring on the mobile version (in desktop at least appears on the mouse hover - attachment: desktop-color-tip.png). Does somebody know how to add the selected color text next to color attribute label? (attachment: mobile-color-text.png) Thanks. Link to comment Share on other sites More sharing options...
ps8modules Posted September 17, 2021 Share Posted September 17, 2021 Prestashop version ? Link to comment Share on other sites More sharing options...
ps8modules Posted September 17, 2021 Share Posted September 17, 2021 For prestashop 1.7 solution: https://mypresta.eu/prestashop-17/show-selected-color-attribute-name.html Link to comment Share on other sites More sharing options...
jmikemiller Posted September 20, 2021 Author Share Posted September 20, 2021 Hi, it's the latest one - 1.7.7.4. I've done what you sent on the link, but it doesn't show, I've also clean the cache and recompile. My Prestashop and atribute is in Portuguese, so the internal name is "Cor" instead of "Color". Anything I need to change on that code? Link to comment Share on other sites More sharing options...
ps8modules Posted September 20, 2021 Share Posted September 20, 2021 Upload two files here. Link to comment Share on other sites More sharing options...
jmikemiller Posted September 20, 2021 Author Share Posted September 20, 2021 (edited) Attached. custom.css custom.js Edited September 20, 2021 by jmikemiller (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted September 20, 2021 Share Posted September 20, 2021 Everything is alright. Please write me where you saved the files. Thank you Link to comment Share on other sites More sharing options...
ps8modules Posted September 20, 2021 Share Posted September 20, 2021 Please send me a link to a private message with a detail of a product that has colors. I'll see if the names in the class are correct. Thank you Link to comment Share on other sites More sharing options...
jmikemiller Posted September 21, 2021 Author Share Posted September 21, 2021 I've solved. The class was different in the code of the link above. Thanks WebSoft. 1 Link to comment Share on other sites More sharing options...
jmikemiller Posted September 21, 2021 Author Share Posted September 21, 2021 But I noticed if I have another attribute like size, it outputs the name color on both labels 🙄 Link to comment Share on other sites More sharing options...
ps8modules Posted September 21, 2021 Share Posted September 21, 2021 It's hard to advise if you don't have a default theme. If you need advice, you need to attach files. For example, you need to upload a file here: ./themes/your_theme/templates/catalog/_partials/product-variants.tpl Link to comment Share on other sites More sharing options...
jmikemiller Posted September 21, 2021 Author Share Posted September 21, 2021 product-variants.tpl 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