[Module] Zencart Bridge

donkeyote

Joined: 2008-01-31
Posts: 2
Posted: Fri, 2008-02-01 23:03

Hi and thank you all and especially Dayo and ? for this work !

I'm in the same boat as SoftDux with respect needing an "Add to Cart" button or link without using the Options dropdown. I tried Kevin Logan's method above and no button shows up. The Options dropdown works fine.

Should a button show up normally or is it only setup for the dropdown menu. Hmmm ...

Thanks for any help here,
Ed
-------------Update - fixed 2-1-08 ----------------------------------------------
In theme settings, you have to have the "button" actions for photo enabled. All cart references are for Checkout not Zen Cart, so they are all off. But the trick was to include this in the theme.css (in my caes PGtheme)-- adds the icon:

/*************Add ZENCART SHOPPING CART ICON**************/

.gbLink-zencart_PurchaseOptions {

background: url(/gallery2/themes/PGtheme/images/set1/add_cart.gif) left center no-repeat !important;

}

AND make sure that permissions are set so that [Zencart] Add to Cart is on for whatever (if not all - top level Album) items AND [Zencart] View Cart IS NOT set up (no permissions set) - important or you'll never see the link/icon !!

----------------------------------------------------------------------------------

--
Gallerry = 2.2.4
PGtheme / PGsnow = (from Dayo's site - latest ?)
Bridge = 3.2.1b
ZC = 1.3.8a

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Fri, 2008-02-01 11:22

Hi

I have a new problem.

When I want to change the Ablum's themese, I get the following error:

Quote:
Security Violation

The action you attempted is not permitted.

Back to the Gallery
Error Detail -
Error (ERROR_BAD_PARAMETER) : 0
in modules/zencart/classes/GalleryZenCart.class at line 283 (GalleryCoreApi::error)
in modules/zencart/classes/GalleryZenCart.class at line 1317 (GalleryZenCart::fetchCategoryIdByAlbumId)
in modules/zencart/module.inc at line 360 (GalleryZenCart::updateCategoryFromAlbum)
in modules/core/classes/helpers/GalleryEventHelper_simple.class at line 117 (ZenCartModule::handleEvent)
in modules/core/classes/GalleryCoreApi.class at line 2140 (GalleryEventHelper_simple::postEvent)
in modules/core/classes/GalleryEntity.class at line 285 (GalleryCoreApi::postEvent)
in modules/core/classes/GalleryItem.class at line 412 (GalleryEntity::save)
in modules/core/ItemEditTheme.inc at line 63 (GalleryItem::save)
in modules/core/ItemEdit.inc at line 90 (ItemEditTheme::handleRequest)
in main.php at line 235 (ItemEditController::handleRequest)
in main.php at line 98
in main.php at line 87
System Information Gallery version 2.2.2
PHP version 5.2.4 cgi-fcgi
Webserver Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8b DAV/2 FrontPage/5.0.2.2635 mod_bwlimited/1.4 mod_auth_passthrough/2.1
Database mysqlt 4.1.22-standard
Toolkits ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux 2.6.18-53.1.4.el5.028stab053.4 #1 SMP Fri Jan 18 12:31:04 MSK 2008 i686
Browser Opera/9.10 (Windows NT 5.1; U; en)

I have to disable Zencart in the admin totally before I can change the theme, why is it doing that?

--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2008-02-02 09:34

donkeyote

As you determined, display issues are theme related.

I have marked an update of PGTheme to display Zen Cart as an icon but that is down for later ... a while later as I am occupied with updating the Moneybookers payment module for Zen Cart.

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2008-02-02 09:42

SoftDux

You also cannot edit album names etc. It is down to the way the event listeners react to the save event as when it is triggered is certain ways, the Album IDs are not available ultimately leading to the error message you got. I think it may have started off as a bug but on review, I decided not to fix it as it ensures your zencart and gallery are kept consistent.

If I have the time, I might look into bypassing this for theme changes since this does not affect actual operation.

For now, just deactivate the module before making changes and reactivate after. I wouldn't expect that people continually change themes.

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Sat, 2008-02-02 19:07

Hi Dayo

This concerns me a bit, cause what will happen when a client does decide to change one or two of his albums? Will he loose all his albums and start from scratch? I understand if it can't work right now, but to tell a client that he can't change an album's name doesn't make business sence?

--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2008-02-02 19:41

SoftDux

Why don't you try to change some album names and see what happens?

Please bear in mind that stuff like this is written by people that have certain needs that may not exactly tally with another's business sense needs.

In any case, the way it is set up is simple. If you want to make such "special" changes, deactivate ZC, make your change and then reactivate it which will re sync G2 and ZC. This stops a person from having an album called "XYZ" in G2 and "ABC" in ZC.

Bypassing this will lead to that situation set out if the code is not amended to change ZC whenever such changes are made in G2. That will require making some major changes to the code.

As it stands, I personally put this as a very low priority since the deactivate - change - reactivate option is fine for me and I suspect for most photographers managing their own sites.

Adding / deleting pictures and albums is currently taken care of although there sometimes is an issue with thumbnails of new pictures not showing up in ZC in which case the user has to dectivate and activate. This is a more significant issue and is one I will try to look into later. For now though, I am focused on another project as I think the module works ok and know that ZC 1.4 is due out soon.

However, the joys of open source software is of people driving development to meet specific needs so if you are able to implement the changes to the code that will make sure both ZC & G2 are kept in sync then by all means please do so and we can put it out as V3.2.2.

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Sun, 2008-02-03 07:23
donkeyote wrote:
Hi and thank you all and especially Dayo and ? for this work !

I'm in the same boat as SoftDux with respect needing an "Add to Cart" button or link without using the Options dropdown. I tried Kevin Logan's method above and no button shows up. The Options dropdown works fine.

Should a button show up normally or is it only setup for the dropdown menu. Hmmm ...

Thanks for any help here,
Ed
-------------Update - fixed 2-1-08 ----------------------------------------------
In theme settings, you have to have the "button" actions for photo enabled. All cart references are for Checkout not Zen Cart, so they are all off. But the trick was to include this in the theme.css (in my caes PGtheme)-- adds the icon:

/*************Add ZENCART SHOPPING CART ICON**************/

.gbLink-zencart_PurchaseOptions {

background: url(/gallery2/themes/PGtheme/images/set1/add_cart.gif) left center no-repeat !important;

}

AND make sure that permissions are set so that [Zencart] Add to Cart is on for whatever (if not all - top level Album) items AND [Zencart] View Cart IS NOT set up (no permissions set) - important or you'll never see the link/icon !!

----------------------------------------------------------------------------------

--
Gallerry = 2.2.4
PGtheme / PGsnow = (from Dayo's site - latest ?)
Bridge = 3.2.1b
ZC = 1.3.8a

Hey, I'm probably missing something, but where is the "button" actions?

--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Mon, 2008-02-04 12:27
Dayo wrote:
SoftDux

Why don't you try to change some album names and see what happens?

Please bear in mind that stuff like this is written by people that have certain needs that may not exactly tally with another's business sense needs.

In any case, the way it is set up is simple. If you want to make such "special" changes, deactivate ZC, make your change and then reactivate it which will re sync G2 and ZC. This stops a person from having an album called "XYZ" in G2 and "ABC" in ZC.

Bypassing this will lead to that situation set out if the code is not amended to change ZC whenever such changes are made in G2. That will require making some major changes to the code.

I can change album names & descriptions without any problems.

I do have a suggestions / feature request, and wouldn't mind helping with it.

1. If I want to put the "view cart" button into the side panel, but seperated from the "add to cart" button below the image, how / where do I do that?
2. Once a user has added a photo to the cart, how do I put a button into either Zencart, or the zencart module that says "continue shopping", which will then take the user back to the gallery
3. How do I add select boxes to the albums page, so that a user can add multiple items to the cart quickly?

--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
Kevin Logan
Kevin Logan's picture

Joined: 2006-07-06
Posts: 51
Posted: Mon, 2008-02-04 12:42

SoftDux:
"Hey, I'm probably missing something, but where is the "button" actions?"

Go to admin/themes. Look for the "Actions" area, bout 2/3rds way down.

Kevin

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2008-02-04 18:30

SoftDux

1. If I want to put the "view cart" button into the side panel, but seperated from the "add to cart" button below the image, how / where do I do that?
Assuming you mean within Zencart, there should be an "Update Cart" button that appears once an item has been added to the cart. Alternatively, clicking the "Selection [View]" link in the cart side box will also do this. The side boxes are not designed to take buttons but I suppose it can be done. I must say I haven't looked into changing the side box contents and perhaps you might want to ask on the ZC Forum since that has to do with details on that application.

2. Once a user has added a photo to the cart, how do I put a button into either Zencart, or the zencart module that says "continue shopping", which will then take the user back to the gallery.
I preferred not to use a "shopping" reference in the templates and provided a "Return to Gallery" link instead. I have not tested this to be 100% sure but if you want to change this you can try opening /includes/templates/pgxxx/common/tpl_footer.php and change...

<!--bof-return to Gallery2 link -->
<div id="galleryReturn"><h3><a href="<?php echo $_SESSION["g2zc_return_path"]; ?>"><?php echo GALLERY_RETURN_TEXT; ?></a></h3></div>
<!--eof-return to Gallery2 link -->

to

<!--bof-return to Gallery2 link -->
<div id="galleryReturn"><a href="<?php $_SESSION["g2zc_return_path"]; ?>"><?php zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT); ?></a></div>
<!--eof-return to Gallery2 link -->

3. How do I add select boxes to the albums page, so that a user can add multiple items to the cart quickly?
Sorry. I have no idea how this can be done.

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
waybo

Joined: 2008-02-05
Posts: 3
Posted: Tue, 2008-02-05 17:16

First of all, great work on this module. I am really excited about using it.

I am a G2 user but am new to ZC and the integration module. I have a very basic installation problem, so please forgive my lack of understanding. When installing the zencart module files to the main ZC directory, I would think that a merge must be performed so that the contents of zencart/admin and zencart/includes do not over-write the (existing) main ZC admin and includes dirs. For files which are in conflict, I presume the module file will replace the main file. Example: zencart/admin/includes/languages/english.php replaces the main ZC admin/includes/languages/english.php. For files which do not conflict, they are just added to the main ZC directory.

Am I correct? Is there an unzip command in linux that will do this merge and preserve the directory structure? Or what is the usual way of installing these files?

Thanks in advance.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Tue, 2008-02-05 18:53

waybo

The module files overwrite existing ones.

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Tue, 2008-02-05 20:59
Dayo wrote:
SoftDux

1. If I want to put the "view cart" button into the side panel, but seperated from the "add to cart" button below the image, how / where do I do that?
Assuming you mean within Zencart, there should be an "Update Cart" button that appears once an item has been added to the cart. Alternatively, clicking the "Selection [View]" link in the cart side box will also do this. The side boxes are not designed to take buttons but I suppose it can be done. I must say I haven't looked into changing the side box contents and perhaps you might want to ask on the ZC Forum since that has to do with details on that application.

No, I meant in the gallery itself. But, now that I have tried a few things, I see that it's not necessary. Once the client has added the first photo to the album, he's in the shopping cart, which in essence is a gallery as well, so this doesn't really matter any more :)

Dayo wrote:
2. Once a user has added a photo to the cart, how do I put a button into either Zencart, or the zencart module that says "continue shopping", which will then take the user back to the gallery.
I preferred not to use a "shopping" reference in the templates and provided a "Return to Gallery" link instead. I have not tested this to be 100% sure but if you want to change this you can try opening /includes/templates/pgxxx/common/tpl_footer.php and change...

<!--bof-return to Gallery2 link -->
<div id="galleryReturn"><h3><a href="<?php echo $_SESSION["g2zc_return_path"]; ?>"><?php echo GALLERY_RETURN_TEXT; ?></a></h3></div>
<!--eof-return to Gallery2 link -->

to

<!--bof-return to Gallery2 link -->
<div id="galleryReturn"><a href="<?php $_SESSION["g2zc_return_path"]; ?>"><?php zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT); ?></a></div>
<!--eof-return to Gallery2 link -->

