[cpg1.4.x]: Shopping cart (new version) - Page 17 [cpg1.4.x]: Shopping cart (new version) - Page 17
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

[cpg1.4.x]: Shopping cart (new version)

Started by Stramm, December 21, 2008, 11:43:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jp-photo.dk

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.

Gene-2008

Quote from: jp-photo.dk 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.


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

jp-photo.dk

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.

Gene-2008

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


jp-photo.dk

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 :-)

jp-photo.dk

Found and fixed  ;D

Replaced
Quotefunction photoshop_user_menu(&$html){

with this
Quotefunction photoshop_user_menu($html){

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

Gene-2008

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


Joachim Müller

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

jp-photo.dk

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?

Joachim Müller


nstinc

Quote from: Stramm on March 09, 2010, 11:57:53 AM
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

Joachim Müller

#331
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.

julzy

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 :)

Gene-2008


Gene-2008

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



msvweb

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.

Stramm

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.

bossturbo


Joachim Müller


falcoln0014

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.