Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
cc1af12
Merge pull request #2 from OdooCommunityWidgets/master
lukebranch Dec 4, 2014
c6a923a
test
lukebranch Dec 4, 2014
3871e6b
test
lukebranch Dec 4, 2014
a427677
Update website_product_image_carousel.xml
lukebranch Dec 4, 2014
f67705c
test
lukebranch Dec 4, 2014
4bdac52
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
7c5802b
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
f6e3061
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
bd6f733
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
37188d2
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
69c285a
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
e2d9760
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
eb34def
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
e7647b3
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
d369da9
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
cc4f0cf
DEL fields
lukebranch Dec 5, 2014
cba37fd
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
4690e8b
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
95715f7
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
201420b
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
d605c3b
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
d1dfceb
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
f9df980
Update website_product_image_carousel.xml
lukebranch Dec 5, 2014
2c3fe71
add css and js for magnify and wowslider
lukebranch Dec 6, 2014
a12ec6d
added theme.xml for adding css and js
lukebranch Dec 6, 2014
bca6ad6
test magnify
lukebranch Dec 6, 2014
8f623fd
Update website_product_image_carousel.xml
lukebranch Dec 6, 2014
125df5b
Update website_product_image_carousel.xml
lukebranch Dec 6, 2014
fcb4418
Update theme.xml
lukebranch Dec 6, 2014
5a26926
Update website_product_image_carousel.xml
lukebranch Dec 6, 2014
e3504a1
Update theme.xml
lukebranch Dec 6, 2014
25c091f
Update theme.xml
lukebranch Dec 6, 2014
ce1d2ce
Update theme.xml
lukebranch Dec 6, 2014
63fad4d
Update website_product_image_carousel.xml
lukebranch Dec 6, 2014
854436f
Update theme.xml
lukebranch Dec 6, 2014
3dec752
Update theme.xml
lukebranch Dec 6, 2014
ae2e81a
Update website_product_image_carousel.xml
lukebranch Dec 6, 2014
6c025df
Update theme.xml
lukebranch Dec 6, 2014
103edbc
test WOWSlider
lukebranch Dec 6, 2014
5c7a399
Update website_product_image_carousel.xml
lukebranch Dec 6, 2014
8fc14e2
Update website_product_image_carousel.xml
lukebranch Dec 6, 2014
022e7b0
Update website_product_image_carousel.xml
lukebranch Dec 6, 2014
027ae8c
add wowsliderPreloader.js
lukebranch Dec 6, 2014
3a626b3
add wowsliderPreloader.js
lukebranch Dec 6, 2014
dafbed8
Delete style.css
lukebranch Dec 6, 2014
3767553
Delete WOWSlider.jquery.json
lukebranch Dec 6, 2014
47b9acd
Delete script.js
lukebranch Dec 6, 2014
96dd952
Delete wowslider.js
lukebranch Dec 6, 2014
0dcfc6d
Delete wowsliderPreloader.js
lukebranch Dec 6, 2014
7ccbe31
add owl.animate.css
lukebranch Dec 6, 2014
77fbc3b
add owl.autoheight.css
lukebranch Dec 6, 2014
2217ce4
add owl.carousel.css
lukebranch Dec 6, 2014
cffc603
add owl.lazyload.css
lukebranch Dec 6, 2014
82f8930
add owl.theme.default.css
lukebranch Dec 6, 2014
ed72ca7
add owl.theme.green.css
lukebranch Dec 6, 2014
df8aae9
add owl.video.css
lukebranch Dec 6, 2014
bc8b8d5
add .jscsrc
lukebranch Dec 6, 2014
d45c9b5
add .jshintrc
lukebranch Dec 6, 2014
4703651
add owl.animate.js
lukebranch Dec 6, 2014
6532822
add owl.autoheight.js
lukebranch Dec 6, 2014
e2ce3ab
add owl.autoplay.js
lukebranch Dec 6, 2014
2a275b1
add owl.autorefresh.js
lukebranch Dec 6, 2014
02c492f
add owl.carousel.js
lukebranch Dec 6, 2014
1f2aadf
add owl.hash.js
lukebranch Dec 6, 2014
d78b827
add owl.lazyload.js
lukebranch Dec 6, 2014
4cdaa86
add owl.navigation.js
lukebranch Dec 6, 2014
27e8ef1
add owl.support.js
lukebranch Dec 6, 2014
a3be469
add owl.support.modernizr.js
lukebranch Dec 6, 2014
753e612
add owl.video.js
lukebranch Dec 6, 2014
dcd57eb
add _mixins.scss
lukebranch Dec 6, 2014
7a0327a
add _theme.scss
lukebranch Dec 6, 2014
47a162e
add owl.animate.scss
lukebranch Dec 6, 2014
f3c0938
add owl.autoheight.scss
lukebranch Dec 6, 2014
6f54f7e
add owl.carousel.scss
lukebranch Dec 6, 2014
b919562
add owl.lazyload.scss
lukebranch Dec 6, 2014
925cb3d
add owl.theme.default.scss
lukebranch Dec 6, 2014
9cbfdb5
add owl.theme.green.scss
lukebranch Dec 6, 2014
3d34e5d
add owl.video.scss
lukebranch Dec 6, 2014
d0dd18f
Create 1.123
lukebranch Dec 6, 2014
0409d16
Update and rename 1.123 to ajax-loader.gif
lukebranch Dec 6, 2014
876529c
Create owl.video.play.png
lukebranch Dec 6, 2014
e1f8494
DEL WOWSlider and ADD OwlCarousel2
lukebranch Dec 6, 2014
2874ca3
ADD OwlCarousel
lukebranch Dec 6, 2014
6f0b6c0
Update website_product_image_carousel.xml
lukebranch Dec 6, 2014
7b2cef9
Update website_product_image_carousel.xml
lukebranch Dec 6, 2014
ba30087
Update website_product_image_carousel.xml
lukebranch Dec 7, 2014
c86206f
add OwlCarousel2 markup
lukebranch Dec 8, 2014
daaee1c
add class="item"
lukebranch Dec 8, 2014
b3e0e0f
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
96091e3
Update theme.xml
lukebranch Dec 8, 2014
c3c621b
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
e530150
Update theme.xml
lukebranch Dec 8, 2014
fab08e4
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
be035af
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
7961354
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
7d9dc1f
Update theme.xml
lukebranch Dec 8, 2014
c1bd607
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
9a8d02b
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
6fe9bef
Update theme.xml
lukebranch Dec 8, 2014
67e91c1
Update theme.xml
lukebranch Dec 8, 2014
2d89ce9
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
6ae026b
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
635fe50
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
5edcf48
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
d93bbca
Update theme.xml
lukebranch Dec 8, 2014
53da545
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
8d09f24
Update theme.xml
lukebranch Dec 8, 2014
a4efea0
Update theme.xml
lukebranch Dec 8, 2014
fd7f0a7
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
918f2f8
Update theme.xml
lukebranch Dec 8, 2014
e4d5fec
added Synced OwlSliders for product view page
lukebranch Dec 8, 2014
f3a2557
added Synced OwlSliders for product view page
lukebranch Dec 8, 2014
714b65f
Update theme.xml
lukebranch Dec 8, 2014
c402a0d
Update theme.xml
lukebranch Dec 8, 2014
7c7f239
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
1fd9a4e
add autoWidth and lazyLoad
lukebranch Dec 8, 2014
261ea2d
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
6530056
Update theme.xml
lukebranch Dec 8, 2014
b63dde2
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
e9b79fa
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
d8ea4f8
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
9fa9081
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
3271b63
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
88fb3f9
Update website_product_image_carousel.xml
lukebranch Dec 8, 2014
1cad51f
Update product_images.xml
lukebranch Dec 8, 2014
508966e
Update website_product_image_carousel.xml
lukebranch Dec 11, 2014
a225446
Update website_product_image_carousel.xml
lukebranch Dec 11, 2014
c3d3927
Update website_product_image_carousel.xml
lukebranch Dec 11, 2014
38922b1
Update website_product_image_carousel.xml
lukebranch Dec 11, 2014
48da6b7
Update README.md
lukebranch Dec 12, 2014
16feb13
Update README.md
lukebranch Dec 12, 2014
2ab0c72
add images
Dec 19, 2014
039766d
Merge branch 'dev-image-carousel' of https://github.com/OdooCommunity…
Dec 19, 2014
7dbe0ab
Update website_product_image_carousel.xml
lukebranch Dec 20, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 23 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
website_multi_image
===================
This module adds multiple product images into a tab in product.template in a tab called Product Images. It is definitely a work in progress, however it does allow for storage of multiple images per product and can be used to display multiple images on your website template's product page.
Website Multi Image stores multiple product images in a tab: 'Product Images' under Sales >> Product. These images are displayed on the product view page in a synced carousel (two carousels one large and one small) using OwlCarousel2.

