Well, that would be nice

I already did a lot of stuff, but mainly the final purpose is:
The installation ( more or less already made):
Adds "native" support for CEON ( optional)
This generates a clean url for authors, genres, etc... ( for the first filter only ). However it depends on CEON update for zc156
I have this code made, but not yet in git.
Adds dynamic metatags ( optional )
Basically it gets the authors, genres, etc information, and adds to the <meta> tags ( when filtering), using canonical.
It also can build metainfo on products page IF metatags are not defined ( zencart way). This is because, honestly I will never, never, edit thousand of metatags manually.
Adds support for utf8mb4
replicating the zc156 installation.
Adds a way to check git releases on bookx, EP4, and epbookx ( still need to check if it's a good idea)
Adds a new table for books families:
Families can have multiple publishers.
Adds a new table for book search
I reduce the search time this way
On the installation, some changes are made to some indexes.
Families: They are imported from a csv file.
The main idea, is not to have another extra field, but to apply discounts based on families.
A example: A publisher released a new book. By law ( at least here in Portugal), one can't apply a discount greater than 10% over a period of time.
This could be done using the publishing date.
However, the bookstore may also have acquired some older books from the same publisher, ( the publisher does not control them anymore) that are now theirs. So they can apply a bigger discount.
This is useful, when importing with EP4 , since it apply's the discounts on the fly, but it can be made on inserting a product.
So in sum, one exports families from a software ( like sage) and imports to bookx_families.
Families can also have a "flag" to always have a online stock.
Even if a product belongs to a families, one can flag a product to ignore that discount. ( still needs review, because on import using ep4bookx, it will overwrite that "flag")
Authors:
One can now import a image from a url
The same for products ( not yet done)
I think this are the more important.
Made a lot of changes to use bootstrap and fit into the zencart design:
On authors, and products.
To be done:
Support the German language ( I think they use a different zencart version with a language table ), but I need to add the same changes to the configuration table
Review the front-store.
Add authors, genres, etc, directly on products page. ( right now, they must be created first), this is very useful when editing on admin.
I think the functions could be a file, and not separated by admin vs front-store, since some are very useful in front-store also
And some other minor stuff.
I'm stuck on the main observer, because the observer (on prodcut listing), try's to catch the css button to overwrite them with bookx_button.
However this is very fragile, because layouts can change... ok...right... I'm not on my machine right now. Latter I'll post a code example.
Well, that's the main idea. A lot was made.
Bookmarks