Jump to content

1.6 Manufacturer Slider Carousel


Recommended Posts

  • 1 month later...

hallo.

 

i'm testing one manufacturer slider for prestashop 1.6

 

i had to edit an old manufactures slide for compatibility with new PS.

 

now i have only to fix IE 11 compatibility. with chrome, safari, and ie11 compatibility mode all is ok.

 

if i'll solve IE11 compatibility issue, i'll put the code here. :/ it's a bit hard :D

  • Like 1
Link to comment
Share on other sites

Try this one. It's made for 1.6

 

attachicon.giftommatobrands.zip

 

- i tried to download and install but i can't find it in installed module...

 

anyway i found tommato brands block in the PS module catalogue, installed and it works (i get broken image source but i will figure it out myself)

but if i add this module in displayHome position i get the error:

"Fatal error: Call to undefined method TommatoBrands::hookTopColumn()"

Link to comment
Share on other sites

there is an issue

change

	public function hookDisplayHome($params)
	{
		return $this->hookTopColumn($params);
	}
	
	public function hookDisplayHomeTabContent($params)
	{
		return $this->hookTopColumn($params);
	}

to

	public function hookDisplayHome($params)
	{
		return $this->hookDisplayTopColumn($params);
	}
	
	public function hookDisplayHomeTabContent($params)
	{
		return $this->hookDisplayTopColumn($params);
	}
  • Like 1
Link to comment
Share on other sites

 

there is an issue

change

	public function hookDisplayHome($params)
	{
		return $this->hookTopColumn($params);
	}
	
	public function hookDisplayHomeTabContent($params)
	{
		return $this->hookTopColumn($params);
	}

to

	public function hookDisplayHome($params)
	{
		return $this->hookDisplayTopColumn($params);
	}
	
	public function hookDisplayHomeTabContent($params)
	{
		return $this->hookDisplayTopColumn($params);
	}

 

i solved, thanks

as you can see i get broken link, the module has that wrong format: 7-manufacturer_default.jpg

the images has name [id]-[large,medium,small]_default.jpg (ex: 7-large_default.jpg)

could you fix that? in 74th row i tried, but i cant solve

post-748713-0-23386800-1399313051_thumb.gif

Edited by alfredopacino (see edit history)
Link to comment
Share on other sites

so, instead of link like:

http://XXXXitalia.it/zarrillo/img/m/3-manufacturer_default.jpg 

it should be like:

http://XXXXitalia.it/zarrillo/img/m/3-medium_default.jpg

try to change line:

if (file_exists(_PS_MANU_IMG_DIR_.$manufacturer['id_manufacturer'].'-'.ImageType::getFormatedName('medium').'.jpg'))

to

if (file_exists(_PS_MANU_IMG_DIR_.$manufacturer['id_manufacturer'].'-'.ImageType::getFormatedName('medium_default').'.jpg'))
Link to comment
Share on other sites

 

so, instead of link like:

http://XXXXitalia.it/zarrillo/img/m/3-manufacturer_default.jpg 

it should be like:

http://XXXXitalia.it/zarrillo/img/m/3-medium_default.jpg

try to change line:

if (file_exists(_PS_MANU_IMG_DIR_.$manufacturer['id_manufacturer'].'-'.ImageType::getFormatedName('medium').'.jpg'))

to

if (file_exists(_PS_MANU_IMG_DIR_.$manufacturer['id_manufacturer'].'-'.ImageType::getFormatedName('medium_default').'.jpg'))

 

uhm i tried but i can't see any difference (i have smarty cache off and tried to reset the module)

what should i do for "reload" the php code?

Link to comment
Share on other sites

I didn't want squared images for manufacturers so i made new type manufacturer_default in BO > preferences > images and select Manufacturers

So, in .tpl file i set it to use : manufacturer_default.jpg

<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'html'}" title="{l s='More about %s' sprintf=[$manufacturer.name] mod='blocktommatobrands'}"><img class="img-responsive" src="{$img_manu_dir}{$manufacturer.id_manufacturer}-manufacturer_default.jpg" alt="{$manufacturer.name}"  /></a>

