Jump to content

[solved] how to change images size with three different themes on multistore?


Recommended Posts

hello,

 

i have a multistore with three shops and three different themes, and most of the product images are same for all shops... (that's why i like "multistore" feature it's simple to use one backoffice)

the problem is all of my themes have three different size of images settings... so when i regenerate image for shop1, the other shops have the same images size too... which is not good for me (makes my website looks horrible)...

 

is there any way to set images size per shop/theme?

or maybe can i change the image type per theme like :

 

"large_default" to> "large_shop1" (on theme1)

"large_default" to> "large_shop2" (on theme2)

"large_default" to> "large_shop3" (on theme3)

 

so i can regenerate images for each theme (1,2,3) with three different images size..

anybody knows what files should i edit?

 

note : i buy all those themes at templatemonster.com and it's impossible to contact the developer...

 

i wish there's a solution for this problem, so i can continue develop my website...

thank you in advance :)

Link to comment
Share on other sites

Hi El Patron,

 

of course i already try that settings so many times... PS 1.5.2, i try fresh install PS 1.5.6.1 (local) and install two themes, try to apply image preferences settings again, regenerate, but still not working...

 

is there something wrong with all my themes?

 

well I'm going to try PS 1.5.3 tomorrow ... the changelog says that this bug is fixed...

i hope this works...

 

anyway, thanks for your reply El Patron :)

Link to comment
Share on other sites

Hi El Patron,

 

of course i already try that settings so many times... PS 1.5.2, i try fresh install PS 1.5.6.1 (local) and install two themes, try to apply image preferences settings again, regenerate, but still not working...

 

is there something wrong with all my themes?

 

well I'm going to try PS 1.5.3 tomorrow ... the changelog says that this bug is fixed...

i hope this works...

 

anyway, thanks for your reply El Patron :)

 

yes, please let us know how you get along with this.  It's an important subject.

Link to comment
Share on other sites

Hello El Patron,

 

thank you for following me up about this topic, after i tried to install prestashop 1.5.3 and try to setting image size each shop at preferences>image>shop1/shop2/shop3 and still no solution (the image size of each custom theme are still the same) so i found another way to do this.

 

like i said before, so i create new images type of each shop, e.g: thickbox_shop1, thickbox_shop2, then i edit the .tpl files on each custom theme folder and module folder (each custom theme too) "thickbox_default" to> "thickbox_shop1/2/3" and regenerate all images... well it works...

 

so the conclusion is, custom theme developer should create a new custom image type for every custom theme and create the .tpl files for each theme/modules they used.

 

i don't know why this could happen to my theme (because all theme from same developer "hermes" at templatemonster.com) so i have no clue, i don't have another theme.

 

or maybe you can post a tutorial about how to apply different image size for different custom  theme on multistore, i think maybe some of people have same problem as i am. so your tutorial can help us :)

 

Thank You ... :)

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

Hi sansysasmita,

I have the same problem with my three shops. Which .tpl file need to be modified exactly?

 

hello vans, sorry for late reply,

the first thing you have to do is you must create new image type AND images size for your each theme at the preferences>image at your back office...

ex:

small_theme1,

home_theme1,

medium_theme1....

 

small_theme2,

home_theme2,

medium_theme2...

etc...

after you create new image type, you should regenerate images again.

 

the .tpl files need to modified are in the themes folder of your site... ( public_html/themes/theme1 )

and so the .tpl file in your modules folder of your theme. ( public_html/themes/theme1/modules ) because every theme use different modules, so i cant tell you what excactly file name you should edit

just search every .tpl files that contain word "_default" .

and then you have to modify that .tpl files according to image type that you just create.

 

this is should be like:

original code:

<img src="{$img_cat_dir}default-medium_default.jpg" alt="" />

 

change to

<img src="{$img_cat_dir}default-medium_theme1.jpg" alt="" />

 

after you finished editing, go to your site, refresh, and you should see the image in the correct size.

 

and if you want to apply different watermark for each theme, just configure the watermark module at your back office, and i think you will know what to do there... :)

 

remember to BACKUP your site first before doing any changes to your code.

 

hope this help you ...

sorry for my bad english... :P

cheers.

Edited by sandysasmita (see edit history)
  • Like 3
Link to comment
Share on other sites

Hi sandysasmita,

thank you for your reply and for your instruction. After a little bit of "meditation" I already went to the conclusion that you could not supply me a list of files since they change due different themes and module, so I started to search manually for each of them and made the correction you did (I totally modified about 15 files)

 

Works perfectly. Thank you for the tip.

  • Like 1
Link to comment
Share on other sites

Hi sandysasmita,

thank you for your reply and for your instruction. After a little bit of "meditation" I already went to the conclusion that you could not supply me a list of files since they change due different themes and module, so I started to search manually for each of them and made the correction you did (I totally modified about 15 files)

 

Works perfectly. Thank you for the tip.

im glad you made it...

and your welcome vans :)

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

This problem still persists in 1.5.6.2. Is this fixed in 1.6 yet?

 

For now, I guess it will be manual fixes through the .tpl files then...

see the following open forge report.  Please login and vote this issue 'up'.  Add comment to support getting this fixed.  Not sure why it was changed from a bug to a feature request when obviously one can select the shop they want to work with making one assume by shop image size is supported.

 

http://forge.prestashop.com/browse/PSCFV-11950

 

regards, el

  • Like 1
Link to comment
Share on other sites

see the following open forge report.  Please login and vote this issue 'up'.  Add comment to support getting this fixed.  Not sure why it was changed from a bug to a feature request when obviously one can select the shop they want to work with making one assume by shop image size is supported.

 

http://forge.prestashop.com/browse/PSCFV-11950

 

regards, el

 

+1 vote and comment, thanks!

  • Like 2
Link to comment
Share on other sites

  • 5 months later...

In MultiShop 1.6.0.8 why only super admin can change themes. As even after giving permission for store profile to select themes. Every store can't have selection of theme as per the choice.It shows select one shop even after the theme is been selected by single store. Is this a bug?

 

this is off topic, please make sure in the future to post on topic.  you have already one warning for spamming.

Link to comment
Share on other sites

  • 2 years later...
  • 1 year later...

Hey, 

we are currently experienceing this issue with our 1.6 installation. We have 8 Subshop and are getting in trouble with that. I cant also really find a solution so far. Anyone have more information or a solution for this problem which not involves editing all templates on multiple places?

Thank you very much!

Link to comment
Share on other sites

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...