Forum PrestaShop

Il Forum di PrestaShop è lo spazio in cui puoi condividere con la comunità di PrestaShop consigli pratici sull'e-commerce e trovare la risposta a tutte le domande tecniche e funzionali.

Forum PrestaShop

Jump to content

[MODULE] Thumb Popup

48 replies to this topic
#1
caparuni

    PrestaShop Apprentice

  • Members
  • PipPip
  • 292 posts
after awhile without posting a module, now im back with new module and of course its free to you all

well this module is another image enlarger, so when user mouse over the thumb image then the larger image will come in the popup. the popup itself will take position relative to your mouse pointer / screen size.
enjoy and see a live demo at chenoel.com. special credit to razaro for helping me out

note: now its worked with jQuery 1.2.6 (ps default), no need to update your jQuery

WARNING:
this module is a thankyouware so say thank you is a must and send some donation is a hope

Attached Files


[mod-id] Prestashop for Indonesian

kartunama.biz chenoel.com

phpMyAdmin / File Explorer / Thumb Popup
please send donation to support me making free modules. check my profile for complete module list

#2
Ehinarr

    Sir

  • Members
  • PipPipPipPip
  • 1134 posts
Thanks for sharing your module. Just one question: How do the image disappears (close)?
My Blog
PS v1.4.7.0

#3
caparuni

    PrestaShop Apprentice

  • Members
  • PipPip
  • 292 posts
when mouse out should be close itself
[mod-id] Prestashop for Indonesian

kartunama.biz chenoel.com

phpMyAdmin / File Explorer / Thumb Popup
please send donation to support me making free modules. check my profile for complete module list

#4
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts
THANK YOU !

Works but they are somme problems updating jQuery ( Ajax cart and other problems )

Join request for update:

http://www.prestasho...cker/view/3304/

#5
caparuni

    PrestaShop Apprentice

  • Members
  • PipPip
  • 292 posts
yeah ive notice it last night... :(
sure im gonna vote for this
[mod-id] Prestashop for Indonesian

kartunama.biz chenoel.com

phpMyAdmin / File Explorer / Thumb Popup
please send donation to support me making free modules. check my profile for complete module list

#6
razaro

    PrestaShop Addict

  • Members
  • PipPipPip
  • 954 posts
I changed this code in thumbpopup.js from
        //Attach hover events that manage the popup
$(this)
.hover(setPopup)
.mousemove(updatePopupPosition)
.mouseleave(hidePopup);


to
        //Attach hover events that manage the popup
$(this)
.hover(setPopup,hidePopup)
.mousemove(updatePopupPosition);


And now it is working with Prestashop jQuery 1.2.6 .
Also it is hiding image correctly and doesn't report any js error for me.

#7
caparuni

    PrestaShop Apprentice

  • Members
  • PipPip
  • 292 posts
@razaro
well, again thank you from the bottom of my heart... people razaro is one of the best js programer ive ever know, he always clean-up my mess :kiss:
[mod-id] Prestashop for Indonesian

kartunama.biz chenoel.com

phpMyAdmin / File Explorer / Thumb Popup
please send donation to support me making free modules. check my profile for complete module list

#8
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts
strange I don't have exactly the same code

        //Attach hover events that manage the popup
$(this)
.hover(setPopup)
.mousemove(updatePopupPosition)
.mouseout(hidePopup);



Modify the code is OK but the Popup doesn't close when mouse out !!!

#9
caparuni

    PrestaShop Apprentice

  • Members
  • PipPip
  • 292 posts
change it like razaro trick...
already fixed on v0.2
[mod-id] Prestashop for Indonesian

kartunama.biz chenoel.com

phpMyAdmin / File Explorer / Thumb Popup
please send donation to support me making free modules. check my profile for complete module list

#10
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts
OK with new file

#11
razaro

    PrestaShop Addict

  • Members
  • PipPipPip
  • 954 posts
jolvil

Can you post/PM link to your website to check it out or is it on local server ?

EDIT: OK I see you fixed :-)

#12
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts
I've just noticed a little problem with another very popular module: MGC Home Carrousel http://www.prestasho...iewthread/10924 . Pictures of this module popup but they should'nt and they do it a bad way.

#13
caparuni

    PrestaShop Apprentice

  • Members
  • PipPip
  • 292 posts
@jolvil
url please so i can check it out
[mod-id] Prestashop for Indonesian

kartunama.biz chenoel.com

phpMyAdmin / File Explorer / Thumb Popup
please send donation to support me making free modules. check my profile for complete module list

#14
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts
OK, change in thumbpopup.js

popupCSS: {'border': '1px solid #000000', 'background': '#FFFFFF'},

to

popupCSS: {'border': '1px solid #000000', 'background': '#FFFFFF', 'z-index': '999'},

is a bit better but should be better with no pop up on it

#15
caparuni

    PrestaShop Apprentice

  • Members
  • PipPip
  • 292 posts
#thumbPopup { z-index:250; }

put this on your global.css
[mod-id] Prestashop for Indonesian

kartunama.biz chenoel.com

phpMyAdmin / File Explorer / Thumb Popup
please send donation to support me making free modules. check my profile for complete module list

#16
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts

Quote

#thumbPopup { z-index:250; }

put this on your global.css


It works but the not better than css in thumbpopup.js wich is more usefull because don't need to change global.css when install the module.



I prefer to not have a pop up with a similar image in size on MGC Home Carrousel module, how to not have the popup on these pictures when thumb popup is runing?

#17
caparuni

    PrestaShop Apprentice

  • Members
  • PipPip
  • 292 posts
the problem is carousel and featured product using same class (.product_image)
so to made popup didnt shown on carousel is simple just rename the class name on the tpl file

take a look on thumbpopup.tpl
$('a.product_image img, a.product_img_link img').thumbPopup({


this line handle wich container is gonna popup when mouse-over
[mod-id] Prestashop for Indonesian

kartunama.biz chenoel.com

phpMyAdmin / File Explorer / Thumb Popup
please send donation to support me making free modules. check my profile for complete module list

#18
jolvil

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 2706 posts
OK thanks, I just removed one.

I think it could be interesting to set up in admin wich class or classes are going to be used for this module. What do you think about?

#19
caparuni

    PrestaShop Apprentice

  • Members
  • PipPip
  • 292 posts
maybe on next version
[mod-id] Prestashop for Indonesian

kartunama.biz chenoel.com

phpMyAdmin / File Explorer / Thumb Popup
please send donation to support me making free modules. check my profile for complete module list

#20
ysco

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 1015 posts
Thanks caparuni for this module.
Will try it out, also thanks to razaro.

ysco..