Thanx, I'll give this a shot

Dayo wrote:
3. How do I add select boxes to the albums page, so that a user can add multiple items to the cart quickly?
Sorry. I have no idea how this can be done.

hmm, maybe a simple loop / while script, which adds a radio button / tick box below each image, and then a final "Add to cart" button / link at the bottom?
--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Tue, 2008-02-05 21:02
waybo wrote:
First of all, great work on this module. I am really excited about using it.

I am a G2 user but am new to ZC and the integration module. I have a very basic installation problem, so please forgive my lack of understanding. When installing the zencart module files to the main ZC directory, I would think that a merge must be performed so that the contents of zencart/admin and zencart/includes do not over-write the (existing) main ZC admin and includes dirs. For files which are in conflict, I presume the module file will replace the main file. Example: zencart/admin/includes/languages/english.php replaces the main ZC admin/includes/languages/english.php. For files which do not conflict, they are just added to the main ZC directory.

Am I correct? Is there an unzip command in linux that will do this merge and preserve the directory structure? Or what is the usual way of installing these files?

Thanks in advance.

It doesn't quite work like that. Unzip / tar / gnuzip / and other compression utility won't be able to tell if files need to be merged or not, it simply overwrites them with the files from the zip file. The Zencart addon is written in such a way that some of the original Zencart files are overwritten, for it to work properly.

