-
-
Notifications
You must be signed in to change notification settings - Fork 497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0][ADD] New module website sale product image sample #827
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice addon @manuelcalerosolis Some comments
- I couldn't set the attribute image, is the view extension missing?
@@ -0,0 +1,5 @@ | |||
* For the correct functioning of the module I had to rewrite .css_attribute_color, impacting the way of representing the selection by colors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about adding an extra class that overrides those styles only for the image thumbnails?
The image is obtained from the variant (product.product), it is so by customer requirements.  Buscar esto en Google |
Ah, that makes sense :) About the styles, did you explore adding an extra class so you don't need to change the base one? |
I tried creating a new css .css_attribute_product_image but the thumbnail image doesn't stay selected. The problem is this line
I think the "combination" variable doesn't work with another css selector |
Yes, that's because the js logic uses that class as a selector. I meant an additional class that would add up/override the other styles. Something like this: t-attf-class="css_attribute_color css_attribute_product_image #{'active' if ptav in combination else ''} #{'custom_value' if ptav.is_custom else ''}" |
Thanks for your help, I have created a new .css and added it to the old one as you indicated, now it works correctly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thanks :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functional review 👍🏻
@pedrobaeza Can this one be merged? THX |
/ocabot merge nobump |
What a great day to merge this nice PR. Let's do it! |
@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-827-by-pedrobaeza-bump-nobump. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
/ocabot merge nobump |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at f22fd97. Thanks a lot for contributing to OCA. ❤️ |
This module allows you to select the product variants by displaying a thumbnail image.
Quick sample