Gallery2-cart question and redirection question

pexel

Joined: 2006-02-16
Posts: 36
Posted: Tue, 2006-02-21 18:35

Hello
I have a problem i hope somebody here can help me with.

In gallery 2 there is an "add to cart"-function.
I have disabled the useless ( for me) different oppurtunities to order print of pictures at companies not at all connected to my site !!
What i wonder though is this; is there possible to add/ does there exist other cart-options one can add?
For example i would very much like an oppurtunity for the visitors to be able to "buy" pictures from me, and there fore be able to put an order for pictures, and send this order to me for example in form of a mail, after having the pictures added to the cart. Does anyone know if such a function is possible to add? And if its the case, how one add it ?

Question number 2 is:
I have a php-nuke 7.9 site. I have managed, aftyer getting useful help from one of the others on this forum, to get a random picture from my gallery2 to show up in a block on this site. But, when one click on the image on the block on gets redirected to the actual pictures own site in gallery2, with detailed info about the picture. I would rather like the user to be redirected to the main page of the gallery album, where the user himself can immediatley see what other albums and pictures that are available on the site.

Appreciate any feedback on this.

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Tue, 2006-02-21 19:13

1. check out the paypal email and checkout module: http://codex.gallery2.org/index.php/Gallery2:User_Contributions

2. change the code for the random block to go to the album url instead of the image url. There's no config option for this but the code change is fairly straightforward.

 
pexel

Joined: 2006-02-16
Posts: 36
Posted: Tue, 2006-02-21 20:31

Hello

Are you the only active user on this forum ? ;-) hehe
Thanx for the input on this also.
I will check it out a bit later on. Appreciate it.
Nice that someone bother to help. Looks good for the future of the world, hehe :)

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Tue, 2006-02-21 20:49

I'm just working on catching up to h0bbel, valiant, mindless and the likes, they have over 10000 posts each. :) Theres probably 5 or 6 of us that get emails for each new topic and the first of us to check in that knows the answer responds.

 
pexel

Joined: 2006-02-16
Posts: 36
Posted: Wed, 2006-02-22 10:14

Hello, once more...
I checked out the paypal email and checkoutmodule as you recommended.
I downloaded the appropriate files, and uploaded them to the right folders on my server.
But, when i after install log in as an admin in my Gallery 2, goes to the modules-section, and browse down to the commerce-section and find the 3 modules, there is this same errormessage for all of them:
"
Shopping cart module supporting different products and payment
Incompatible module!
Core API Required: 6.4 (available: 7.1)
Module API Required: 2.0 (available: 3.0)
"
IT says that the core api ( doesnt know what that is..) required is 6.4, and that the available one is 7.1 Shouldnt a newer version be better and compatible, or do i misunderstand something here?

Appreciate any answer.
Best regards

 
pexel

Joined: 2006-02-16
Posts: 36
Posted: Wed, 2006-02-22 10:22

Hey....

As for your answer in point 2 above...
This is the code im currently using ( given from you ) to "collect" a random picture to be show in my php-nuke site:
<?php readfile('http://www.123area.com/modules/gallery2/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=fullSize&g2_maxSize=125'); ?>

Where in this code am i supposed to put the link to the gallery2 main site, which is http://www.123area.com/modules/gallery2/main.php
?
Because, if i just delete the link in the code as it is by now, and put the above link there in stead, i would assume i "fuck up" the random-image function ? :) Or?

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Wed, 2006-02-22 16:45

api version: major version numbers are backwards compatabile, minor version numbers are not. The Core API is the main brains behind G2 and the module has to work with them. Looks like thismodule is not ready for 2.1 yet. If you're feeling adventureous you could take a look at the changes on http://codex.gallery2.org/index.php/Gallery2:API_Changes_Since_The_Last_Release and update it yourself, or you could find who wrote it and ask them to.

for 2, the change will be somewhere in gallery2/modules/imageblock/templates/ImageBlock.tpl though I'm not sure how you can change it so that it only effects external image blocks.

 
pexel

Joined: 2006-02-16
Posts: 36
Posted: Wed, 2006-02-22 17:01

Hello again :)

I have the 2.0 version, not the 2.1 version. Does that make a difference?
I guess i just wait with the question 1 :-/

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Wed, 2006-02-22 17:22

2.0 version of G2 or of the module?

 
pexel

Joined: 2006-02-16
Posts: 36
Posted: Wed, 2006-02-22 18:12

Of the 3 modules i have the following versions:
Checkout: 0.1.12
Checkout By Email: 0.0.6
Checkout By Paypal: 0.1.8

Of Gallery 2 i have: "first release candidate of Gallery 2.1, code named “Blackjack”

Can you read any compability problems out of this?

 
pexel

Joined: 2006-02-16
Posts: 36
Posted: Wed, 2006-02-22 22:03

Would appreciate it :)

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Thu, 2006-02-23 01:03

I do not know the specific requirements of each version of each thing. If the modules page says there is a version problem, then there is a version problem. The checkout module will need to be compatabile with 2.1 to work.

 
pexel

Joined: 2006-02-16
Posts: 36
Posted: Thu, 2006-02-23 07:34

Hello
But, 2.1 is not out yet. I have already got the newest version; 2.1 rel 1.
Is the 3 modules that new, that they yet arent compatible with any of the albumversions out there? :)

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Sat, 2006-02-25 07:40

Core API Required: 6.4 (available: 7.1)
Module API Required: 2.0 (available: 3.0)

This means that you have a newer version of G2 than the modules will work with. The modules need to be updated with the changes onhttp://codex.gallery2.org/index.php/Gallery2:API_Changes_Since_The_Last_Release and hopefully the module authors will get around to updating before the final release of 2.1.

--
http://ckdake.com/

If you found my help useful, please consider donating to Gallery.

 
pexel

Joined: 2006-02-16
Posts: 36
Posted: Sat, 2006-02-25 10:44

Thanx again for the reply.
But, how to make this work is less than userfriendly. OMG.
H.E.L.P !!!

 
pexel

Joined: 2006-02-16
Posts: 36
Posted: Sat, 2006-02-25 17:27

What version of Gallery 2 will the modules actually work with? Then i just install that version of Gallery 2 instead.
Anyone knows? :)

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Sat, 2006-02-25 18:33

The modules probably work with 2.0.2 currently. you've mentioned both that you have ""first release candidate of Gallery 2.1, code named “Blackjack”" as well as "I have the 2.0 version, not the 2.1 version." So I'm not quite sure which one you are running with.

--
http://ckdake.com/

If you found my help useful, please consider donating to Gallery.

 
pexel

Joined: 2006-02-16
Posts: 36
Posted: Sat, 2006-02-25 19:04

Hey again.
I have The first rel. candidate of Gallery 2.1. ( I dont have the 2.1 final version)
I really would like to know if someone actually get the modules to work with 2.0.2
And are there in general a big difference between gallery 2.0.2 and Gallery 2.1 rel cand 1 ?
Anyone know when the final version of 2.1 is coming?

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Tue, 2006-02-28 01:14

2.1 RC2 is due in the next week, and 2.1 final is due shortly after that. Read http://gallery.menalto.com/gallery_2.1_RC1_released for the differences.

--
http://ckdake.com/

If you found my help useful, please consider donating to Gallery.