Re: Product Type Book (by moku)
I figured out why I couldn't see the contents of the main files folder. For some reasons my permissions were set to custom and not read/right. I downloaded it again just to make sure I have the right files and it all looks good.
Thanks for getting back to me. My head feels a little better now!:flex:
Re: Product Type Book (by moku)
I was able to get everything installed. Edited the layout created author, subject, etc.
But when I go to create a new product with the product book type I get this error message:
Quote:
Warning: main(includes/modules/product_book/collect_info.php): failed to open stream: No such file or directory in /home/content/b/a/s/basherbeatz/html/7beats9/product_book.php on line 129
Warning: main(includes/modules/product_book/collect_info.php): failed to open stream: No such file or directory in /home/content/b/a/s/basherbeatz/html/7beats9/product_book.php on line 129
Fatal error: main(): Failed opening required 'includes/modules/product_book/collect_info.php' (include_path='.:/usr/local/lib/php') in /home/content/b/a/s/basherbeatz/html/7beats9/product_book.php on line 129
Am I missing a file?
Re: Product Type Book (by moku)
Dumba@! I had product_book & product_book_info in the wrong folders. :oops:
Got that fixed and all is wonderful! Yee Haw!
Re: Product Type Book (by moku)
Hi thebasher
Judging from your website, (zencart?) you are a very cool dude (is that what we say)
So don't worry about brain probs, it comes with the job...What I usually find is, I post a prob on the forum, then I find the answer 5 minutes later...
Re: Product Type Book (by moku)
Thank you. I've had a few of those moments in the last couple of days.
I'm having an issue with additional images not opening up in a new window. They open in the same page.
I have lightbox installed and that isn't working on the product book type category but I'm not too worried about that as long as they open in a new window.
Do I need to make any changes to the code to get them to open in a new window?
Thanks for all your help.
Re: Product Type Book (by moku)
I seem to be running into a problem on the product page. I have the author enabled under admin but the author name does not show. any ideas?
Re: Product Type Book (by moku)
When entering new products, make sure you select "Product - Book" (from the drop down next to the New Product button) before hitting the button. Otherwise you will be entering the product info into the "Product - General" section. If you do that, the author won't show. Just a thought.
Re: Product Type Book (by moku)
I'm using hareslade's mod which works fine. I just want to make one small change to the product listings section. Currently all items are listed as such:
Title
Brief Description
by Author's name
ISBN
I wish to change the order thus:
Title
by Author's Name
Brief Description.
I think the following looks better:
How To Win Friends and Influence People
by Dale Carnegie
Followed by the brief description which would
go here.
I've tried fooling with the observer Class but can only move the Author above or beside the title, not under. All help will be appreciated.
hareslade if you read this post, thanks for your great contribution.
John
Re: Product Type Book (by moku)
hareslade is still around, one of you guys really should pull the short straw for the future, because when zencart 1.4 etc comes out, it'll be a long job upgrading this book product, I may not be able to spend the time on it.
But.. johnk.. if you look in product_listing.php around line 113 you'll find
Code:
$zco_notifier->notify('MY_NOTIFY_GOT_PRODUCT_LIST_NAME');
thats where the observer class sticks it's oar in just for a book, in the display list.
A few lines above, there are two entries with
Code:
<!--jph_notify_subtitle-->
The observer class for listings is in class.productBookListing.php ...you find that same bit of code in there.
The observer detects that bit of html and inserts whatever it decides to, replacing that code with the extra html to change things
also it uses the
Code:
<h3 class="itemTitle">
From that you may be able to see how it all works, the original string html that the listing file would have made for a product, is changed by the observer class, just for a book product.
Change php things slowly in the observer class, so you see the various bits doing whatever they do.
You can put extra code 'bits' like the jph_notify_subtitle html, into the product listing file, then alter the observer class to replace that exact bit with the html you want to display.
The trick is, the jph_notify_subtitle is surrounded by the arrows so the non-book products html still carries that 'tag' but doesn't display it, its present in the page's view source.. check it out..
Does that help?
Re: Product Type Book (by moku)
Hi hareslade, sorry for the delay but I never received an email when you responded. Maybe I need to update my email address. I had already figured out most of the class stuff, but I could only get the Author above the title or below the description. Not much has changed except that I've decided on another presentation which actually suits my project better. I really don't need a full book catalogue for this job because it has nothing to do with books at all. What I did want, was info about each contributor (author) and the contributor's name shown in the listing and info pages under the product title. As I'm using ZC as a catalogue and not a shopping cart, there will be no need for me to take this project to version 4. I strongly believe however, that ZC would be far more popular if it included a few mods like the one created by Moku and yourself. Provided they were professional, the ZC team could easily charge $50 for each mod to help finance the free Core program.
Thanks for your help and I'll keep playing with it until I get it right. BTW I couldn't find '<!--jph_notify_subtitle--> in product_listing.php. Maybe you were refering to an older (or newer) version because the other line was at 103 not 113.
Thanks for your help and best wishes.
John