PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

Module Carrousel simple "Crea-rousel" V1.0 MAJ.

48 replies to this topic
#1
m1bs

    PrestaShop Apprentice

  • Members
  • PipPip
  • 419 posts
Hello à tous,

Voici vraiment une petite extension carrousel pour l'accueil qui pourra peut-être plaire à certains.
Je suis conscient qu'il y a des moteurs bien meilleurs mais celui-ci à l'avantage d'être mis en place par n'importe qui car il faut juste remplacer un seul fichier.

Après pour les pros vous devriez pouvoir customiser le fichier sans trop de problème ^^

Voilà :
http://creation-shop...-prestashop.php


A bientôt

#2
retrospecter

    PrestaShop Apprentice

  • Members
  • PipPip
  • 36 posts
Hello.
You could adapt this module to the heads of the categories.
would be very well in the categories replacing the image.
Is it would be very difficult to adapt?
Thank you.
a greeting.

#3
ejectcore

    PrestaShop Addict

  • Members
  • PipPipPip
  • 827 posts
Hello m1bs
would you mind if I make a few changes to this module by separating it from the editorial block & using an array to pull in the product with maybe a few admin configuration options. this is a great module but i would like to adapt this a little further & translate into English if this is OK with you :question:

Retrospecter categories is a good idea I would like to have a go at developing this option ;-)
Filter Search 2.1 Enterprise Edition Now Available

Available Soon
Filter Search 2.1 Lite Edition

Follow us on twitter

#4
m1bs

    PrestaShop Apprentice

  • Members
  • PipPip
  • 419 posts
hello

for retrospecter : i have add on site a second module for 4 category, you can download this file.

for alphamedia : tank you, you can modify my module it's ok for me.

I have not connect this module with the zone admin because I do not know all the parameters of functioning of prestashop for modules ( no documentation for the full configuration for a module )

Sorry i speak a little english %-P

#5
showtime

    PrestaShop Apprentice

  • Members
  • PipPip
  • 171 posts
Salut, merci pour ton module , il à l'air génial, cependant il ne fonctionne pas sur ma boutique à cause d'une erreur mysql .

la voici :

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /customers/oct-tech.be/oct-tech.be/httpd.www/boutique/modules/editorial/editorial.php on line 6


mon serveur me fait le meme coup avec le modul homecaroussel , je pense donc que sa vient de mon hebergeur . j'ai demandé pour savoir si les requetes mysql_fetch_array(): et mysql_fetch_acces(): etaient bloquées je suis en attentes de la réponse . Mais y aurait-il un moyen de contourner ce probleme via une autre requetes ou que sais-je ?

Merci
Merci à Prestashop et à sa communauté

#6
retrospecter

    PrestaShop Apprentice

  • Members
  • PipPip
  • 36 posts
Hello m1bs.
There has misunderstood me.
I do not want to use the images of the categories.
I want to use the module replacing the image of the category.
Showing new products in categories.
I do not know if I explain well.
my English is also very bad.

The module works, but I always take the same images.

thanks.
a greeting.

Attached Files



#7
ejectcore

    PrestaShop Addict

  • Members
  • PipPipPip
  • 827 posts
Please be patient I will be improving this module in the next few days inspired by m1bs creation & not forgetting dynamic-drive ;-)
I have already now managed to work this into an array which fetches from the sql query looping the array using foreach

New features will include

1) Independent module
2) Module configuration in the admin
(this will include a drop-down option for the categories or products & input field for the number of items to display)

With so many changes mad from the original module I may have to post this in a separate topic :lol:
there are so many different mods we can take advantage of to use integrate with prestashop take
(ajaxrain.com) for instance

When I eventually get some free time I intend to develop at least one monthly module to donate to this community
WATCH out for my monthly polls
Filter Search 2.1 Enterprise Edition Now Available

Available Soon
Filter Search 2.1 Lite Edition

Follow us on twitter

#8
showtime

    PrestaShop Apprentice

  • Members
  • PipPip
  • 171 posts
good news alpha media,

But what can i do for my array mysql problem ??
Merci à Prestashop et à sa communauté

#9
junnecito

    PrestaShop Fanatic

  • Moderators
  • 1193 posts
amwdesign:
When you finish the module send it to me to traslate it to spanish.
Thanks ;-)

#10
retrospecter

    PrestaShop Apprentice

  • Members
  • PipPip
  • 36 posts
Hello again m1bs.
The problem of the images, was by caches. It works perfect.

Is it could take away the images that put in a folder?
Loading the images that we want and not from new products

thanks.
a greeting.

Attached Files



#11
m1bs

    PrestaShop Apprentice

  • Members
  • PipPip
  • 419 posts
Hello !