--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
waybo

Joined: 2008-02-05
Posts: 3
Posted: Tue, 2008-02-05 23:20

OK, thanks. So some files are replaced while others are added, and the only way to get the files in the right spots is via manual copy.

 
waybo

Joined: 2008-02-05
Posts: 3
Posted: Wed, 2008-02-06 20:27
waybo wrote:
OK, thanks. So some files are replaced while others are added, and the only way to get the files in the right spots is via manual copy.

I did a "cp -r zencart/admin/* admin" and "cp -r zencart/includes/* includes" and it seems to have worked.

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Fri, 2008-02-15 09:45

Could someone possibly help me with an issue I picked up today (my client informed me about this)

The shopping cart's content is not alligned properly on Safari & Firefox. I don't see this on my own PC, but could see it on other PC's. I presume it's something in the template, but there are quite a few template files to edit, so I don't know which one it is.

The site is http://www.actionlens.net/shop/

--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2008-02-15 10:55

SoftDux

On the G2 Side
1) You have used an outdated and buggy version of PGTheme and the display of that also does not look quite right. The most up to date version is here.
2) You have implemented an incomplete edit of the colorpack which leaves you with grey underneath your green. You might want to look into this.

On the ZC Side
1) You have not specified which versions of ZC or the bridge you are running. It is difficult to advise blindly.
2) Since you have modified the templates, you might want to check whether the issue exists with the original templates activated. I wouldn't expect it to since I developed the templates using Safari & Firefox in the first place. Therefore you might want to track back through whatever changes you made to the originals.
3) The reason you are not seeing any issues on your PC is probably because you are viewing cached versions of the pages. Try clearing your browser's cache.

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Fri, 2008-02-15 11:17
Dayo wrote:
SoftDux

