Forums / Setting Up Categories, Products, Attributes / Product Type Book (by moku)

Product Type Book (by moku)

Started by moku on 12 May 2006, 6:37 AM · Views: 203,732

Results 341 to 360 of 647
10 Jan 2008, 10:48 PM
#341
hareslade avatar

hareslade

Totally Zenned

Join Date:
Nov 2004
Location:
U.K. South Wales
Posts:
442
Plugin Contributions:
0

Product Type Book (by moku)

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/download/zencart1_3_8a_addons/ML_ZC1_3_8_EXTENDED_BOOK_TYPE_V_4_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..

14 Jan 2008, 12:41 AM
#342
the_ocarina avatar

the_ocarina

New Zenner

Join Date:
Nov 2007
Posts:
9
Plugin Contributions:
0

Re: Product Type Book (by moku)

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

14 Jan 2008, 2:26 AM
#343
hareslade avatar

hareslade

Totally Zenned

Join Date:
Nov 2004
Location:
U.K. South Wales
Posts:
442
Plugin Contributions:
0

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..?

???

15 Jan 2008, 4:04 PM
#344
the_ocarina avatar

the_ocarina

New Zenner

Join Date:
Nov 2007
Posts:
9
Plugin Contributions:
0

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.

18 Jan 2008, 7:32 AM
#345
24star avatar

24star

New Zenner

Join Date:
Jun 2006
Posts:
10
Plugin Contributions:
0

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.

18 Jan 2008, 4:05 PM
#346
hareslade avatar

hareslade

Totally Zenned

Join Date:
Nov 2004
Location:
U.K. South Wales
Posts:
442
Plugin Contributions:
0

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.

18 Jan 2008, 6:14 PM
#347
24star avatar

24star

New Zenner

Join Date:
Jun 2006
Posts:
10
Plugin Contributions:
0

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:

18 Jan 2008, 9:21 PM
#348
hareslade avatar

hareslade

Totally Zenned

Join Date:
Nov 2004
Location:
U.K. South Wales
Posts:
442
Plugin Contributions:
0

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.

18 Jan 2008, 10:29 PM
#349
24star avatar

24star

New Zenner

Join Date:
Jun 2006
Posts:
10
Plugin Contributions:
0

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.)

19 Jan 2008, 8:15 PM
#350
24star avatar

24star

New Zenner

Join Date:
Jun 2006
Posts:
10
Plugin Contributions:
0

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.

24 Jan 2008, 11:28 AM
#351
raunharman avatar

raunharman

Zen Follower

Join Date:
Dec 2005
Posts:
165
Plugin Contributions:
0

Re: Product Type Book (by moku)

Authors name is not getting displayed on Product Book Info, but it is getting displayed on the product listing.
I want the authors name to be dispalyed on both product listing and product book infor page.

Please help

http://www.raunharman.com
http://www.raunharman.net
Website Development, E-Book Solutions & Handicraft Exports

28 Jan 2008, 8:20 PM
#352
hareslade avatar

hareslade

Totally Zenned

Join Date:
Nov 2004
Location:
U.K. South Wales
Posts:
442
Plugin Contributions:
0

Re: Product Type Book (by moku)

Sorry raunharman didn't see your post.. did you fix it.. if not, is it V3 or V4 book?

I've been advised the book admin preview page has a bug, but only when using 'product pricing by attributes'. Here is a preview_info.php update fix zip, should work on V3 or V4 book. I forgot to update it..

http://www.jphuk.co.uk/zc125/downloads/fixes/Iss1_bookV4_corrected_file_fix1.zip

2 Feb 2008, 5:12 PM
#353
bob_mason avatar

bob_mason

New Zenner

Join Date:
Jan 2008
Posts:
2
Plugin Contributions:
0

Re: Product Type Book (by moku)

Anyone please try it.. it runs single or multilanguage, specifically for V138a zencart, do not use it on 1.3.7.

Tried to - all files passworded so couldn't unzip

7 Feb 2008, 9:58 AM
#354
ghawar avatar

ghawar

New Zenner

Join Date:
Nov 2007
Posts:
4
Plugin Contributions:
0

Re: Product Type Book (by moku)

Hi!

I've installed a Zen-Cart System (Zen Cart v1.3.7.1) to create my book shop: http://libreria.klinamen.org.

Also I've installed the Product Type Book (the last version) but I have a problem. All work correctly except when I try to view the author information:

