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

News:

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

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.

TheCzech

You do have to login (testuser/test) and go to My pictures. The website comes up for you, right?

Joachim Müller

It is offline. See attached screenshot.

TheCzech

Ok, I see what you mean by "it is offline".

The website is up, you just don't see any public categories/albums. That's because I don't have any, that's not what the website is for. The purpose of this website is for my customers to come in, LOG IN, and see the pictures from their photoshoot with me. I'm not selling any photos to public.

That's why I provided the login info: testuser/test. With this login you'll be able to reach My gallery (or My pictures, as I have it set up) and try to purchase pictures from there.

I really appreciate you guys trying to work on this for me. Thank you.

Stramm

In my book this has to do with the cookies... I'd need to test some things. Therefore it would be perfect if you could pm me an admin account and FTP for the gallery directory.

If that's not possible I can guess what it might be and email you a replacement file to test.

TheCzech

Of course it's possible, ... I PMed you the admin/ftp login info.

jaus

On the shopping cart page for the photo_shop plugin there is a box that would seem to allow he purchaser to modify the amount of the purchase.  There is also a button for "Save New Amounts"

I have tried entering new amounts and hitting the "Save..." button , but the new amounts are never retained?

The only way the I have found to increase the amount is to go back to the image page and 'add' another of the same item.

What am I missing?

Also , is there a way to remove the dropdown menu that describes "Items to Download" or "Items on CD" ?

Thanks,
Joe.

Stramm

little bug...