Change manufacturer_default.jpg to whatever type of pic you want or make new type of image called manufacturer_default

Link to comment
Share on other sites

  • 2 weeks later...

work for me 1.6 as well , 

tommatobrands.php

$manufacturer['image'] = $this->context->language->iso_code.'-default';
				if (file_exists(_PS_MANU_IMG_DIR_.$manufacturer['id_manufacturer'].'-'.ImageType::getFormatedName('medium_default').'.jpg'))

tommatobrands.tpl

<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'html'}" title="{l s='More about %s' sprintf=[$manufacturer.name] mod='blocktommatobrands'}"><img class="img-responsive" src="{$img_manu_dir}{$manufacturer.id_manufacturer}-medium_default.jpg" alt="{$manufacturer.name}"  /></a>

Very thanks for this module!

Edited by Ron morales (see edit history)
Link to comment
Share on other sites

Hello, this is a Free Manufacturer Slider (Carousel) from Sport Shoes Template by Leo Themes.

Responsible and Compatible with both PS 1.5 and 1.6.

 

Just unzip and put the folder lofmanufacturerscroll2 in Prestashop Modules folder (not in themes).

After this, go to Backoffice and click Install. Customize it as you want.

 

See it in my store: www.invictus-suplementos.com.br

Oh, that beautiful One Page Checkout in my site is the module by Presteam:

http://www.presteamshop.com/en/modules-prestashop/one-page-checkout-prestashop.html

lofmanufacturerscroll2.zip

Link to comment
Share on other sites

Hello, this is a Free Manufacturer Slider (Carousel) from Sport Shoes Template by Leo Themes.

Responsible and Compatible with both PS 1.5 and 1.6.

 

Just unzip and put the folder lofmanufacturerscroll2 in Prestashop Modules folder (not in themes).

After this, go to Backoffice and click Install. Customize it as you want.

 

See it in my store: www.invictus-suplementos.com.br

Oh, that beautiful One Page Checkout in my site is the module by Presteam:

http://www.presteamshop.com/en/modules-prestashop/one-page-checkout-prestashop.html

 

you can see in homepage tommato module and lofmanufacturerscroll2..

both generates a broke src image.. :blink:

post-748713-0-61469900-1401740114_thumb.gif

Link to comment
Share on other sites

work for me 1.6 as well , 

tommatobrands.php

$manufacturer['image'] = $this->context->language->iso_code.'-default';
				if (file_exists(_PS_MANU_IMG_DIR_.$manufacturer['id_manufacturer'].'-'.ImageType::getFormatedName('medium_default').'.jpg'))

tommatobrands.tpl

<a href="{$link->getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'html'}" title="{l s='More about %s' sprintf=[$manufacturer.name] mod='blocktommatobrands'}"><img class="img-responsive" src="{$img_manu_dir}{$manufacturer.id_manufacturer}-medium_default.jpg" alt="{$manufacturer.name}"  /></a>

Very thanks for this module!

 

Have you changed this?

  • Like 1
Link to comment
Share on other sites

Sorry guys but i found out that with last update some files didn't copy as they should so i uploaded it again.

 

This module was made for my custom theme so maybe some explanation:

 

As default module will install into displayTopColumn hook which can make some problems with defaut 1.6 theme.

You can transplant it to displayHome hook and it should work with some minor css tweaks.

Link to comment
Share on other sites

  • 1 month later...

Try this one. It's made for 1.6

 

Updated again 07 .jun. 2014!

 

attachicon.giftommatobrands.zip

 

First of all, thanks fo sharing this nice module. Do you the author of this module? Can I use some parts of code of this module and make my own, include it in my theme and then sell it on themeforest with my  copyright?

Edited by RoyVelvet (see edit history)
Link to comment
Share on other sites

First of all, thanks fo sharing this nice module. Do you the author of this module? Can I use some parts of code of this module and make my own, include it in my theme and then sell it on themeforest with my  copyright?