http://libreria.klinamen.org/index.php?book_authors_id=7&typefilter=book_authors&main_page=index

1054 Unknown column 'book_type_authors' in 'field list'
in:
[select book_type_authors from k_shop_books_to_authors where book_authors_id = 7]

Can anyone help me? Thx!

8 Feb 2008, 7:40 PM
#355
hareslade avatar

hareslade

Totally Zenned

Join Date:
Nov 2004
Location:
U.K. South Wales
Posts:
442
Plugin Contributions:
0

Re: Product Type Book (by moku)

Bob.. I just p.m'd you.. if anyone else has the 'password' prob, be assured I did **not password the zip file! send me your computer O.S and unzipper type, maybe its specific.


ghawar.. btw, for 137 use the book zip for 1.3.7, not the latest 1.3.8 one.

But it errors because there is no field 'book_type_authors' in the book authors table.. I searched in all the files of the books zips in 136, 137 and 138 versions, there apparently is no 'book_type_authors' phrase in the code anywhere. I searched using Dreamweaver, so it should pick up any obvious entry.

If you still have the error, you can p.m me describing what you do, when your error occurs, so I can try to replicate it.

10 Feb 2008, 6:33 PM
#356
elastic avatar

elastic

New Zenner

Join Date:
Dec 2007
Location:
New Jersey
Posts:
76
Plugin Contributions:
0

Re: Product Type Book (by moku)

I downloaded this to do a pure install, and am following instructions. the 1_README_for_BOOK_MAIN_FILES_install.txt file tells me to upload the files, yet the folder called 1_BOOK_MAIN_FILES is empty.

am i missing something?

thx in advance...

hmmn. really?

10 Feb 2008, 6:57 PM
#357
elastic avatar

elastic

New Zenner

Join Date:
Dec 2007
Location:
New Jersey
Posts:
76
Plugin Contributions:
0

Re: Product Type Book (by moku)

Never mind - those files are there, but the permissions on them were set so that they were not visible on a desktop, I found 'em through terminal. it's all good.

hmmn. really?

11 Feb 2008, 10:49 AM
#358
ghawar avatar

ghawar

New Zenner

Join Date:
Nov 2007
Posts:
4
Plugin Contributions:
0

Re: Product Type Book (by moku)

ghawar.. btw, for 137 use the book zip for 1.3.7, not the latest 1.3.8 one.

But it errors because there is no field 'book_type_authors' in the book authors table.. I searched in all the files of the books zips in 136, 137 and 138 versions, there apparently is no 'book_type_authors' phrase in the code anywhere. I searched using Dreamweaver, so it should pick up any obvious entry.

If you still have the error, you can p.m me describing what you do, when your error occurs, so I can try to replicate it.

Hmm... It's a problem :(.

If you are viewing a book, for example:

http://libreria.klinamen.org/index.php?main_page=product_book_info&cPath=1_24&products_id=561

And your click in Autor:

Autor: Samuel Toledano (http://libreria.klinamen.org/index.php?main_page=index&book_authors_id=80&typefilter=book_authors)

I get the error...

What can I do?

11 Feb 2008, 11:50 AM
#359
hareslade avatar

hareslade

Totally Zenned

Join Date:
Nov 2004
Location:
U.K. South Wales
Posts:
442
Plugin Contributions:
0

Re: Product Type Book (by moku)

ghawar
Thanks for the site links. I see it's the authors search
Wait for me to check my own sites, I will get back to you in a day or so!

Also please advise, which language packs are you using? These will be listed in the site's zencart language section, in admin.

12 Feb 2008, 12:00 AM
#360
hareslade avatar

hareslade

Totally Zenned

Join Date:
Nov 2004
Location:
U.K. South Wales
Posts:
442
Plugin Contributions:
0

Re: Product Type Book (by moku)

ghawar
You could try the standard book fileset (unchanged) on a test cart, see if you get the same fault there.

I cannot locate a reason to see 'book_type_authors' anywhere in the operation of the book files (1.3.7).

This phrase is a mixture of 'type' and 'authors', I see you made new defines labels for your site, I suggest you search your own fileset for that phrase 'book_type_authors' in case something got changed in error.

I would expect to find it in /index_filters/book_authors_filter.php, as that's the file responding to authors search clicks.

The sql fault is not one anyone else has had, as far as I know, - and I just can't see anywhere it could creep in.