On the G2 Side
1) You have used an outdated and buggy version of PGTheme and the display of that also does not look quite right. The most up to date version is here.
2) You have implemented an incomplete edit of the colorpack which leaves you with grey underneath your green. You might want to look into this.

Thanx, I'm downloading PGTheme 1.2.0 right now.
I don't see the "gray underneath green" that you're referring to?

Dayo wrote:
On the ZC Side
1) You have not specified which versions of ZC or the bridge you are running. It is difficult to advise blindly.
2) Since you have modified the templates, you might want to check whether the issue exists with the original templates activated. I wouldn't expect it to since I developed the templates using Safari & Firefox in the first place. Therefore you might want to track back through whatever changes you made to the originals.
3) The reason you are not seeing any issues on your PC is probably because you are viewing cached versions of the pages. Try clearing your browser's cache.

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

The only thing I have changed was the logo, and the CCS background colors?
I'm currently using zcg2-3_2_1a-full.zip

--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Fri, 2008-02-15 12:14

Dayo

I have upgraded my gallery template, but the Zencart one still appears off centre. I can verify this @ two other machines here in the office. It's not a caching problem, it's defenately a problem with the template. All I have changed is the logo, and the CSS file (background-color) to refrect my client's color scheme.

Any suggestions?

--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2008-02-15 12:37

SoftDux

I wasn't suggesting the issue was a caching issue but that it is because of edits you have made.

In any case, looking at the site as you have it at this moment (i.e. before you have had a chance to change stuff), I think you will agree it is definitely not an issue with the template and that you must have changed more than just the logo and background colour.

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Fri, 2008-02-15 12:48

SoftDux

Looking at the code, there is indeed an issue with the template that can affect people with larger logos.

I am about to post V3.2.2 anyway and will take care of it there.

In the meantime, you can try trimming off any dead space at the top and bottom of your logo.

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Fri, 2008-02-15 13:10
Dayo wrote:
SoftDux

Looking at the code, there is indeed an issue with the template that can affect people with larger logos.

I thought as much :) I have just upgraded to 3.2.1c, with the original template, and all was well, untill I put my logo in, and changed the dimensions in the header.php file to match the size.

So, without having to reder EVERYTHING, what files have changed in 3.2.2. that fix this problem?
Or rather, what other benefits does 3.2.2 offer me?

--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Mon, 2008-02-18 22:14