Pour showtime :
En te connectant à la base de donnée mysql tu arrives à effectuer cette requête ? : SELECT id_image, id_product FROM ps_image GROUP BY id_product order by id_image desc LIMIT 6
La requête doit pouvoir s'effectuer, sinon après un mysql_fetch_array() est effectué dans le script à voir si l'hébergeur accepte cela (normalement oui)

for retrospecter :
Yes you can modifiy the script for a folder, modifiy

lines : 14-19
$img1 = "img/mypicture1.jpg"; 
$img2 = "img/mypicture2.jpg";
$img3 = "img/mypicture3.jpg";
$img4 = "img/mypicture4.jpg";


You can add, pictures example in img/


lines : 31-34
    "<?php echo $img1; ?>",<?php echo $_SERVER['REQUEST_URI'];?>+"product.php?id_product=YOUR_ID",
"<?php echo $img2; ?>",<?php echo $_SERVER['REQUEST_URI'];?>+"product.php?id_product=YOUR_ID"
"<?php echo $img3; ?>",<?php echo $_SERVER['REQUEST_URI'];?>+"product.php?id_product=YOUR_ID",
"<?php echo $img4; ?>",<?php echo $_SERVER['REQUEST_URI'];?>+"product.php?id_product=YOUR_ID"


You can edit the ID YOUR_ID of your category, you can test, you go in category IPOD and see the ID in url.
Example :
http://localhost/mpa...p?id_category=2
"<?php echo $img2; ?>",<?php echo $_SERVER['REQUEST_URI'];?>+"product.php?id_product=2"


#12
showtime

    PrestaShop Apprentice

  • Members
  • PipPip
  • 171 posts
Comment faire cette requete , je suis bien connecter à mon mysql mais ensuite je ne sais pas quoi entrer ni ou dans requete, il y a tellement de champs ...? un peu plus de détail stp
Merci à Prestashop et à sa communauté

#13
retrospecter

    PrestaShop Apprentice

  • Members
  • PipPip
  • 36 posts
Hello m1bs.
Thank you very much.
What images of works perfect. Now come the pictures I want.
What you explain to me of the categories not I understand it very well.
I will hope to that amwdesign, modifies the module.
For now with what you said to me the images I have enough.
Thank you very much.

#14
m1bs

    PrestaShop Apprentice

  • Members
  • PipPip
  • 419 posts
Hello,

$img1, $img2, = picture1, picture2 ...

The picture has a URL, you need write manual in line 31 bis 34 the url.

Example:
I clic in category IPOD my url is :
http://www.mysite/pr...hp?id_category=2
Ho ? my id is 2

I can write my url for my picture1 ( this is a IPOD picture ) on line 31 for picture1
echo $img1; ?>",<?php echo $_SERVER['REQUEST_URI'];?>+"category.php?id_category=2";

#15
retrospecter

    PrestaShop Apprentice

  • Members
  • PipPip
  • 36 posts
OK.
Thank you very much.

#16
showtime

    PrestaShop Apprentice

  • Members
  • PipPip
  • 171 posts
m1bs Have help me , and this caroussel work .

I want to thanks him for his job .

But I wait the module of Alpha media for more parameter .

do you know when you can develop this module?

I want to say you a detail : dont forget , some user dont install prestashop database with defaut prefix ( ps_ ) (is my case ....)

So please automate the search of the prefix for fix the path problem .
Merci à Prestashop et à sa communauté

#17
netjet

    PrestaShop Apprentice

  • Members
  • PipPip
  • 31 posts
Bonjour,

A quoi ressemble le carroussel? Je n'arrive pas à accéder au site de creation-shop.

Merci pour le boulot les gars!

Ok c'est bon je l'ai installé tout fonctionne parfaitement, merci quand meme pour les réponses ;)

Et au fait comment faire pour choisir les produits à faire défiler dans le caroussel, et non pas nouveaux produits.

#18
retrospecter

    PrestaShop Apprentice

  • Members
  • PipPip
  • 36 posts
Hello everyone.
I upgraded my shop to version 1 of prestashop stable.
The module has stopped working.
The module will not load in Firefox and Opera. If load in Safari and Internet Explorer 7.
I have reviewed the console errors Firefox. It shows the following errors.
How can we remove them.
look captures.
The first is with the previous version of the store RC5.
The second version is now stable 1.

Attached Files



#19
m1bs

    PrestaShop Apprentice

  • Members
  • PipPip
  • 419 posts
Hello,

Yes the module have a probleme with this version 1.0

I analyse the bug in the day.

Bye

#20
m1bs

    PrestaShop Apprentice

  • Members
  • PipPip
  • 419 posts
I have add a new version for the V 1.0

You can test this version.