Not actual. I make my own module by myself.

Link to comment
Share on other sites

Updated again so now it should work with default 1.6.0.6 theme without problem.

Thanks for sharing the module! It works fine on PS1.6.0.9, with slight problem. 

I try to explain what's the problem.

1. BO,

When changing values in the BO, it says Notice on line 105 in file ***\tommatobrands.php

[8]undefined variable:text_list
I just ignored it.
2. FO
The first slide moves all right, but the second moves fast and change to the third immediately. Even if I try to manually click on previous or next, the slide does not stay. 
On the whole, I shall consider it's working.
Thanks!
Kent
Link to comment
Share on other sites

  • 2 weeks later...

Hi, 

I am experiencing a little bit weird thing about this module.

It works perfect on local server, but when I uploaded to online server, the arrow for previous and next is gone, instead, there is text previous and next showing under the image. 

Tried to disable and enable the module, no change.

Dont know why. 

Link to comment
Share on other sites

Try to turn off and on CCC

Solved the problem of direction of the pictures by uninstall, install and live edit. 

But the problem with text "previous, next" still persists. 

Would you be able to take a look at it again? The address is smarterbuytonga.com.

Thanks a lot!

Kent

Link to comment
Share on other sites

Images aren't there because every theme may have it's own images and positions of them.

To make simple left - right arrows you can do something like this:

 

Open tommatobrands.css and add this code:

.bx-controls a.bx-prev:before, .bx-controls a.bx-next:before{
    content:"\f0d9";
    font-family: "Fontawesome";
    font-size: 25px;
    height: 30px;
    width: 30px;
}

.bx-controls a.bx-next:before{
    content:"\f0da";
}

.bx-controls a.bx-prev span, .bx-controls a.bx-next span{
    display:none;
}

Maybe you'll need a bit of tweaking but make this first and we will see what to do next

Link to comment
Share on other sites

Images aren't there because every theme may have it's own images and positions of them.

To make simple left - right arrows you can do something like this:

 

Open tommatobrands.css and add this code:

.bx-controls a.bx-prev:before, .bx-controls a.bx-next:before{
    content:"\f0d9";
    font-family: "Fontawesome";
    font-size: 25px;
    height: 30px;
    width: 30px;
}

.bx-controls a.bx-next:before{
    content:"\f0da";
}

.bx-controls a.bx-prev span, .bx-controls a.bx-next span{
    display:none;
}

Maybe you'll need a bit of tweaking but make this first and we will see what to do next

Thanks for your help!

The weird thing is that I migrated my local testing site to online server, which means should be the same. It works perfect on local wamp server, anyway.

Tried the above code, seems not working. Maybe I just remove previous and next, which is much easier for me. 

Thanks

Kent

Link to comment
Share on other sites

Ah now i see, your site doesn't load tommatobrands.css. Check if you have it in module folder on server

 

Yes, I am sure it is on the server. 

Anything to do with permissions? I am attaching two screenshots for your reference. 

Thanks

post-734648-0-06015800-1408397818_thumb.jpg

post-734648-0-22076600-1408397825_thumb.jpg

Link to comment
Share on other sites

No, it needs to be there

This module is at displayheader and displayhome. No problem with this as well? 

So it is easier for me just to remove the text from the file cause the images are going to slide anyway.

Link to comment
Share on other sites

That's weird. I just downloaded module from PS forum and installed on my 1.6.0.9 test site and it works without problem

Hello, Thanks for the module, i install it and it works ok, its just behaving a bit weird because the rotation of the images is quite random it would show 7 logos then roll 2 places and then speed up and jump to a different logo, i have 21 logos showing in total. Is there anything i can do to make the rotation regular? Thanks

Link to comment
Share on other sites

modules > positions

search module on modules lists there (associated with hooks)

and then click edit icon

you willl see there exceptions section, select all instead of "index"

it means that module will appear only on "index" page (index = homepage)

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 2 weeks later...
  • 1 month later...
  • 1 month later...
×
×
  • Create New...