Does anyone else have a problem with the loading of the images? The "loading photo" AJAX cirle constantly rotates, but no images are being displayd, as can be seen here: http://www.actionlens.net/v/Plants/plant01.gif.html?g2_imageViewsIndex=1
or on any other album on http://www.actionlens.net/
--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
donkeyote

Joined: 2008-01-31
Posts: 2
Posted: Wed, 2008-02-20 03:25

I think I had to turn the fade in off in the pgtheme for that to stop happening--graphics toolbox issue ?? I really don't like the smoothness of these fades or most web fades for that matter. I digress, but this has been a peave of mine.

Ed

Postnote: I hacked up Zen Cart pretty hard dismantling the need for an account. Using Paypal Express as the only payment option just seemed to negate the need for requiring that whole log-in or create an account scenario which you'll eventually run into even with Paypal Express. ZC is pretty account focused, but in the end I think I've made the experience somewhat cleaner. I use the Gallery2 accounts for private albums and the idea of having 2 separate account systems bothered me. I also hacked up the Zen templates pretty bad too - sorry Dayo. Learning all this stuff is bit overwhelming, but I learn and on my next passes, I could see things getting pretty organized. For now, I'm too scared to post my site in fear of the Zen Cart police, but maybe I can be talked into it ;-) It's mostly play at this stage anyway.

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Wed, 2008-02-20 05:24
Dayo wrote:
SoftDux

On the G2 Side
1) You have used an outdated and buggy version of PGTheme and the display of that also does not look quite right. The most up to date version is here.
2) You have implemented an incomplete edit of the colorpack which leaves you with grey underneath your green. You might want to look into this.

On the ZC Side
1) You have not specified which versions of ZC or the bridge you are running. It is difficult to advise blindly.
2) Since you have modified the templates, you might want to check whether the issue exists with the original templates activated. I wouldn't expect it to since I developed the templates using Safari & Firefox in the first place. Therefore you might want to track back through whatever changes you made to the originals.
3) The reason you are not seeing any issues on your PC is probably because you are viewing cached versions of the pages. Try clearing your browser's cache.

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

Dayo

The new Gallery 2 PGTheme is broken. I've downloaded it, and installed, it, but the AJAX part just says "loading" and it never actually displays the photos. Please check on my site, http://www.actionlens.net - why is it doing that? And what file(s) do I fix / replace?
--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Wed, 2008-02-20 16:13

SoftDux
I have no idea why you have this as I am sure you can see, the demo site does not display this issue. Are you sure you copied all the files? Also, I am not sure what the relationship is if any but notice you use gif files and not jpegs. In addition, have you determined that the files load when you switch the "Loading" thing off?

Please note that to keep things in order, do try to keep queries here related to the zen cart module and ask about other stuff on the relevant threads.

Thanks

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
SoftDux
SoftDux's picture

Joined: 2007-03-27
Posts: 56
Posted: Wed, 2008-02-20 22:33

I have downloaded the template as per your instructions. Disabling the "PHOTO :: Show Photos fading in" works, the photos display, but it doesn't have the "loading" thing. I don't think it's a huge problem, but probably one worth looking into?

--
South African Webhosting & Domain Registrations
Website: http://www.SoftDux.com
Forum: http://Forum.SoftDux.com

 
YBA

Joined: 2007-01-10
Posts: 33
Posted: Sun, 2008-02-24 04:27

Hello

I am finally getting back to my Gallery/Zencart integration.

The scenario I wish to use is to have Zencart do everything (ie customer would only see the zencart layout), and Gallery is used simply to as a bulk upload tool for the photos.

Based on this scenario, I have installed Zencart 1.38a, with Gallery 2.2.4 under this. I have installed the latest bridge 3.2.1c

At present this is a local install only, so no URL.

Question:

I have my gallery thumbnail set as 640, and the image size as 640x640.

When in Zencart, the thumbnails are showing correctly (ie as small 100x80 images). On the page/index.php?main_page=product_gallery_info&cPath=1_2_3&products_id=1&zenid=qt6tu2tcb9t331dj619mho5se5 the image is showing up as 427x427.

I want this image to be 640x640, and to also remove the "larger image" link that appears under the photo.

How do I do this?

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sun, 2008-02-24 15:51

YBA
I stumbled upon your similar query on the zc site and since it is largely to do with operating that program as opposed to this module specifically, I posted an answer there.

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
Kevin Logan
Kevin Logan's picture

Joined: 2006-07-06
Posts: 51
Posted: Tue, 2008-04-01 00:43

