Jump to content

[SOLVED] Adding Another Carousel


Recommended Posts

Hi Folks (and hopefully rocky),

I have the carouselnc module installed on my homepage and thanks to rocky's programming it works great. I would like to add another carouselnc in my Sustainability page, which is inside of my Informations Block. This will have different images than those on my homepage. My website is www.pekinparadise.com. Can I install a new carousel module? If so, what is the URL link that I can use to link it into my Sustainability page?

Thanks for your ideas.

Walt

Link to comment
Share on other sites

You'll need to copy my module and rename the files so that PrestaShop treats it as a separate module. Copy the carouselnc directory to carouselnc2, then rename carouselnc.php to carouselnc2.php, then change:

class CarouselNC



to:

class CarouselNC2



and:

$this->name = 'carouselnc';



to:

$this->name = 'carouselnc2';



and:

$this->displayName = $this->l('Carousel');



to:

$this->displayName = $this->l('Carousel 2');



Once you've done this, you can go put different images in modules/carouselnc2 than modules/carouselnc and go to the Modules tab and install Carousel 2 and put it in a different hook than Carousel. Unfortunately, there is no hook on the CMS pages though, so you'll need to add one. I suggest that you put it in the "Product footer" hook, since you aren't using it at the moment. Edit cms.php and add the following before the $smarty->display:

if ($cms->id == 5)
  $smarty->assign('HOOK_PRODUCT_FOOTER', Hook::productFooter(NULL, NULL));



Then edit cms.tpl in your theme's directory and add the following code on line 7 before {$cms->content}:

{if $HOOK_PRODUCT_FOOTER}{$HOOK_PRODUCT_FOOTER}{/if}



This should display the new carousel at the top of CMS page 5 only.

Link to comment
Share on other sites

  • 1 month later...

I tried your solution. But acutally, it doesn't work. In my second slideshow, the pictures wont be displayed. When I put them in the folder of my first slideshow (carouselnc/agile_carousel_slides-order), everything works fine. But then, they appear also in my first slideshow... What's the problem?

Link to comment
Share on other sites

  • 1 month later...

Hi pekinparadise,

I saw your website, nice!
I heave a questiosen: I also have a carousel but i want to remove the watermark and the text: JQuery carousel plugin.
Futhermore when i click on the images, i get a strange tabel that i don't want.

Can you maybe help me with this?

thx!!!! steffie

Link to comment
Share on other sites

Hi pekinparadise,

I saw your website, nice!
I heave a questiosen: I also have a carousel but i want to remove the watermark and the text: JQuery carousel plugin.
Futhermore when i click on the images, i get a strange tabel that i don't want.

Can you maybe help me with this?

thx!!!! steffie


1. For the watermark you can go to carouseInc.tpl then change the water_mark: "yes" to water_mark: "no".

2. For the text: JQuery carousel plugin.Futhermore, you can go to carouseInc-min.css, then find the #slide_captions span. Insert display:none; .

I think it should be done. :)
Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...