Website Multi-Image

<H4>Please use the 8.0 branch:</H4>
sudo git clone -b 8.0 https://github.com/OdooCommunityWidgets/website_multi_image.git
This will provide you with the latest working 'stable' version of the module built for the 8.0 branch. Please be advised this module is still under development.

<H3>Frontend Demo:</H3>
<img src="https://cloud.githubusercontent.com/assets/2337666/5392143/3d4af6e8-815e-11e4-9512-3612bfdaa86a.png"/>

<H3>Admin Demo:</H3>
<img src="https://cloud.githubusercontent.com/assets/2337666/5392142/3d2107d4-815e-11e4-87f8-603f3c5ceeb8.png"/>

TODO: master
===================
Add multiple image slideshow to over-ride current single image display on product view and category view pages.<br/>
+ Options:<br/>
- WowSlider: https://github.com/WOWSlider/WOWSlider<br/>
- OwlCarousel: https://github.com/OwlFonk/OwlCarousel2<br/>
<br/><br/>
Image magnification<br/>
+ Options <br/>
- Magnifier.js: https://github.com/mark-rolich/Magnifier.js<br/>
- Zoom (jQuery): https://github.com/jackmoore/zoom/tree/master<br/>
- BootstrapMagnify: https://github.com/marcaube/bootstrap-magnify<br/>
<br/><br/>
Secondary Image (on Mouseover) (Category list view and grid view)<br/><br/>
Image thumbnail preview widget in list view (to replace current download link)
* Image magnification
* Options
* Magnifier.js: https://github.com/mark-rolich/Magnifier.js
* Zoom (jQuery): https://github.com/jackmoore/zoom/tree/master
* BootstrapMagnify: https://github.com/marcaube/bootstrap-magnify

