ZenSimpleCart shopping cart plugin 0.1 beta

Check the link to download or more info on installation and configuration.
http://code.google.com/p/zensimplecart/

http://code.google.com/p/zensimplecart/wiki/Documentation

I still have a lot of work to do still but I think its good enough for release tot he public
«1

Comments

  • acrylian Administrator, Developer
    Thanks, third party plugins are always welcome. I will add it to your extensions section soon.
  • acrylian Administrator, Developer
    Entry is up: http://www.zenphoto.org/news/zensimplecart

    I did not test but Google Checkout is now named Google Wallet for some time alreaday. Best you check if that all works as expected.

    I would maybe take the British Pound to the default currencies as well.
  • Ok will add that to things I have to fix in Google code
  • Moved the plugin to GitHub ... I love their interface much better than goggles :)

    @acrylian I appreciate your help in updating the entry
    https://github.com/philbertphotos/ZenSimpleCart
  • acrylian Administrator, Developer
    All right, entry updated. (I would put the url of your actual website somewhere as well. like on the Github profile or so..:-))
  • Hello Jphilbert

    I'm trying to install your plugin as it's much needed and I get the following error when trying to enable the plugin..

    Parse error: syntax error, unexpected '[' in /home/amand/public_html/shop/plugins/ZenSimpleCart.php on line 132

    I've uploaded the following structure to my plugins folder..

    ZensimpleCart (Folder)
    README.md
    ZenSimpleCart.php

    Can you please tell me what I'm doing wrong?
  • @amandan its now fixed. Sorry it took me so long to reply but my other account cannot post for some reason. When I first released the plug-in it was tied into a theme I was designing so I had to change that.

    I removed all dependencies and smashed some minor and major bugs.
  • Hi,

    I'm wondering if anyone can help a newbie with an issue I'm having with Zensimplecart?

    I've tried to install the plugin, but whenever I try to activate it, I get the following error:

    Parse error: syntax error, unexpected '[' in (my path here)/ZenSimpleCart.php on line 335

    This '[' bracket comes just before the "price" variable.

    If anyone can shed any light on why this is occurring I'd be very grateful!

    Thanks,

    D.
  • What version are you using ??? Let me know if you using version 1.8 it has tons of fixes and updates and I currently use it on

    http://signature.philbertphotos.com ...and it works perfectly.

    BTW I am the developer and will will help you get it running,
  • Hi jphilbert,

    I am using version 1.8 of zensimplecart and version 1.4.4.3 of zenphoto.

    I have seen it in action on your site already and it looks great (as does your site btw). I'm sure it could well do the job, but I just wanted to play around with it a little first!

    Could you confirm the correct folder structure for uploading the files to the server so that we can eliminate any issues there?

    Also, as the error seems to relate to prices does that mean I would need to have prices set for all albums before I install the plugin?
    (Which I haven't done as yet - only on one album. I know it seems a little strange, but I'm just trying to find out why it won't install correctly)?

    Thanks for your help in this matter - nice to have the attention of the original developer! :-)

    D.
  • I made the plugin to follow the recommendations of Zenphoto guidelines ... you need to install it in the "www.zenphoto\plugin" folder.

    After the installation you can add prices Globally in the Gallery Custom DATA that way it shows in ALL albums by default, but if you add the price list to the Album or Image custom data area it will take over first and ignore the global price list..

    What I need to do is install this plugin on a fresh version of zenphoto to make sure there is no start up bugs I missed .

    Most of what I did when I crated the plugin was on a current install.

    Opened this issue on github
    https://github.com/philbertphotos/ZenSimpleCart/issues/2
  • Problem fixed ... please download 1.9 and delete the old version COMPLETELY :)
    case-sensitive bug
  • hi jphilbert,

    Thanks for looking into this.

    The reason i asked about the installation location is that there are a couple of files in the zip file that are outside of the folder. (README.md & ZenSimpleCart.php).
    At first I uploaded these into the zensimplecart folder on the server (as I assumed all files would need to be in a folder) and it didn't work. I then uploaded them outside of the folder and only then could I see the plugin in the list.

    I have tried version 1.9, on a fresh install of zenphoto, but get the same error message! The only difference is the line number (now 370 instead of 335) but it refers to the same line!

    It clearly works for you, so I'm still trying to work out what I'm doing differently/wrong?

    I can't see the info file or the options either - both are just blank! (in the plugins list in zenphoto).

    Thanks for explaining how the prices work - sounds quite straightforward - just wish I could get on with playing with what seems like a great plugin!

    Any more ideas?

    D.
  • Actually, I've had a little play around and notice that if I change the variables/arrays at line 370, 371 and 372 for absolutes, I can actually get it to install!

    It doesn't work properly however, but I guess it may help to pinpoint the problem?

    On line 370, I changed 'count(getPriceList($value)["price"])' to 10.

    On line 371, I changed: 'getPriceList($value)["price"][$i]' to 100

    On line 372, I changed: 'getPriceList($value)["desc"][$i]' to 'test'

    It then allowed me to install.

    Does this help you to diagnose anything? Perhaps it's down to some php setting?

    Grateful for any help you can offer...

    D.
  • acrylian Administrator, Developer
    @suedoughnym Our user guide could have saved you some time on installing: http://www.zenphoto.org/news/how-to-install-third-party-plugins
  • Hi acrylian,

    You are indeed correct - I may well have saved a little time there. :)
    Thanks for the link.

    I admit I just went ahead and installed according to my intuition, which clearly failed me on this occasion.

    Can I just ask...if this is the way plugins are installed how are they uninstalled if there are files scattered within the plugins folder?

    D.
  • acrylian Administrator, Developer
    The files are not scattered. As the link above tells a plugin is either a standalone file or the file together with a folder of the same name. The readme you refer to above is added by GitHub and not part of the plugin actually.
  • Thanks acrylian,

    That is how I understood it to be, and how I eventually installed the zensimplecart plugin.
    I uploaded the folder, complete with subfolders, to the /plugins folder and the standalone php file of the same name to the /plugins folder.

    However, I was a little bit confused as the link that you directed me to above states: 'Don't upload the folder these are contained but the files itself to the /plugins folder'.

    I know I am quite new to zenphoto, but could this be a bit misleading?

    Obviously, I don't mean to criticise in a negative sense, I'm just wondering if this sentence clearly describes what actually happens?
    If it does then I'm more confused than ever! ;)

    D.
  • It is a difficult situation. The normal structure for plugins is that there is a root php script and possibly a folder similarly named. A plugin developer may choose to place both those into a single containing folder for distribution purposes. I suspect that is what was the case here.

    So his instructions probably should have said to upload the contents of the folder, not the folder itself. The contents would be the root script and the folder containing the support files.
  • Hi sbillard,

    There seems to be a little confusion here - I apologise for not making myself clear.

    The plugin developer, @jphilbert, did indeed structure his plugin with a root php script and supporting folder of the same name. This is in accordance with the normal structure for plugins. (I just misunderstood it originally).

    It was the zenphoto user guide, not the plugin developer, that seems to contradict this convention by stating: "Don't upload the folder these are contained but the files itself to the /plugins folder"

    D.
  • @suedoughnym did you get it to work .. I tested it myself on a super-clean version of zenphoto and it worked no problem.

    I will update the install instructions later today thats my bad..

    copy ALL files to the plugins folder just as it is in the zip file minus the readme.md .. I will change the github folder structure to avoid this in the future.
  • acrylian Administrator, Developer
    @suedoughnym: I have updated our instructions to be really clear as well.
  • @jphilbert - No. I still can't get it to work!
    Not sure what I'm doing wrong, but it's getting very frustrating!

    It doesn't seem to like the way the variables are assigned on lines 370-372.
    If it works for you (& countless others) then I presume it must be some php setting or the version used? (I am using ver 5.2.17)

    All I've done is installed zenphoto, uploaded the zensimplecart 1.9 plugin to the plugins directory and then when I try to activate it I get an error of:
    Parse error: syntax error, unexpected '[' in /[my_path]/zenphoto/plugins/ZenSimpleCart.php on line 370.

    Any other suggestions?

    D.
  • Thanks @acrylian! I think those instructions are much clearer, especially with the example...

    D.
  • man strange I have no idea why ... what version of zenphoto are you running?

    It just does not make any sense ... would you mind making me and account on the zenphoto with admin access that way I can look at it and get it fixed?

    <mail address removed for spam protection..;-)>
  • acrylian Administrator, Developer
    jphilbert, it is quite dangerous to openly post the mail address given how much spammers like our forum...

    A guess, it could be the server, maybe you did something special for a PHP version suedoughnym does not have.
  • Thanks people...

    jphilbert - I have version 1.4.4.3 of zenphoto, which I understand to be the latest?

    I can set you up as a user, but I'm not sure it would help much?

    I can see acrylian's point - hope you don't get spammed too much!

    Thank you both for your help so far in sorting this out.

    I'm just trying to assess this software before I use it on a client's site - if it has no cart it's not going to be useable for me on this occasion so that's why I'm trying to get this right...

    D.
  • acrylian Administrator, Developer
    Since you probably have the mail address now, I will remove it for safety.
  • It works flawless in 3 different versions of Zenphoto some were clean others had data .. so I sure its a senseless bug .. I need to get on the back end to verify what it is and fix it for you and anyone else it may happen to..

    So when you have the chance send it to me so I can have look. I am sure I can fix it ..
Sign In or Register to comment.