Product Type Book V4 ISSUE 1 for 1.3.8a
Here we go then... V4 Books, Issue1
Anyone please try it.. it runs single or multilanguage, specifically for V138a zencart, do not use it on 1.3.7.
A few items are new, such as ISBN search, which was done 'to order'.
And Book subtitle under main listing titles, just for books. Put all isbn's in as straight, no gaps or dashes, it enables easier searches.
The zip is 2.7Mb because there are some language packs copies in there.
I suggest you use FCKEditor in admin, specially if running in multilanguage.
The multi-sidebox search is now in the fileset, and can be collapsed down to just use ISBN if becessary. ISBN search can be textual or dropdown. Note there are an awful lot of admin settings in product type | books | edit layout. a few are in maximums section.
Beta testers please try out and give feedback, specially in the admin side for books. Its too complicated for me to test everything again for V4, but its basics work fine.
http://www.hareslade.com/zc125/downl...LANGS_ISS1.zip
Demo sites (later they will have more books in them!):
Single language mode
http://www.hareslade.com/zc138a_t1/
Multi language mode
http://www.hareslade.com/zc138a_t2/
Single language with grid display for books, text input ISBN search.
note that the right hand column is blanked when books grid layout is used. It can be unblanked, (uncomment a line of code) but really it needs the extra width.
http://www.hareslade.com/zc138a_t3/
As you might know, the book add-on is complex, so I won't be too surprised if there are a few minor bugs. Its taken far longer to do than I thought. In the future I would really like some other programmers to come on board, because it takes so long to do upgrades like these to match zencart.
You are welcome to private message me with any complex issues (to save forum space) but simple queries are fine here. I'm now going to catch up with the other things I back-burnered!
Enjoy..
Re: Product Type Book V4 ISSUE 1 for 1.3.8a
I get this error when I look at the product listings:
Fatal error: Call to undefined function: zen_get_generated_category_path_rev() in [removed]/includes/modules/product_listing.php on line 467
Re: Product Type Book (by moku)
Hi ocy
That function 'zen_get_generated_category_path_rev' is inside zc138a includes\functions\functions_categories.php file
Maybe you're not truly using a full v138a fileset. Get that functions_categories.php file and re-upload it..?
???
Re: Product Type Book (by moku)
Hareslade - that was my error. Thank you!
I like the subtitle in the product listing a lot. Same for the Author and ISBN fields.
Re: Product Type Book (by moku)
Thanks Hareslade! V4 rock!!
Everything going smooth so far.
Though minor problems occur:
1. No where to set product language (cannot find the link to create a new one). Am I miss a handling file?
2. Setting for "Show Book Condition" under the book-type layout has no effect. It shows up on the product info page all the time.
3. "Show Book Type" field cannot be removed from the create-new-product page when it was turned off.
These are the problems I found so far.
Thanks.
Re: Product Type Book (by moku)
Hi 24star
I'll look into the bugs
The book type itself doesn't initiate languages.. its a case of following the 'adding languages' to zencart itself. Did I understand you correctly?
The demo multilanguage site has 3 or 4 languages added in zencart. Once you do that correctly, you get multiple areas in the book collect info pages and extras lists give birth to extra textarea blocks, per language.
btw I've copied the demo's to a new domain, the original hareslade.com might cease soon. Remeber V4 is for 1.3.8a zencart
Books multi V4
http://www.jphuk.co.uk/zc138a_t2/
Single language V4
http://www.jphuk.co.uk/zc138a_t1/
Single language with text input isbn search option, and grid listings fileset added
http://www.jphuk.co.uk/zc138a_t3/
Note there is indeed the Ultimate SEO mods folder in V4, I aready noticed 2 minor link bugs, but the basic mods enable use in 1.3.8a, and give correct links for book products url's. If you fix any bugs in the SEO let me know, its nearly working.
And finally, the links in this thread to my hareslade site can be updated to jphuk site..(see my signature in a bit..) but I'm not transferring all the older zencart versions demo's as it would take ages.
I'm switching to bluehost now, existhost gave me site pain recently.
Re: Product Type Book (by moku)
Thanks for your reply!
For the 'product language' I mean the language field for a book, which indicates the book is written in, say English and/or Chinese. Or maybe I missunderstand the purpose of this field (admin->Catalog->Product Types->Product-Book->Edit Layout->Show Book Language)?
Anyway, I can use a customised field very easily but a default one make it more convenience.
BWT, I did not use any SEO mod as my server is running Windows IIS. I wish I can write one, but my knowledge to PHP coding is quite limited:smartalec:
Re: Product Type Book (by moku)
Hi 24 star
you'll have to forget the 'language' field as such, it was part of a complex moku table system, which he didn't explain his intent about, and so i disabled sections of code which did it..
you found something hiding in there thats not implemented...
Instead I agree, use a custom text field and just type it in per book. Incidentally if the field you use misbehaves, try another one. Let me know though, if one is faulty.
You can even set up a dropdown if you want, using the spare DD things.
But setting it up might not be easy for you. I can't remember exactly the process, without doing it.. the DD dropdown gives the values to select from, which then appear in a book field dropdown for value selection, in the collect info page.
you need to identify/switch on that appropriate field in the book collect info page, from admin books edit layout. The DD values themselves are populated once by you, after selecting the correct DD, in the 'extras' admin menu.
and as for IIS, I got fed up with it, because some of the server variables or functions, don't get set up, whereas they do in Linux.. it used to prevent some softwares running properly in IIS/php.. but presumably if IIS can use htaccess files, Ultimate SEO might run ok. Depends if mod_rewrite or whatever, is operational? The htaccess uses that for SEO.
Re: Product Type Book (by moku)
Hi Hareslade,
Iv done it with a custom field for the "Book Language" using DD2, which provides a similar functionality as the "Subject" and "Author(s)" selection fields. And its not that hard to set it up (I show it here for someone who may need it):
1. Change the definition text to show up from the info page:
..\includes\languages\english\extra_definitions\more_product_book_info.php
(definition for DD2: TEXT_PRODUCT_BOOK_MISC_DD2)
2. Change the definition texts show up under menu admin\extras
..\admin\includes\languages\english\book_dd2.php
3. Change the text appearance in the 'create-new-book' page
..\admin\includes\languages\english\extra_definitions\more_product_book.php
(look up for TEXT_PRODUCTS_BOOK_MISC_DD2 and change the definition)
4. Go to Book-type layout setting and turn on "Show misc_dd2 on product Info"
Done!
You actually reserved so much flexibilities that make customisation so easy. Thanks!
BTW, how can I set a field with a default selected value, e.g. default "Products Quantity"? (Hopely that need not much work, if does then forget about it.)
Re: Product Type Book (by moku)
Upon previous question, Iv got the answer.
Look up the file:
..\admin\includes\modules\product_book\collect_info.php
From the "$parameters = array" list, some values canbe reset.