FWIW, I always have a hard time figuring out what file is where in ZenCart, so I made a "path-map". Kinda half-ass, but it helps me keep track of my edits.
Attached a JPEG.
All the best,
Kevin

 
Kevin Logan
Kevin Logan's picture

Joined: 2006-07-06
Posts: 51
Posted: Wed, 2008-04-02 10:40

This concerns a site that I HAD the OLD zencart module installed on, using Zencart 1.2.7. But now I am a little confused about the upgrade process. After installing the new version (edit) of Zencart(v1.3.8) AND the new version of the Redman Module (end edit), I have lost all my product attributes, and now have the sample ones. Is that expected? If so, can I restore my Database (do have a backup prior to installing the new zencart module) and get back my former item attributes that existed under the older version of the module. Not a big deal now, but I could see this being a very time consuming/tedious issue in the future.
Cheers
Kevin

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Wed, 2008-04-02 04:11

KevinLogan

This module is for ZC v1.3.8. You shouldn't have upgraded the G2 Module since you are running an older, incompatible version of ZC.

I don't understand why you have carried this action (uploading v1.3.x files into a v1.2.x installation) out to start with as that was never going to work.

To recover, put your ZC & G2 into maintenance mode, delete all the ZC files you uploaded as part of this module, replace them with ZC v1.2.7 versions if they had overwritten any files, reupload the original version of the module which was written for ZC v1.2.7 and then restore the DB.

If you wish to take advantage of the enhancements written into this version, you will have to upgrade your ZC to v1.3.8 first BEFORE installing this module.

Make sure you read the codex

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
Kevin Logan
Kevin Logan's picture

Joined: 2006-07-06
Posts: 51
Posted: Wed, 2008-04-02 10:35

Hi Dayo,
I have upgraded my Zencart program. I am currently using 1.3.8. I was running 1.2.7, and the former module, originally written by Torrent. I deactivated Torrent's module, upgraded the Zencart program to 1.3.8 (something allowed btw, they have a nice EASY upgrade process) and then, removed Torrent's module, then installed Redman's new module, and activated it. Now we come to my/the issue. When activating the new module, it reverted to the test product attributes that are included in module.inc. Is this to be expected, OR, can I revert to my previous product atrributes, say by restoring my database PRIOR to removing the Torrent version of the module & installing the Redman version of the module? As I mentioned, this is not a big issue for me now, as I intend to change most of my attributes anyway, but I could see this being a BIG problem in the future, for myself and others. If everytime an upgrade needs to be done, all the product attributes are lost, WHAT a potential hassle, potentially requiring many many hours of redoing work, depending on the size/complexity/number of galleries/users/products/etc..
Cheers & all the best,
Kevin

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Wed, 2008-04-02 14:55

Kevin Logan

What I understand to be the "Redman Version" is not supported here and you will be better off discussing that on the Zencart forum.

If you have installed the module provided on this site and for which this thread was created, what version have you installed?

The "Torrent Version" is v0.9.1
The versions I have worked on are v3.x.x.

However, the issue you raised applies to v3.x.x & v0.9.1 as well.

It boils down to how the upgrade was done I think. If I understand correctly, you removed v0.9.1 (which essentially wiped everything associated with the module off - products and attributes) and then installed a new version which was working from a blank slate and therefore puts in products and default attributes.

I think that if you just simply uploaded the new module and then upgraded in Gallery, you would not have had this issue. Even if you had re uploaded v0.9.1 after initially removing it, it would have reset the attributes since it would have been as if you were installing for the first time.

To be honest I don't see this as a big problem.
1) Upgrading the Module: I have posted several versions of v3.x.x and the upgrade procedure is just to upload the files and click upgrade in G2. All settings remain the same.
2) Upgrading ZC: Moving from A.B.x to A.B.y (eg 1.3.7 to 1.3.8) was handled by the same procedure as 1) above with no issues
3) Upgrading ZC: Moving from A.x.x to A.y.y (eg 1.2.7 to 1.3.x) is quite a rare event and can be handled by the same procedure as 1) above with no issues as well.

In your case, you cannot simply restore the DB since things have changed due to the new install and you have to re input your attributes. The key issue is that you have not upgraded an existing version but uninstalled an old version and then installed a new version. There is a subtle but an important difference between the two actions.

To recap.
This thread has nothing to do with a version of the module developed by Chuck Redman and hosted on the Zencart Site. Any queries specific to that should be directed to the Zencart site on which it is hosted or you could create a new thread that Chuck or anyone else familiar with it can respond to.

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
Kevin Logan
Kevin Logan's picture

