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] Croll Custom CSS

12 replies to this topic
#1
beve

    PrestaShop Apprentice

  • Members
  • PipPip
  • 43 posts
Hi,

A new module which let you include CSS files on each page according to different params:

. The name of the php file
. The value of variables

For example i can include beautiful.css on all pages, product_special.css only for products which id 3 and 4, content_magnifier.css to sitemap.php, my_custom_page.php and CMS page with id 3. Etc.

Here the process in images:

Choose CSS file
Posted Image

Edit "hooks":
Posted Image

List:
Posted Image

At this time, there is no interface for CSS upload. You need to put them in the "css" folder of the module.

Only tested with Prestashop 1.3. Let me now if it doesn't work with previous versions.
This module is in beta version and licensed under GPLv2.

You can download it here.

Original post on the french forum.

Use, hack and comment :)

#2
21846657

    PrestaShop Fanatic

  • Moderators
  • 1140 posts
Thank you for this awesome contribution. I think it is a really cool module. I can make a magic looking shop!

* 欢迎访问PrestaShop官方中文论坛

* 搜索是你的朋友。提问之前请善用搜索引擎和论坛搜索。

* 未获得帮助?——请详述问题,提供PrestaShop版本、运行环境(Web Server/PHP/MySQL)、浏览器类型等必要信息。

* 如果问题解决了,请为你的帖子标题加上[已解决]。谢谢。

#3
Ehinarr

    Sir

  • Members
  • PipPipPipPip
  • 1134 posts
So cool!
My Blog
PS v1.4.7.0

#4
beve

    PrestaShop Apprentice

  • Members
  • PipPip
  • 43 posts
Happy if it is useful.

New version which correct a bug when defining same file with different variable values.

Same download link: Croll Custom CSS v1.0beta2.

#5
Krystian Podemski

    PrestaShop Apprentice

  • Members
  • PipPip
  • 40 posts
Amazing stuff. Really. I hope Prestateam would like it and attach it to official release, what You about that?
http://www.impsolutions.pl & http://www.podemski.info

" CSS is like a girlfriend. No matter how hard you try, she will always interpret it a different way"

#6
beve

    PrestaShop Apprentice

  • Members
  • PipPip
  • 43 posts
Thanks podemski.
My modules are released under GPL license, the PrestaTeam can merge them in the Prestashop trunk if they want.

#7
jkmagic

    PrestaShop Newbie

  • Members
  • Pip
  • 16 posts
Hi beve
One of the useful modules in prestashop.May i ask if it is easy to modify ,not to change css but whole theme?I am not a programmer its just a thought,and it would be useful also for me too.
That would be the best i think

Thanks

#8
beve

    PrestaShop Apprentice

  • Members
  • PipPip
  • 43 posts
@jkmagic, unfortunately it's not the goal of this module.

New version 1.0b4 works with PS 1.3.2 and PS 1.1 and above.

You can download it here.

#9
Prestafreak™

    PrestaShop Apprentice

  • Members
  • PipPip
  • 99 posts
Interesting module...! Awesome... thanks.

#10
jkmagic

    PrestaShop Newbie

  • Members
  • Pip
  • 16 posts
Hi!
I use prestashop 1.3.1
I tryed all the versions of your module,but when i put in vairables the same variable but different id nothing happens.I need to do this with many id's.
Last version when i useit it doesnt excet variables.
Am i doing something wrong?
I have put my new css in the module folder but nothing happens
I attach a screen photo to see
Thanks!

Attached Files



#11
beve

    PrestaShop Apprentice

  • Members
  • PipPip
  • 43 posts
Hi jkmagic.
Sorry for the late answer. Try to assign category.php to "Assigned page(s)". Il 'll do some tests, it works on my PS 1.3.1 with multiple category id.

#12
steviger

    PrestaShop Apprentice

  • Members
  • PipPip
  • 93 posts
Hi Beve,

Awsome mod, thanks!

Steven
www.steviger.nl

#13
phar

    PrestaShop Apprentice

  • Members
  • PipPip
  • 27 posts
Hi beve.

I'm using v1.0beta4 with PS 1.3.3.0.

It seems work well, but...

...when using variables, they are not listed (not displayed in "assign css files" table). If I used both "assigned file" and "variables", the css file is displayed on the table but without variables.

Your module is very very usefull. There are these details to be corrected.

Thank you for your work.