[Module] Zencart Bridge
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
animas 1) All this module does is integrate Gallery 2 with ZenCart. You may want to investigate each one of the two programs a bit to find out what exactly they can achieve. With both working together, it is indeed possible to have a setup where people upload their own images to your gallery, then order prints of those images from you and then pay you for the privilege. 2) I do not know of any demos with a similar scenario you speak off and would love to meet whoever manages to pull it off : ) On a serious note, assuming you run a print shop where you want customers to upload images which you then print and send to them, It is possible in theory but will need some further modifications to the module. As things stand, anyone will be able to order prints of any images on the system. If that does not represent a barrier to you, then I suppose you can proceed. I doubt if there are any demos but check the Zencart Site out for further info. . |
|
animas
Joined: 2007-11-29
Posts: 10 |
![]() |
Thanks Dayo. If customers set their images to private in gallery will this module forbid others to see/order other's private photos? |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
animas The module does not forbid or control any thing of this nature, it simply links G2 and ZC. If an album is restricted in G2, then G2 will stop others viewing them. However users will still be able to see the images in ZC if they are familiar with ZC. Remember we are dealing with two separate programs. G2 already has a means to restrict access to albums and what you need to find out is whether ZC also has a means to restrict access. I doubt this but the best place to ask about this is on the ZC Forum. . |
|
animas
Joined: 2007-11-29
Posts: 10 |
![]() |
Thanks. |
|
wave
Joined: 2007-12-01
Posts: 6 |
![]() |
Hi all, Am new to the realm of Gallery 2 and it's great to see this bridge. Kudos to all involved! I'm intending to use Zen Cart to allow Gallery 2 users to purchase additional gallery quota (I can't find a quota purchase module anywhere) Here's my question(s): Hope this makes sense. Thanks in advance. |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
wave Zencart and this module may not be the right tools for what you want. I'll suggest taking a look at the Checkout Module instead. In the event that you prefer to use Zencart, then 1) Users cannot login with their G2 credentials. They will have to log in separately in Zencart. . |
|
hugue
Joined: 2007-12-01
Posts: 1 |
![]() |
hi! zencart is installed within gallery2 folder just as in the instructions. the error is that when i try to enter the zencart path (i tryed relative and absolute paths) when i click SAVE, it takes me to a blank page (www.domain.com/gallery/main.php) and it stays there BLANK. any suggestions?? thanks for your time |
|
FlexibleInternet
Joined: 2007-01-25
Posts: 4 |
![]() |
Dayo Thanks - sorry for that - can't believe I missed that bit in the instructions. I applied the upgrade as per the instructions in the readme.txt and now have the descriptions in Zen Cart but I have another issue. In G2 admin under modules, I am showing Zen Cart as Installed: 3.0.2 Version: 3.1.1 but under Actions the links to "activate" / "deactivate" , "uninstall" etc are not there. All that is under actions is "upgrade" and clicking that link does nothing. I re-copied the 3.0.2 files and all went back to normal. I then re-applied the upgrade files and just get the "upgrade" link that does nothing. This means that I cannot activate the module. What have I missed this time please? Thanks Mike |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
FlexibleInternet It appears some bugs were introduced in the changes between Version 3.0.2 and 3.1.0. Those changes have been removed for the time being until the code can be audited. Please apply the upgrade to Version 3.1.2 which essentially represents a jump from 3.0.2 to 3.1.1 and bypasses 3.1.0. . |
|
wave
Joined: 2007-12-01
Posts: 6 |
![]() |
Thanks for the details Dayo. |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
hugue Please apply the upgrade to Version 3.1.2 Gallery version = 2.2.2 |
|
FlexibleInternet
Joined: 2007-01-25
Posts: 4 |
![]() |
Dayo That has sorted that problem, thanks Dayo. |
|
tlaloc22
Joined: 2007-11-20
Posts: 5 |
![]() |
witch versions of Gallery, Zendcart, and module have working perfectly?? |
|
tlaloc22
Joined: 2007-11-20
Posts: 5 |
![]() |
ok ok i got it http://www.amorcho.com/store/index.php?main_page=product_gallery_info&cPath=1_3&products_id=9 CanvasATTRIBUTES_PRICE_DELIMITER_PREFIX+$2.00ATTRIBUTES_PRICE_DELIMITER_SUFFIX how can i fix it? |
|
tlaloc22
Joined: 2007-11-20
Posts: 5 |
![]() |
I fixed adding this lines to the "includes/languages/english.php " file define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( '); define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )'); define('ATTRIBUTES_WEIGHT_DELIMITER_PREFIX', ' ('); define('ATTRIBUTES_WEIGHT_DELIMITER_SUFFIX', ') '); Thx |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
tlaloc22 Been away over xmas but I just checked out your site and it is not quite working the way it should be working. As for which version of ZC the module was made for, well it is in the title of this post which is 1.3.7. However, I do not think there should be major issues with 1.3.8 although I have not tested that version. - EDIT: UPDATED FOR 1.3.8a What versions have you got installed, How much edits have you done to what you have and what issues did you experience with the original installation? . |
|
rgrahame
Joined: 2005-12-20
Posts: 22 |
![]() |
I just discovered Zencart (1.3.8a Database Patch Level: 1.3.8) and am trying to get the G2 module (v 3.1.2) to work. I get to the Actvate step in G2 Site Admin Plugins and when I click, I get the green highlight bar (I am using the Xtreme theme with black color pack), but, nothing happens. My Zencart is installed outside of the G2 directory, but, I set the path correctly and the setup gave me my catagory in Zencart to select. Thanks Bob Gallery version = 2.2.1 core 1.2.0.1 |
|
blablo9
Joined: 2007-06-10
Posts: 9 |
![]() |
you guys are really doing a great job, thank you very much! |
|
Richard King
Joined: 2007-07-08
Posts: 24 |
![]() |
First off.. Thanks for the great work - i sell photo's from my wesite, and the zencart route seems the mature way to go I have a couple of "usability observations" As a working photographer I can drop in 1000's of images at once using gallery remote, and the bridge prices them on the way through to zencart(wickedly cool). Adjusting the prices and options in the bridge is a royal pain in the butt. Setting the pricing once is fine, changing them causes all sorts of issues (as each change is seen as a new set of attributes in zencart) What would be really great if instead of dropping the images into 1 catagory, we could choose catagories in zencart, or if if the catagories automatically mirrored the folder/album structure in gallery. This would make subsequent price changes a whole lot easier (from the zencart end). This would also make differentail pricing much easier I will illustrate my situation to explain what i mean Proofing = no pricing, but a cart or commenting system would be the best bet All of these things are achievable in zenncart, but because they are priced on attributes only, changing them is a very one by one timeconsuming exercise In terms of the templates - I re-wrote a zencart templates to match G2, which is a lot of work, but reltivly simple. A return to gallery link is an easy addition (to the zencart breadcrumb). In a month or so I will be re-writing the headers for both the zencart and G2 to make a total site integration Again I would say that the work done so far is fantastic, and is a credit to the contributors Cheers Richard King |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Richard King I think what you want should be possible with the existing setup. You should be able to create albums in G2 as Proofing, Weddings, Portraits, Stock, Fine Art etc and apply the pricing and other attributes to items in those albums in bulk. All the best! PS. The return to gallery link has already been implemented. . |
|
Richard King
Joined: 2007-07-08
Posts: 24 |
![]() |
Dayo wrote:
Richard King Any ideas how..? certainly I can edit them one by one in zecart, but in bulk seems to be elluding me If you know how to make zencart organise the photos in groups, rather than dumping them in 1 catagory, that would be swell too |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Richard King Every thing goes into one category but you can organise things in G2 by having a relevant album structure. The problem you will probably face will be how to control access in ZC. This ZC contribution should help. Advice is to go to ZC site as well and ask some questions there. . |
|
pcp20us
![]()
Joined: 2006-03-31
Posts: 109 |
![]() |
Guys this is a grat module and learning as i go. I am currently testing and playing for a while to get my head around all this stuff. I am no phper but getting there. I posted this on the worng thread re an issue with the zen cart module. I am using thr latest g2 with the latst zencart module. I am uding the PGCharcoaltheme Low-Res images: ATTRIBUTES_PRICE_DELIMITER_PREFIX+$15.00ATTRIBUTES_PRICE_DELIMITER_SUFFIX This is the fix i found Is this the correct procedure for this fix ?? I think maybe not as i don't find any other posts re this problem? fixed adding this lines to the "includes/languages/english.php " file cheers Pete |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
pcp20us The issue is due to changes in the current Version of ZC (V1.3.8a) from the one the module was based on (V1.3.7). The templates included have also been significantly refined. You can see one at work on my site with a showcase store. Check the download link after 2000 GMT. . |
|
pcp20us
![]()
Joined: 2006-03-31
Posts: 109 |
![]() |
Thanks Dayo BYT i did mention this in another thread but think it beeta here !! This is a great bit of code and what ive been looking for and all involved are doing a good job. Look forward to running the new versions. It would be nice to have the ability to understand php and to right your own modules, but when i look at php its like an accountant looking at engineering !! Thanks for the quick reply Cheers Pete Australia |
|
Kevin Logan
![]()
Joined: 2006-07-06
Posts: 51 |
![]() |
Hi Dayo, Remember me? You wrote awhile back letting me know about your new zencart/g2 bridge & templates. .gbLink-zencart_PurchaseOptions { background: url(/gallery2/themes/PGtheme/images/set1/add_cart.gif) left center no-repeat !important; } Works, but lame I reckon. Cheers & all the best, cc: G2 forum |
|
Richard King
Joined: 2007-07-08
Posts: 24 |
![]() |
Dayo wrote:
Richard King Thanks for that. As you may have gathered im up to my neck in other web work at the moment. when I am done will devote some time to looking at this properly My hunch is that I will need to write a few pages to access the zencart SQL data and change it in chunks. I would imagine this would be really easy if I was strict with my file names.. i.e. find all entries with name eventXYZ and do this (ABC) to the accociated attributes... |
|
Kevin Logan
![]()
Joined: 2006-07-06
Posts: 51 |
![]() |
Anyone know where to edit to change the width of the header, in tpl_product_gallery_info_display.php? I am assuming the header wrappers? I would like to make the width smaller. |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Kevin Logan I think it is #logoWrapper. . |
|
Kevin Logan
![]()
Joined: 2006-07-06
Posts: 51 |
![]() |
Dayo wrote:
Kevin Logan Hi Dayo, |
|
pcp20us
![]()
Joined: 2006-03-31
Posts: 109 |
![]() |
Hi Richard Hereis what i found in my notes. I just found how to adjst the page width. see belowfrom zen cart forum How can you set the wrapper function so it is differmet for differnet screens? You have to make a copy of it from \zen\includes\templates\template_default\css and put the copy in your custom theme folder \zen\includes\templates\YOUR_TEMPLATE\css, creating all the folders too if you haven't already. Then you can change the custom stylesheet and your original one will stay original and you will have a clean copy to study and fall back on if you get stuck changing the custom one. cheers Pete cheers Pete |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
pcp20us Richard has already found how to change this. YOUR_TEMPLATE being referred to is something like pgxxx (a custom template) and not a literal template called YOUR_TEMPLATE. In order words, what should be changed is the stylesheet in pgxxx as Richard has done or better still, create a new custom template based on pgxxx. PS. Refer to Point 3 in "Then, Install Module Files in ZenCart" in the Codex . |
|
pcp20us
![]()
Joined: 2006-03-31
Posts: 109 |
![]() |
pcp20us wrote:
Re this problem with pricing. I applied your new theme, thanks for the update. I am still running ver 1.3.7 of zcart, same problems even after the upgrade This is wahat is displayed Has anyone had this? as i am a bit confused ?? Cheers Pete |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
pcp20us Please provide a link to your site, specify which version of Zencart and of the module you are using and list any changes / modifications you may have carried out. If you use the specified version of Zencart (1.3.8a), the current version of the Module (3.2.x) and follow the detailed instructions in the codex, you should not have this issue. . |
|
pcp20us
![]()
Joined: 2006-03-31
Posts: 109 |
![]() |
Dayo My site is only local so cannot give you access? cheers Pete |
|
pcp20us
![]()
Joined: 2006-03-31
Posts: 109 |
![]() |
Dayo and others. I upgraded my zcart to 1.3.8a and it now works and passes the variables. cheers Pete |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
pcp20us Glad to hear that. You might want to hold off doing too much with that version of the module as Version 3.2.1 is due out soon. It has had several minor tweaks (too many to list) and the headline is that users will be able to implement password control of albums and items in Zencart. Lack of such control limits the use of the module for event shooters etc as it stands. In any case, even if the access control is not important, the tweaks should be worth it. This version of the module is planned to be the last for ZC 1.3.x. The foot print will be large and it will affect several files. . |
|
AjantaKVS
Joined: 2007-12-14
Posts: 15 |
![]() |
hugue wrote:
hi! AjantaKVS Hello, Did you find the solution for this? I am facing exactly the same problem, so please let know if you got it rectified. I am on Gallery 2.2.3,Zencart 1.3.8a and the ZC-G2 bridge is 3.2.1 |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
AjantaKVS hugue's issue was to do with a previous version of the module. If you can access your server error logs, please filter by "g2_subView=zencart.AdminZenCart" and send to me by PM. In the meantime, exit G2 Admin and then go back and retry. PS. Thanks for clearly stating your version numbers. There is nothing more frustrating than references to "the latest version" or worse still, no information on this, when people ask for support. . |
|
SoftDux
![]()
Joined: 2007-03-27
Posts: 56 |
![]() |
Hi Dayo I'm also having a problem getting it to work. I installed the zencart scripts to /home2/actisnet/publich_html/shop - as per the intructions, and set the template without a problem. Then, I copied the Zencart module for Gallery2 to /home2/actisnet/public_html/modules/zencart & went to my Gallery's Plugin management and can see it there. When I click on configure, and set the path to /home2/actisnet/publich_html/shop and hit save, I also get a blank page. I've tried this a few times now already. I'll PM you the output from the raw access log file -- |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
SoftDux Thanks for the PM but I was actually looking for output from the error log filtered accordingly. For those having issues. 1) Is this an upgrade from an earlier version of the module or a first install? I have 3.2.1 running on my site and can download my files and repost but that will be taking a stab in the dark and I want to try to track down the issue. Thanks . |
|
SoftDux
![]()
Joined: 2007-03-27
Posts: 56 |
![]() |
Sorry, Dayo This is a new installation. I'm on a shared cPanel server, so the only way I could get the logs was to download the whole raw access log gile from cPanel & open it in notepad. Is the info suffiecient, or do you need more? -- |
|
AjantaKVS
Joined: 2007-12-14
Posts: 15 |
![]() |
AjantaKVS Hello Dayo, Tried 3 or 4 times, every time same result pointing to gallery2/ main.php with a blank white page result. Some more details: # It is first installation not upgrading any earlier module versions. Thank you for the help. |
|
SoftDux
![]()
Joined: 2007-03-27
Posts: 56 |
![]() |
AjantaKVS, what server do you run, if you say it's localhost? Are you on Linux, Mac or Windows? The best bet would be to do a search for httpd.conf & open it in any text editor, and then search for error_log, which will tell you where it is. Most WAMP installations have it in the /logs folder under apache. In Linux it would be under /var/log/apache/error_log. I'm not sure about MAC |
|
AjantaKVS
Joined: 2007-12-14
Posts: 15 |
![]() |
SoftDux wrote:
AjantaKVS, what server do you run, if you say it's localhost? Are you on Linux, Mac or Windows? The best bet would be to do a search for httpd.conf & open it in any text editor, and then search for error_log, which will tell you where it is. AjantaKVS Sorry for that, I am windowsXP with a XAMPP installation as test and learning environment.And will follow,what you have said and get back with results. Thanks for early reply |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
Version 3.2.1a posted. Try it and let us know if it resolves the issue. I will be offline until about 1900 GMT. . |
|
SoftDux
![]()
Joined: 2007-03-27
Posts: 56 |
![]() |
I have installed the 3.2.1a as well, and still get the blank screen. Would you be able to check it yourself if I gave you SSH access to the server? -- |
|
SoftDux
![]()
Joined: 2007-03-27
Posts: 56 |
![]() |
Please delete this empty double post -- |
|
Dayo
Joined: 2005-11-04
Posts: 1642 |
![]() |
OK. I have downloaded and rebuilt the module from files tested as working on my site as Version 3.2.1b. ******UPDATE****** Thanks to SoftDux for helping debug this. . |
|
SoftDux
![]()
Joined: 2007-03-27
Posts: 56 |
![]() |
Guys, not to sound stupid, but how to I change it so that I don't have the use the drop down below each photo to add it to the cart? How do I get a "Add to cart" button next to / below each photo? I use the carbon theme. Also, how do I order the print sizes? I currenly have A5, A4, A3 & A2, but it puts A2 @ the top (due to ASC odering, I presume I need to change it to DESC). My site is http://www.actionlens.net - you'll see what I mean -- |
|