Bookshop functionality

jidol

Avatar: jidol

2009-07-21 18:28

Hi, i would like to ask if it is possible to add atributte called "Author", which would display under title and would be clickable ( leading to the list of books by certain author).
It should be similar to Producer (in this case Publisher) field I guess??
Any ideas how to do it?

In general it would be nice to have in product detail such a structure:
BOOK TITLE
-----------------------------
Author: Jules Verne (link)
Publisher: My books (link)
ISBN: XYZ
Number of pages: XY
...
..

Yust suggestion, but if anybody has an idea???

» Quick.Cart v3.x

Jidol

beholder

Avatar: beholder

2009-07-21 19:07

Easy. Rename the Producers menu to "Authors" and use it to display authors.

beholder

Avatar: beholder

2009-07-21 19:08

Easy. Rename the Producers menu (this is menu_4) to "Authors" and use it to display authors.
Or create another menu (menu_5) where you will have books sorted by authors.

jidol

Avatar: jidol

2009-07-22 08:29

Wel, as you can see - http://jidol.cz/shopik/?4,ohre-reka-pozoruhodna
I did extra menu for author already and I have also rename producer to publisher ,
but now this "breadcrumbs" are displayd automatically by function throwProductsPagesTree all together and I would like to have it displayed separatly to control it better and to put this "tags" (as "Author", publisher, topic) before it.
eg: "Author" : Karel May ...

Well it means simply to cut this throwProductsPages function into pieces to write each "menu item" separately..

I tried it but i failed several times :-(

Jidol

beholder

Avatar: beholder

2009-07-22 13:45

this took me 10 minutes, have a beer on me:



In file core
/products.php, function throwProductsPagesTree() add BEFORE the line:
$content .= $this->mData[$iPage] = $sTree;

this:
$content .= $GLOBALS['aMenuTypes'][$oPage->aPages[$iPage]['iType']].": ";

beholder

Avatar: beholder

2009-07-22 13:46

and let me know how you like it. I still don't see the additional menus on your website, add them by reading advice on this forum.

beholder

Avatar: beholder

2009-07-22 14:27


oh
you also need to add line:
$content .= $GLOBALS['aMenuTypes'][$oPage->aPages[$iPage]['iType']]."- ";
before line:
$content .= $this->mData[$iPage];

jidol

Avatar: jidol

2009-07-22 18:05

Hi beholder, it works like a magic, thank you very much!!
have a look : http://jidol.cz/shopik/index.php?4,ohre-reka-pozoruhodna

I have hidden the author menu from sidebar, it looks better i guess.

But now i have a book title and bellow its description - author, publisher and catalogue ...
thank again i owe you a couple of beers :-)

Jidol

beholder

Avatar: beholder

2009-07-22 23:47

Nice, very nice.
But put some products here, how it will look. I wonder what will you do with this: http://jidol.cz/shopik/index.php?akcni-nabidka,3
Perhaps just rename Menu_2 to something else.

Well, but overall I guess you're set. In any case, I have my contacts on this forum, if you need anything write me in czech, I could help out.

jidol

Avatar: jidol

2009-07-23 00:36

Yes i will customize that menu bar in some way :) But the "bookshop" functionality is born thank to you :-)

Jidol

Back to top
about us | contact