If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Admin Tools / Zen4All Template Color Picker

Zen4All Template Color Picker

Started by design75 on 6 Nov 2019, 10:54 AM · Views: 800

Results 1 to 4 of 4
6 Nov 2019, 10:54 AM
#1
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Heerenveen, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Post #1 by design75

**!! Currently the module is still in BETA !!
** It is functional, but still needs some tweaking Current version: v1.0.0.beta.1

Zen4All Template Color Picker is a back-end tool to set the colors for a Zen Cart theme, so store owners with no coding experience can do simple color tweaking. Based on the ideas of:

  • @dbltoe, and his idea of splitting the colors and other styles in to different files (Responsive Color Changes for 155)
  • @rbarbour's back-end color changer in his bootstrap template
    I liked the idea of both, and have used them, but for me there was one big drawback. The color scheme values are stored in the database, making it labor intense to add new css values.

My new module uses a standard css file. This way it is also possible to add new values through a text-editor on you computer.

On the edit page you can set colors to:

  • backgrounds (background-color)

  • text (color)

  • borders (border-color, border-top-color, border-right-color, border-bottom-color, border-left-color)
    **
    **Installation

  • Copy all the files to your server.

  • the auto installer will add some values to your database:

  • menu items

  • mod version

  • a configuration field to set the file name for the color stylesheet

    Usage

  • Go to admin->configuration->Template Colors

  • Edit the value of the stylesheet name, if needed

  • Go to admin->tools->Template Colors

  • Select the template from the dropdown, and the values of your color stylesheet appear

  • Now you can edit, delete, or add a new property

    To-do, and limitations

  • Adding a new css element (v1.0.0.beta.2)

  • Deleting a css element (v1.0.0.beta.2)

  • Add proper documentation (v1.0.0)

  • Replace hardcoded texts with language defines (v1.0.0.beta.2)

  • Add titles to buttons (v1.0.0.beta.2)

  • Add ajax, so page reload without jumping back to top after clicking a button (v2.0.0)
    You can not use fancy css selectors like:

    .rating > input:checked + label:hover

    The + < > ~ signs are ignored. This may de fixed in the future

**Download link
**On GitHub: Zen4All Template Color Picker
Once all bug are gone, and documentation is written, I will upload this mod to the Download Section

6 Nov 2019, 7:13 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,908
Plugin Contributions:
23

Post #3 by dbltoe

Looks like something to look at.

I liked the idea of both, and have used them, but for me there was one big drawback. The color scheme values are stored in the database, making it labor intense to add new css values.I need to point out that nothing in the Color Change Mod is stored in the database. It is all edited in a text editor and the documentation describes the process in full.

The goal is to have it where the major colors are changed in an admin menu page, but that is in the future.

They say, "Necessity is the Mother of invention." I say, "Laziness is the Mother of invention." Open source helps us either way.:P

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

6 Nov 2019, 7:47 PM
#4
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Heerenveen, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Post #4 by design75

dbltoe:

Looks like something to look at.

I need to point out that nothing in the Color Change Mod is stored in the database. It is all edited in a text editor and the documentation describes the process in full.

The goal is to have it where the major colors are changed in an admin menu page, but that is in the future.

They say, "Necessity is the Mother of invention." I say, "Laziness is the Mother of invention." Open source helps us either way.:P

Yeah I am lazy :blush:.
I know your mod has no database edits, maybe should have worded that better.

A new version is almost done. Beta 2 will be available tomorrow.