PrestaShop Forums: [module] Croll Custom CSS - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


[module] Croll Custom CSS


[module] Croll Custom CSS

#1 beve

    PrestaShop Apprentice

  • 20 Aug 2010
  • Members
  • PipPip
  • 43 posts

Posted 27 August 2010 - 08:18 AM

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

  • 23 Aug 2009
  • Moderators
  • 1139 posts

Posted 27 August 2010 - 05:29 PM

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

  • 01 Nov 2008
  • Members
  • PipPipPipPip
  • 1125 posts

Posted 27 August 2010 - 08:34 PM

So cool!
My Blog
PS v1.4.6.1

#4 beve

    PrestaShop Apprentice

  • 20 Aug 2010
  • Members
  • PipPip
  • 43 posts

Posted 29 August 2010 - 02:03 PM

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

  • 09 Jul 2009
  • Members
  • PipPip
  • 38 posts
  • Location:Poland

Posted 02 September 2010 - 11:43 AM

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

  • 20 Aug 2010
  • Members
  • PipPip
  • 43 posts

Posted 02 September 2010 - 12:37 PM

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

  • 23 Feb 2010
  • Members
  • Pip
  • 16 posts

Posted 05 September 2010 - 11:50 AM

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

  • 20 Aug 2010
  • Members
  • PipPip
  • 43 posts

Posted 04 October 2010 - 07:00 AM

@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

  • 15 Jan 2009
  • Members
  • PipPip
  • 99 posts
  • Location:Indonesia

Posted 04 October 2010 - 10:48 AM

Interesting module...! Awesome... thanks.

#10 jkmagic

    PrestaShop Newbie

  • 23 Feb 2010
  • Members
  • Pip
  • 16 posts

Posted 07 October 2010 - 03:19 PM

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 File(s)



#11 beve

    PrestaShop Apprentice

  • 20 Aug 2010
  • Members
  • PipPip
  • 43 posts

Posted 12 October 2010 - 04:45 AM

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

  • 20 Oct 2009
  • Members
  • PipPip
  • 56 posts
  • Location:The Netherlands

Posted 04 January 2011 - 11:05 AM

Hi Beve,

Awsome mod, thanks!

Steven
www.steviger.nl

#13 phar

    PrestaShop Apprentice

  • 15 Dec 2010
  • Members
  • PipPip
  • 27 posts
  • Location:Saint-Agathon

Posted 11 January 2011 - 10:55 AM

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users