* Secondary Image (on Mouseover) (Category list view and grid view)
* Image thumbnail preview widget in admin list view (to replace current download link)
* Attach Images to product variants to allow for image galleries based on product variants. This will be designed to switch galleries based on product variant attributes (eg. colour, size, etc.).
* Add product variant swatch thumbnails in a similar manner to Magento 1.9.1 (eg. t-if from tags or labels).
* Add support for WebRotate360 module website_webrotate360 (*not yet built).
1 change: 1 addition & 0 deletions __openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'data': [
'views/product_images.xml',
'views/website_product_image_carousel.xml',
'views/theme.xml',
'security/ir.model.access.csv',
],
'application': True,
Expand Down
38 changes: 38 additions & 0 deletions static/css/owlcarousel2/owl.animate.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Owl Carousel - Animate Plugin
*/
.owl-carousel .animated {
-webkit-animation-duration: 1000ms;
animation-duration: 1000ms;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
.owl-carousel .owl-animated-in {
z-index: 0;
}
.owl-carousel .owl-animated-out {
z-index: 1;
}
.owl-carousel .fadeOut {
-webkit-animation-name: fadeOut;
animation-name: fadeOut;
}

@-webkit-keyframes fadeOut {
0% {
opacity: 1;
}

100% {
opacity: 0;
}
}
@keyframes fadeOut {
0% {
opacity: 1;
}

100% {
opacity: 0;
}
}
10 changes: 10 additions & 0 deletions static/css/owlcarousel2/owl.autoheight.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Owl Carousel - Auto Height Plugin
*/
.owl-height {
-webkit-transition: height 500ms ease-in-out;
-moz-transition: height 500ms ease-in-out;
-ms-transition: height 500ms ease-in-out;
-o-transition: height 500ms ease-in-out;
transition: height 500ms ease-in-out;
}
94 changes: 94 additions & 0 deletions static/css/owlcarousel2/owl.carousel.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/*
* Core Owl Carousel CSS File
*/
.owl-carousel {
display: none;
width: 100%;
-webkit-tap-highlight-color: transparent;
/* position relative and z-index fix webkit rendering fonts issue */
position: relative;
z-index: 1;
}
.owl-carousel .owl-stage {
position: relative;
-ms-touch-action: pan-Y;
}
.owl-carousel .owl-stage:after {
content: ".";
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
}
.owl-carousel .owl-stage-outer {
position: relative;
overflow: hidden;
/* fix for flashing background */
-webkit-transform: translate3d(0px, 0px, 0px);
}
.owl-carousel .owl-item {
position: relative;
min-height: 1px;
float: left;
-webkit-backface-visibility: hidden;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
}
.owl-carousel .owl-item img {
display: block;
width: 100%;
-webkit-transform-style: preserve-3d;
}
.owl-carousel .owl-nav.disabled,
.owl-carousel .owl-dots.disabled {
display: none;
}
.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next,
.owl-carousel .owl-dot {
cursor: pointer;
cursor: hand;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.owl-carousel.owl-loaded {
display: block;
}
.owl-carousel.owl-loading {
opacity: 0;
display: block;
}
.owl-carousel.owl-hidden {
opacity: 0;
}
.owl-carousel.owl-refresh .owl-item {
display: none;
}
.owl-carousel.owl-drag .owl-item {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.owl-carousel.owl-grab {
cursor: move;
cursor: -webkit-grab;
cursor: -o-grab;
cursor: -ms-grab;
cursor: grab;
}
.owl-carousel.owl-rtl {
direction: rtl;
}
.owl-carousel.owl-rtl .owl-item {
float: right;
}

/* No Js */
.no-js .owl-carousel {
display: block;
}
14 changes: 14 additions & 0 deletions static/css/owlcarousel2/owl.lazyload.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Owl Carousel - Lazy Load Plugin
*/
.owl-carousel .owl-item .owl-lazy {
opacity: 0;
-webkit-transition: opacity 400ms ease;
-moz-transition: opacity 400ms ease;
-ms-transition: opacity 400ms ease;
-o-transition: opacity 400ms ease;
transition: opacity 400ms ease;
}
.owl-carousel .owl-item img {
transform-style: preserve-3d;
}
60 changes: 60 additions & 0 deletions static/css/owlcarousel2/owl.theme.default.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* Default theme - Owl Carousel CSS File
*/
.owl-theme .owl-nav {
margin-top: 10px;
text-align: center;
-webkit-tap-highlight-color: transparent;
}
.owl-theme .owl-nav [class*='owl-'] {
color: white;
font-size: 14px;
margin: 5px;
padding: 4px 7px;
background: #d6d6d6;
display: inline-block;
cursor: pointer;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.owl-theme .owl-nav [class*='owl-']:hover {
background: #869791;
color: white;
text-decoration: none;
}
.owl-theme .owl-nav .disabled {
opacity: 0.5;
cursor: default;
}
.owl-theme .owl-nav.disabled + .owl-dots {
margin-top: 10px;
}
.owl-theme .owl-dots {
text-align: center;
-webkit-tap-highlight-color: transparent;
}
.owl-theme .owl-dots .owl-dot {
display: inline-block;
zoom: 1;
*display: inline;
}
.owl-theme .owl-dots .owl-dot span {
width: 10px;
height: 10px;
margin: 5px 7px;
background: #d6d6d6;
display: block;
-webkit-backface-visibility: visible;
-webkit-transition: opacity 200ms ease;
-moz-transition: opacity 200ms ease;
-ms-transition: opacity 200ms ease;
-o-transition: opacity 200ms ease;
transition: opacity 200ms ease;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px;
}
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
background: #869791;
}
60 changes: 60 additions & 0 deletions static/css/owlcarousel2/owl.theme.green.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* Green theme - Owl Carousel CSS File
*/
.owl-theme .owl-nav {
margin-top: 10px;
text-align: center;
-webkit-tap-highlight-color: transparent;
}
.owl-theme .owl-nav [class*='owl-'] {
color: white;
font-size: 14px;
margin: 5px;
padding: 4px 7px;
background: #d6d6d6;
display: inline-block;
cursor: pointer;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.owl-theme .owl-nav [class*='owl-']:hover {
background: #4dc7a0;
color: white;
text-decoration: none;
}
.owl-theme .owl-nav .disabled {
opacity: 0.5;
cursor: default;
}
.owl-theme .owl-nav.disabled + .owl-dots {
margin-top: 10px;
}
.owl-theme .owl-dots {
text-align: center;
-webkit-tap-highlight-color: transparent;
}
.owl-theme .owl-dots .owl-dot {
display: inline-block;
zoom: 1;
*display: inline;
}
.owl-theme .owl-dots .owl-dot span {
width: 10px;
height: 10px;
margin: 5px 7px;
background: #d6d6d6;
display: block;
-webkit-backface-visibility: visible;
-webkit-transition: opacity 200ms ease;
-moz-transition: opacity 200ms ease;
-ms-transition: opacity 200ms ease;
-o-transition: opacity 200ms ease;
transition: opacity 200ms ease;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
border-radius: 30px;
}
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span {
background: #4dc7a0;
}
58 changes: 58 additions & 0 deletions static/css/owlcarousel2/owl.video.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
* Owl Carousel - Video Plugin
*/
.owl-carousel .owl-video-wrapper {
position: relative;
height: 100%;
background: #000;
}
.owl-carousel .owl-video-play-icon {
position: absolute;
height: 80px;
width: 80px;
left: 50%;
top: 50%;
margin-left: -40px;
margin-top: -40px;
background: url("owl.video.play.png") no-repeat;
cursor: pointer;
z-index: 1;
-webkit-backface-visibility: hidden;
-webkit-transition: scale 100ms ease;
-moz-transition: scale 100ms ease;
-ms-transition: scale 100ms ease;
-o-transition: scale 100ms ease;
transition: scale 100ms ease;
}
.owl-carousel .owl-video-play-icon:hover {
-webkit-transition: scale(1.3, 1.3);
-moz-transition: scale(1.3, 1.3);
-ms-transition: scale(1.3, 1.3);
-o-transition: scale(1.3, 1.3);
transition: scale(1.3, 1.3);
}
.owl-carousel .owl-video-playing .owl-video-tn,
.owl-carousel .owl-video-playing .owl-video-play-icon {
display: none;
}
.owl-carousel .owl-video-tn {
opacity: 0;
height: 100%;
background-position: center center;
background-repeat: no-repeat;
-webkit-background-size: contain;
-moz-background-size: contain;
-o-background-size: contain;
background-size: contain;
-webkit-transition: opacity 400ms ease;
-moz-transition: opacity 400ms ease;
-ms-transition: opacity 400ms ease;
-o-transition: opacity 400ms ease;
transition: opacity 400ms ease;
}
.owl-carousel .owl-video-frame {
position: relative;
z-index: 1;
height: 100%;
width: 100%;
}
Loading