in photo_shop_cart.php find
if ((is_numeric($_POST[$item_id]) && $SHOP_CONFIG[$_SESSION['photoshop']['cart'][$key]['id']]['size'] != 0 )) { //is the new amount numeric... then change it

and replace with
if ((is_numeric($_POST['count'.$item_id]) && $SHOP_CONFIG[$_SESSION['photoshop']['cart'][$key]['id']]['size'] == 0 )) { //is the new amount numeric... then change it


this will allow changing the amount for 'print' images. Downloads aren't affected

Stramm

Quote from: TheCzech on March 07, 2009, 02:40:20 PM
Of course it's possible, ... I PMed you the admin/ftp login info.

Thanks for the user/ pass. I've updated your gallery with fresh versions of the cart and checkout that fix your issue (hopefully). Please report back. If all works as expected for you, please delete the FTP and coppermine users you created for me.

TheCzech

Quote from: Stramm on March 09, 2009, 02:59:51 PM
Thanks for the user/ pass. I've updated your gallery with fresh versions of the cart and checkout that fix your issue (hopefully). Please report back. If all works as expected for you, please delete the FTP and coppermine users you created for me.

Thank you so much, Stramm, everything seems to be working now.

Just out of curiosity, what was the problem? Something related to my host server, or cookies or something else?

Also, I'd like to send you a little donation, would you please direct me to your a page with your paypal donations button?

Thanks again!

jaus

I have been trying to set up the Paypal IPN communication but have been having problems.  The return URLs work on my local test site, but on my real webhost I get an 'Internal Server error'.

The url I last tested was the cancel URL (index.php?file=photo_shop/photo_shop_paypal_ipn&action=cancel)

After logging into Paypal sandbox and then hitting the 'cancel' link, the browser attempted to go to the proper url on my site but returned the internal server error.   I called my web host, they looked up the apache logs and sent me this error message which had occurred:

[Thu Mar 12 15:25:02 2009] [error] [client 216.110.94.227] malformed
header from script. Bad header=index.php: index.php

Would this refer to a script in coppermine/index.php, or in photo_shop/photo_shop_paypal_ipn.php?

What might be happening the would cause this error on my online host, while not giving me a problem on my local test server.  I also have not been able to get anything but 'Invalid' responses from the Paypal IPN on my test transactions and the two may be connected.

Thanks,
Joe



erika_conn

Quote from: Stramm on December 21, 2008, 11:44:21 AM
FAQ: (later)

Screenshots (older version): http://forum.coppermine-gallery.net/index.php/topic,32231.msg149770.html#msg149770
In this thread already a lot of questiones got answered.

Hi Stramm,

I know this is probably out of sequence but  regarding moving
"More features:
-   If you need the basket buttons elsewhere, then edit template.html and use the placeholder {CART_MENU} where you need it. "

Well, I can't find that file anywhere.  The only template.html file is in the Coppermine section and - well - I just don't know where  to put {CART_MENU}.  I would like to put it within the intermediate picture right under "Add image to shopping basket" http://fotosbyerika.com/displayimage.php?album=16&pos=2. I think it would make the most sense there.

Right now, it's in top left corner. How can I get that to appear under the "Add image..."? Maybe I could have it in both places.
For the life of me, I can't figure out where to put the {CART_MENU}


Stramm

Quote from: jaus on March 12, 2009, 09:55:05 PM
I have been trying to set up the Paypal IPN communication but have been having problems.  The return URLs work on my local test site, but on my real webhost I get an 'Internal Server error'.

The url I last tested was the cancel URL (index.php?file=photo_shop/photo_shop_paypal_ipn&action=cancel)

After logging into Paypal sandbox and then hitting the 'cancel' link, the browser attempted to go to the proper url on my site but returned the internal server error.   I called my web host, they looked up the apache logs and sent me this error message which had occurred:

[Thu Mar 12 15:25:02 2009] [error] [client 216.110.94.227] malformed
header from script. Bad header=index.php: index.php

Would this refer to a script in coppermine/index.php, or in photo_shop/photo_shop_paypal_ipn.php?

What might be happening the would cause this error on my online host, while not giving me a problem on my local test server.  I also have not been able to get anything but 'Invalid' responses from the Paypal IPN on my test transactions and the two may be connected.

Thanks,
Joe




URL ?

Stramm

Quote from: TheCzech on March 09, 2009, 03:22:17 PM
Thank you so much, Stramm, everything seems to be working now.

Just out of curiosity, what was the problem? Something related to my host server, or cookies or something else?

Also, I'd like to send you a little donation, would you please direct me to your a page with your paypal donations button?

Thanks again!

Your host didn't accept or better it doesn't pass post arguments when not specifying the file name but using arguments in the URL eg. url.com/?name=123. url.com/index.php?name=123 is working
The file name by accident dropped out when adding ssl support and therefore dropping php self

jaus

Quote from: Stramm on March 13, 2009, 08:32:46 AM
URL ?

Here is the full url:

http://joeaustinphotography.com/cpg1420/index.php?file=photo_shop/photo_shop_paypal_ipn&action=cancel

but I'm afraid all you get is the generic 'Internal Server Error' page that I described.

There is also reference to a 404 page not found error , but that is a result of the server searching for a custom error handling page that is not present and not the main problem.

Stramm

Download the photo shop plugin again... maybe try another mirror then reupload. Make sure you overwrite the existing files. Make sure you do not edit the files first and make sure your FTP client does neither.

In your actual 'problematic' file I've seen a bom ( http://de.wikipedia.org/wiki/Byte_Order_Mark ).

jaus

Quote from: Stramm on March 13, 2009, 04:06:27 PM
Download the photo shop plugin again... maybe try another mirror then reupload. Make sure you overwrite the existing files. Make sure you do not edit the files first and make sure your FTP client does neither.

In your actual 'problematic' file I've seen a bom ( http://de.wikipedia.org/wiki/Byte_Order_Mark ).


I uninstalled the plugin, and deleted the plugin via coppermine's manage plugins page.

I dl'ed the plugin from the first post on this thread and uploaded it with Filezilla.

Re-installed the plugin in coppermine and checked the configs.  No modification to files or configuration.

Tried the url that I quoted above but still got the same error.

Do you still see the BOM? 

What other mirrors are available to try a download?


Stramm

still the same... check yourself. Open the link you posted but replace cancel with rg. 123 or any value you can imagine of and you'll see for a sec ->  <- the BOM
You can search for this in the photoshop files and remove it

you do not need to uninstall the plugin. It's sufficient to overwrite the existing files. Check the lang file, too (english.php). Just cancel and return messages seem not to work so it's likely to be the lang file.

Sorry, I have the shop 1.4 just uploaded here so no mirror avail.


jaus

Quote from: Stramm on March 13, 2009, 10:27:07 PM
still the same... check yourself. Open the link you posted but replace cancel with rg. 123 or any value you can imagine of and you'll see for a sec ->  <- the BOM
You can search for this in the photoshop files and remove it


I do not understand the instruction "Replace cancel with rg. 123"   

What is 'rg. 123'?  Is that a literal?

What do you mean by 'you'll see for a sec ->..... ' . 

I don't know how to generate those special characters, how can I search for them?

Fabricio Ferrero

Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)