Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: 1 ... 13 14 15 16 [17] 18 19   Go Down

Author Topic: [cpg1.4.x]: Shopping cart (new version)  (Read 210891 times)

0 Members and 1 Guest are viewing this topic.

jp-photo.dk

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
    • JP-photo.dk
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #320 on: March 09, 2010, 03:52:40 pm »

The classic theme should also be installed - the CPG install is right out of the box.

I know my way around PHP, so no problem with suggestions there.

The shop is enabled at the moment - when I disabled it I simply changed the path in the plugins-table in the database.
Logged

Gene-2008

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 188
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #321 on: March 09, 2010, 05:23:28 pm »

The classic theme should also be installed - the CPG install is right out of the box.

I know my way around PHP, so no problem with suggestions there.

The shop is enabled at the moment - when I disabled it I simply changed the path in the plugins-table in the database.


Why are you disabling it that way?
If you have it installed there is a option on the photo_shop admin page to enable and disable the shop.
Are you saying you did not find that an enable it that way?

You should not have to do anything to the database yourself....

Maybe that is some of your problem...how did you do the install of the plugin?
The correct method is to upload the directory and then use plugin manager to install it. Then use photo_shop admin page, find the config on that page.

Gene
Logged

jp-photo.dk

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
    • JP-photo.dk
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #322 on: March 09, 2010, 06:03:20 pm »

When it's enabled, all CSS are missing - and also the Photo Shop button. So I can't get into the Photo Shop admin page. And I can't use the direct URL (http://www.jp-photo.dk/galleri/plugins/photo_shop/photo_shop_admin.php) as this return an error that it's not called from within CPG.

When I installed it, I first removed the old version using the plugin-manager, and opting to keep the databasetables. Then I uploaded the files to the server, and installed it using the plugin-manager.
Logged

Gene-2008

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 188
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #323 on: March 10, 2010, 02:21:36 am »

http://www.jp-photo.dk/galleri/index.php?file=photo_shop/photo_shop_admin.php

To "run" a plugin file you have to pass it thru index.php as shown above.

Have you used the photo_shop before?  The database that it is asking about removing is only
the tables that are there for photo_shop.

If you have just installed photo_shop then it should be disabled by default.
You can be sure it is disabled by changing the data base: look under cpg14x_config for the row photo_shop_enabled.
Change it from 1 (if it is enabled) to a 0.

Another test you could try is to edit the photo_shop/codebase.php and comment out to two lines that are really what get run.
The two lines are:

// User menus
 $thisplugin->add_filter('template_html','photoshop_user_menu');

// Some filters
$thisplugin->add_filter('file_data','photoshop_add_item');

Put // in front of $thisplugin...

If these two don't work...you need more help.
I could help but would need admin login permission and maybe ftp access.

Let me know and I can provide email and we can discuss a reasonable fee.

Gene

Logged

jp-photo.dk

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
    • JP-photo.dk
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #324 on: March 10, 2010, 09:24:07 pm »

I believe we are getting closer now :-)

I've got Photo Shop installed and running the last year or two, so it's an "old" install.

However, when I commented out the $thisplugin->add_filter('template_html','photoshop_user_menu') the CSS started working again, the Photo Shop configbutton showed up and I was able to get into the shop. Ofcourse the Photo Shop menu is missing, but that would be because the photoshop_user_menu() is the function which adds the menu after {SUB_MENU}.

I guess this would point to the function photoshop_user_menu() being the culprit?

This has certainly helped me a lot - thank you very much so far :-)
Logged

jp-photo.dk

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
    • JP-photo.dk
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #325 on: March 10, 2010, 09:31:49 pm »

Found and fixed  ;D