Joined: 2006-07-06
Posts: 51
Posted: Wed, 2008-04-02 15:45

Hi Dayo, My misunderstanding then. I thought Chuck Redman developed the new G2 zencart module, and you developed the templates. Double well-done then.
So you're saying to save the former product attributes I had (e.g. print size, price etc.) I should have NOT removed from G2 admin the former zencart module, uploaded the new module to the server, overwriting the former old version. Then in G2 admin upgrade the zencart module, and this will keep the product attributes intact, correct?
If that's so, cool.
Thanks for the time & effort,
Kevin

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Wed, 2008-04-02 16:14

Kevin Logan
The history behind the versions posted here are in the codex.

The process you outlined would have maintained your settings ... in most cases.

To avoid some potential issues due to the way v3.x.x files were developed, I recommended that versions before 3.0.0 should be deleted before they are installed assuming you have a v3.x.x installation (you have not specified this). There is a warning that ZC settings will be lost when this is done.

This warning, the history and other stuff is in the codex. Have you read it?

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
dloftis

Joined: 2003-02-03
Posts: 16
Posted: Sun, 2008-04-27 15:13

good stuff...

should the "Xtreme" variant of PGTheme work, or do I need to run the actual PGTheme?

The problem I'm having is that I can't seem to get the add to cart icon to display. It works if I use the Gallery checkout or cart modules, but not zencart. I'm not sure if it's a problem that I'm using Xtreme or I've just done something wrong.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sun, 2008-04-27 16:17

dloftis

Zencart does not work with the add to cart icon or to put it more accurately, at the point in time, no theme associates the add to cart icon with the zencart module.

I have it on a ToDo list for PGTheme but I am not currently actively working on any G2 stuff so it may be a while.
--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
dloftis

Joined: 2003-02-03
Posts: 16
Posted: Sun, 2008-04-27 16:22

I guess the question, then... is how do I add something to the cart?

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2008-04-28 02:52

dloftis
Look at the item actions

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
mstemmer

Joined: 2008-05-13
Posts: 1
Posted: Tue, 2008-05-13 21:51

Hi all,
I'm using Zencart 1.38a and module 3.2.1
When [/i]I click "back to gallery" in Zencart, I'll get an internal Server error (500). A workaround is to delete the address in the browser and retype the link to the gallery. Anyone familiar with this Internal Error?

It seems to happen with main.php. The error appears with this referral: main.php?g2_controller=zencart.PurchaseOptions. So internal server error 500 appears when pressing in Zen Cart "back to gallery"

 
lyonne

Joined: 2007-05-26
Posts: 5
Posted: Sun, 2008-06-01 14:57

Well, things were working too well. I tried to upgrade the module. I have Zencart 1.3.8a working. Gallery 2.2.4 is working. I uploaded the new 1.3.2 version of the module. I am having trouble getting it to active in the Gallery2 Admin. I don't receive any errors, but I don't get success either. The Zencart options don't appear on the left and the Zencart module still has the activate option. I have completely deleted and reinstalled the Zencart module in Gallery2. Where should I be looking for the problem? I appreciate any advice.

Thanks,
Nate

 
lyonne

Joined: 2007-05-26
Posts: 5
Posted: Tue, 2008-06-03 04:59

Ok, adding to my above comment. Activating the module in Gallery makes some of the appropriate albums in zencart. I can see them created. However, the zencart menu never appears in Gallery. I have a lot of albums and pictures so it takes a few minutes to create them when I activate the module. Does anyone know of a time dependent issue I should look for. Additionally, I have replicated this issue with all of the 3.x.x version of the modules. I'm getting better and learning how this all fits together and I think it is pretty slick. I would appreciate any advice on where to focus troubleshooting efforts.

I have tracked the problem down to an issue relating to the large number of galleries and photos that I have in my live gallery. The test version upgrades fine. I have noticed that not all of the galleries get mirrored in Zencart. It seems to be a timeout issue. I have placed a php.ini file in my www root with max_execution_time=3000. However, that has not fixed the problem. Does anyone else know where I should investigate for time limited problems? I'm guessing I am running into a PHP or Apache issue.

Thanks,
Nate

 
lightstudio

Joined: 2008-05-12
Posts: 6
Posted: Mon, 2008-06-09 02:12

Well I followed the instructions to the letter and install the current version of this api. here is the error Im getting:

An error has occurred while interacting with the database.
The exact nature of database errors is not captured unless Gallery debug mode is enabled in config.php. Before seeking support for this error please enable buffered debug output and retry the operation. Look near the bottom of the lengthy debug output to find error details.

Back to the Gallery
Error Detail -
Error (ERROR_STORAGE_FAILURE)

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 1001 (gallerycoreapi::error)
* in modules/core/classes/GalleryStorage.class at line 505 (gallerystorageextras::addmapentry)
* in modules/core/classes/GalleryCoreApi.class at line 2841 (mysqlstorage::addmapentry)
* in modules/zencart/classes/GalleryZenCart.class at line 866 (gallerycoreapi::addmapentry)
* in modules/zencart/classes/GalleryZenCart.class at line 833 (galleryzencart::addalbumascategory)
* in modules/zencart/classes/GalleryZenCart.class at line 833 (galleryzencart::addalbumascategory)
* in modules/zencart/module.inc at line 132 (galleryzencart::addalbumascategory)
* in modules/core/PluginCallback.inc at line 186 (zencartmodule::activate)
* in modules/core/PluginCallback.inc at line 73 (plugincallbackview::handlecallback)
* in main.php at line 433 (plugincallbackview::renderimmediate)
* in main.php at line 94
* in main.php at line 83
* in main.php at line 3

System Information
Gallery version 2.2.4
PHP version 4.4.4 cgi
Webserver Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Database mysql 4.1.22-standard
Toolkits Thumbnail, Gd
Operating system Linux drive30.station030.com 2.6.9-55.EL #1 Wed May 2 13:52:16 EDT 2007 i686

 
knyc

Joined: 2008-06-12
Posts: 5
Posted: Thu, 2008-06-12 00:34
donkeyote wrote:
Hi and thank you all and especially Dayo and ? for this work !

I'm in the same boat as SoftDux with respect needing an "Add to Cart" button or link without using the Options dropdown. I tried Kevin Logan's method above and no button shows up. The Options dropdown works fine.

Should a button show up normally or is it only setup for the dropdown menu. Hmmm ...

Thanks for any help here,
Ed
-------------Update - fixed 2-1-08 ----------------------------------------------
In theme settings, you have to have the "button" actions for photo enabled. All cart references are for Checkout not Zen Cart, so they are all off. But the trick was to include this in the theme.css (in my caes PGtheme)-- adds the icon:

/*************Add ZENCART SHOPPING CART ICON**************/

.gbLink-zencart_PurchaseOptions {

background: url(/gallery2/themes/PGtheme/images/set1/add_cart.gif) left center no-repeat !important;

}

AND make sure that permissions are set so that [Zencart] Add to Cart is on for whatever (if not all - top level Album) items AND [Zencart] View Cart IS NOT set up (no permissions set) - important or you'll never see the link/icon !!

----------------------------------------------------------------------------------

--
Gallerry = 2.2.4
PGtheme / PGsnow = (from Dayo's site - latest ?)
Bridge = 3.2.1b
ZC = 1.3.8a

Hey guys, I am setting up my gallery and zencart and though I am no expert I am learning a lot by reading stuff posted here. I installed the latest ver of gallery (2.2.4) and ZC 1.3.8a I followed all the instruction to the letter and everything seems to be working fine. I added these lines in the template CSS as suggested in the quote, and I get the shopping cart icon to show up on my photo pages. However when I try to add an item to the shopping cart using this icon I get this error.

Error (ERROR_PERMISSION_DENIED)

* in modules/core/classes/GalleryController.class at line 147 (gallerycoreapi::error)
* in main.php at line 189 (gallerycontroller::loadcontroller)
* in main.php at line 94
* in main.php at line 83

System Information
Gallery version 2.2.4......

Can anybody help me out?
I can add the same photo to ZC if I use the dropdown.

Any help is greatly appreciated.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Thu, 2008-06-12 03:51

knyc

Try replacing .gbLink-zencart_PurchaseOptions with .gbLink-zencart_AddItems

--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
knyc

Joined: 2008-06-12
Posts: 5
Posted: Thu, 2008-06-12 04:29

Thanks for the quick response. I made the change you suggested but I get the exact same error message. I did clear all the cache, so I know I am not viewing a cached page.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Thu, 2008-06-12 12:53

knyc
Please post a link to your site.
--
Gallery version = 2.2.4
Default theme = PGtheme 1.3.0
Web Site: dakanji.com

 
knyc

Joined: 2008-06-12
Posts: 5
Posted: Thu, 2008-06-12 12:55