Replaced
Quote
function photoshop_user_menu(&$html){

with this
Quote
function photoshop_user_menu($html){

Simply changed the pass by reference to pass by value (I guess).
Logged

Gene-2008

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 188
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #326 on: March 10, 2010, 10:22:47 pm »

Not sure why that fixed it...that is in the released code and works on my site....and I assume others.
Can you post the php and maybe server OS that you are running?  Maybe some else may run into the same issue.

BTW I am working on (have it working) a version of photo_shop that allows paypal and/or google checkout without requiring
user registration.  All purchase Info comes back to your site via communications with Paypal or Google.

Gene

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #327 on: March 11, 2010, 07:28:18 am »

The difference may lie in different PHP versions that treat references differently: how references work has been changed in PHP5
Logged

jp-photo.dk

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 36
    • JP-photo.dk
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #328 on: March 11, 2010, 10:15:55 am »

I spoke to a colleague today at work, and he's been experiencing similar problems with references when he upgraded from PHP v5.2 to v5.3. I'm currently running PHP v5.3.1 on a Fedore FC12 server.

Could it be that references are handled differently between the two PHP versions?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Logged

nstinc

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #330 on: March 11, 2010, 01:43:25 pm »

You've got other plugins installed (or mods)

Stramm, I am a newbie to this site and was looking for a PM contact link for you but none is apparent, possible because this is my first post. I am looking to pay to have your photo shop mod installed on 3 of my existing coppermine galleries. Would you offer this kind of service or could you recommend someone experienced to do this?

Please PM me if there is another preferred method of contact.

Best regards,
Carl
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #331 on: March 11, 2010, 01:57:22 pm »

We (the dev team members) don't want to be contacted privately - read Private messages disabled. I guess that is the case for Stramm as well. There is no individual support. Post your issues publicly if you want support. If you are looking for a paid supporter to do slave labor for you, start a thread of your own on the sub-board "Looking for Freelancers / Paid help" after having read the sticky thread "sub-board rules, read first!" on that very sub-board. Thanks for respecting the board rules in the future - you agreed to respect them when you signed up. There is a link to them in the navigation and when you compose a new posting.
« Last Edit: March 29, 2010, 11:56:13 am by Joachim Müller »
Logged

julzy

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #332 on: March 29, 2010, 10:03:31 am »

I'm just wondering; I've just installed your shop on my website @ http://adelaidesteampunk.info/gallery

There are still a few things not working correctly: and I can't seem to find anything explaining how to fix this problem..

This is with paypal.

Once a buyer has selected their photos, added them to the cart, gone through checkout, confirmed the order etc. they are faced with an option "pay with paypal" (button) or "continue"

If they do not select "pay with paypal" then - they cannot find their way to pay for photos any other way. They can return to "my orders" but there is no way for them to pay?

I must be missing something bleeding obvious..

Is there another way they can at a later time come back and pay for their photos?

Thanks :)
Logged

Gene-2008

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 188
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #333 on: April 07, 2010, 09:58:59 pm »

No there is no going back....

Gene
Logged

Gene-2008

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 188
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #334 on: April 07, 2010, 10:51:51 pm »

Stramm,

    There appears to be a race condition in your code that gets and then increments the order ID.  In photo_shop_checkout.php the code gets the oid from the shop table in the database.  It increments it and later in the photoshop_add_data function it writes the incremented value into a new row.  If another user starts to make a purchase before that write there could be two orders with the same oid.

Am I missing something that makes this not the case?

Gene


Logged

msvweb

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
copy files to the download folder
« Reply #335 on: April 12, 2010, 03:47:04 pm »

Hello.
I have one question.
I would like to use this plugin "Photo Shop", but I needed to modify some features.
Unfortunately, I can not find the PHP code function that copies files to the download folder.
(after pressed "C" button - Copy files into download dir and download them... dir must exist)
Could you advise me where should I look? Thank you.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 6006
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #336 on: April 12, 2010, 04:12:57 pm »

Have a look at the file photo_shop_download_order.php. Here photo_shop_paypal_ipn_addpic.php is getting called that finally's copying the images.
Logged
my CPG sandbox: Version 1.4.18 with modpack running my Tentacle theme:
http://stramm.st.funpic.org/

bossturbo

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #337 on: June 02, 2010, 04:28:36 am »

Any chance of a 1.5 version?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #338 on: June 02, 2010, 09:22:36 am »

What has been said in Don't ask for other versions applies to plugins just as well.
Logged

falcoln0014

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 3
    • Psychotic Studios
Re: [cpg1.4.x]: Shopping cart (new version)
« Reply #339 on: June 25, 2010, 11:11:58 pm »

I'm currently running CPG 1.4.27 with modpack 1.4.26 and I'm having some issues with Photo Shop V1.4.1. I'm wanting to stop spammers with the reCAPTCHA for Coppermine v2.7 plugin, but I can't seem to tie it into Photo Shop. From what I've read you can only have one reCAPTCHA box per page and the page users are directed to upon checkout has both a registration form and a login form.

Is there some way to easily remove the registration form and just leave the login upon checkout? I would prefer for users to register through the main register.php, so they have to use the reCAPTCHA system.

Is removing the registration form from photo_shop_register.php the right way to go about doing this? I wanted to make sure it wouldn't cause any problems before doing so.
Logged
Pages: 1 ... 13 14 15 16 [17] 18 19   Go Up
 

Page created in 0.023 seconds with 21 queries.