forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: Stramm on December 21, 2008, 11:43:01 am

Title: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on December 21, 2008, 11:43:01 am

Preparing Coppermine – user data:
For the shop to work it’s necessary that a customer can be identified. As a registered user he’ll get assigned a user id. That’s what the shop uses, too. So if a not logged in customer checks out, he’ll get redirected to a login/ register page (even if disabled in Coppermines config). I recommend to go to the coppermine config -> Custom fields for user profile and add there the user data you need from your customers (street, zip, city etc.).

Preparing the confirmation emails:
You should modify the confirmation email template in the plugins lang file.
You can use placeholders
{USER_NAME}
{SITE_NAME}
{ORDER_ID}
{PRICE}
{ADMIN}
{USER_PROFILE1} - {USER_PROFILE6}

Adding items:
Open  the shop admin (link 'Shop' in admin menu). Now below the shop button you clicked in the table  header click ‘config’. Have a look around, most is self explaining.
However the shop won’t do anything if you do not create items. So click ‘create new item’.
-   Type: Photo, CD or Shipping -> CD to create a CD item, photo (download or ‘for print’ item), shipping to define the global shipping fee
-   Description: The name to use for your item (eg. Download 1280px image or 15x10 photo)
-   Price: OK, everyone should know what that means. As delimiter you have to use . (point). If you set the price to -1 that item will be a free item (0.00). In the lang file is an entry for free items that’ll get added in the dropdown (atm ‘free’) ->  'free' => 'free',
-   Max items on CD: If you have set type to CD, then you can set here some number. The set price is valid up to that number.
-   Shipping: You can override the global shipping (eg. 2USD) with the shipping for a specific item (eg. a framed image 5USD)
-   (max)w/h: If you set here anything other than 0 (zero), then the system will treat that item as a ‘for download item’. It’ll get resized to the defined size and put into the customers download folder. If the set size is bigger than the size of the image you’ve uploaded, then this item won’t be offered to the customer. It’s good to use my watermarking mod or the modpack. Enable watermarking. This will lead in the sytem, to create backup copies of the uploaded images. This backups will get used to create the resized downloads for your customers. Means you have a eg. 2000x1000px image as original on your server. The image you show your customers is a 500x300px watermarked image. If the customer purcheases the image he’ll get the not watermarked image in a bigger version into his download folder. You should protect the orig_ files (backups) from access from the web. For that purpose copy sample.htaccess (in the shops main dir) to the albums dir and rename it to .htaccess (only *nix boxes)

Test the shop:
Try to add some items to your basket. Delete them, increase/ decrease amounts etc.. Just get familiar with it. As guest checkout (only possible when items are in your cart). You'll get to a combined signup/ login form. Enter a new username/ pwd etc. and submit. The user'll get automatically logged in and directed back to the checkout. Here he sees an overview of his items. If he confirms the purchease,  the stuff is added to the SQL and emails sent to the user and you.

Now open the shop admin again (link 'Shop' in admin menu)
You'll see the new order in an overview. Icons in front  meaning (order) viewed, paid, (items) sent (to user). When clicking the order you'll see the detail view. Thumbs of the items etc, pid, price, amounts, cd or photo (and size). In the header user name-> link to profile, email, total price. Just have a look. You can mark the checkboxes and do certain actions (delete, mark paid/ sent, mark unpaid, unsent). If you mark all items of one order as sent or paid then the status changes in the overview for the entire order as well. In detail view click an item to go back to the overview. When order has been processed you can here move the order to the archive.
If it’s a download order, then you’ll see some small buttons in the order overview.
d: crate directory (email sent to user with password – you only have to do that if problems occur)
c: copy files into the download folder (same as above)
x: delete dir (as above, after deleting the down dir, you can test create dir and copy files)
p: paypal ipn log

Per Album Settings:
If you do not want global prices for all items, then you have the possibility to set different prices for each album or to disable the shop for certain albums.
For that check in the shops config the ‘Per Album Settings’. If you set as price 0.00 for an item in the per album settings, the this item won’t show in the dropdown anymore.

More features:
-   If you need the basket buttons elsewhere, then edit template.html and use the placeholder {CART_MENU} where you need it.
-   In the shops admin you can download a zip of all purcheased items of an order (in the order overview)
-    basic support for google checkout (this is just a theoretical implementation. Utterly untested, enable it only for testing purposes and to report back here. I'm from Europe and didn't want to sign up with google using fake info)  
-   invoices (plain text attached to the confirmation email) sent to the user and the admin with the order confirmation
-   -added support for discounts. Default off. There's no gui where you can set the discounts. You'll have to open functions.inc.php in the plugins include dir, scroll down to the bottom and find function calculate_discount. It's pretty easy to do. I've already added there two examples. You just need to uncomment one to enable it. The two examples are:
1. 10% discount if user orders more than 10 pics for print
2. 10% discount if order volume is >= 100 USD
-   MyOrders page. Users can view their orders (history). It's a stripped down version of the shop admin. User of course can't change or delete stuff. If the admin deletes an order, moves it to the archive or marks an order as paid/ sent, then the user will see these changes.  If it’s a download order, the user can create the dir or initiate the copy process for files
-   if you use the modpack you may like that one. If enbabled, minithumbs get used
-   added global shipping/ shipping per item
Now you can set as usual a global shipping (in the shop admin set as type not cd or photo but shipping) and one per item. As with the discount you can easily change (in the code functions.inc.php, function calculate_shipping()) the beahaviour of the shipping calculation. Out of the box it's doing the following. Using the global shipping. If a user buys an item where you specified a different shipping than the global and it's higher than the global then the new (per item) shipping is used. You have nearly unlimited possibilities to customize that.

Don’t forget the backups!!!


[Edit GauGau 2010-03-05]
This plugin has been added to the subversion repository: http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.4.x/plugins/

It has been updated as well to reflect the version checking routines in the plugin manager that are meant to make sure that galleries don't break because of plugins installed that aren't meant for that particular version of the gallery.

Download: https://sourceforge.net/projects/coppermine/files/Plugins/1.4.x/cpg1.4.x_plugin_photo-shop_v1.4.1.zip/download
[/Edit]
Title: Shopping cart (new version) - FAQ
Post by: 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.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Pascal YAP on December 21, 2008, 11:55:09 am
Nice news  ;D
But i can't find any ZIPs in your previous Post !
A mistake from me ?

Sorry Stramm you'd placed your ZIP during my Post, too funny  ;D
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on December 21, 2008, 11:56:38 am
No, you're just to impatient. I'm still writing and preparing the zip...
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jaus on December 21, 2008, 03:53:28 pm
Stramm,

I set up the new version, and tried a test order to see if the return url is working, but when I log into the sandbox with my buyer account and hit "Pay Now"  I am sent to a screen that says :

"This invoice has already been paid. For more information, please contact the merchant"

There is no 'Return to...' button on this screen.  I have tried a couple of orders and they both have done the same.  In each case I have cleaned out the orders cue in photo_shop prior to submitting the order.  I'm not quite sure where to look for a solution.

Also , what should appear in the "Description" on the paypal sand box.  What I get now is something like "Title=No title  ID NO. 2" .  I don't see any configs for this field.  Am I missing something?



Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on December 21, 2008, 04:46:12 pm
Set up a new sandbox seller. The one you use atm has already a order id processed the photo shop tries to send now (or fiddle around with mysql to raise the oid manually).

If you have assigned a title to your pics that'll appeare. If not, then you'll see 'no title'. As easy as that.

The return URL is needed after payment processing. Read paypal forums, help and FAQ. There's plenty to find there. Best help source are the PDFs.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jaus on December 21, 2008, 05:20:28 pm
Ok, seems to be working now.  Is there an easy mod that I can do to substitute 'file name' for 'title' when transmitting to Paypal?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Phill Luckhurst on December 21, 2008, 06:00:12 pm
Great stuff. Just a couple of questions.

Does this work with bridging enabled or have you not tested it? Does the script need changing for different countries paypal?

I am in the process of writing a plugin to allow purchase through Joomla's virtuemart but have been struggling with a few things so this seems like a great interrim option for me.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on December 21, 2008, 07:37:51 pm
Ok, seems to be working now.  Is there an easy mod that I can do to substitute 'file name' for 'title' when transmitting to Paypal?


Code: [Select]
$query = cpg_db_query("SELECT title FROM {$CONFIG['TABLE_PICTURES']} WHERE pid={$item_id['pid']}");

not tested and I'm not sure if I use title anywhere else... just replace title with filename (in photo_shop_checkout.php)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on December 21, 2008, 07:40:22 pm
Does this work with bridging enabled or have you not tested it? Does the script need changing for different countries paypal?

I've tested bridged with smf and phpbb. Should work with the other by cpg supported apps, too.
In the shops config you can set the currency to use and the paypal URL... just try it.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jaus on December 21, 2008, 09:36:37 pm
Do I remember incorrectly or weren't there drop down options on the admin-orders page to set orders to sent/unsent, paid/unpaid. I don't see those options anymore.  How do you change the paid/sent icons?

I thought maybe a completed Paypal transaction would flip the 'unpaid' to 'paid' but that doesn't seem to be the case.

Thanks,
Joe
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on December 22, 2008, 10:44:38 am
Do I remember incorrectly or weren't there drop down options on the admin-orders page to set orders to sent/unsent, paid/unpaid. I don't see those options anymore.  How do you change the paid/sent icons?
I have that on my testbed... atm just english is supported

I thought maybe a completed Paypal transaction would flip the 'unpaid' to 'paid' but that doesn't seem to be the case.
If paid, the status changes to paid. If it doesn't then probably something went wrong. Check the IPN log. Most important.... make sure you use a currency your sandbox supports (US sandbox USD, German sandbox EUR etc. - or setup multicurrency)

It's adviced to read all the paypal docs before playing with IPN and the sandbox as mentioned above.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: beeroll on December 22, 2008, 03:04:24 pm
You are a champion Stramm! I have been looking all over for nice ways to integrate this functionality at a reasonable cost for my client, and this is exactly what I required!

Big ups and thank you for the Christmas present!
 ;D ;D

ben

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jaus on December 22, 2008, 10:34:30 pm
I have that on my testbed... atm just english is supported
If paid, the status changes to paid. If it doesn't then probably something went wrong. Check the IPN log. Most important.... make sure you use a currency your sandbox supports (US sandbox USD, German sandbox EUR etc. - or setup multicurrency)


I am using USD. I have enabled Paypal and Paypal IPN notifications and enabled the ipn txt log file in the default location.  I have not enabled downloads.  I have specified my sandbox merchant account but left all other urls as default.  I have left the notify, return, and cancel urls untouched.

On the Paypal side I believe I have followed all of Paypal's documetation steps to setting up a sandbox account and enabling IPN  on it but, after confirming an order (in photo_shop) and completing the Paypal 'buy now' transaction,  I do not see any txt log files in the photo_shop log directory or the cpg log directory.  The sandbox transaction seems to complete normally, but I can see no evidence of IPN back to photo_shop ( no ipn logs, orders remain 'unpaid').

I am working my way through the IPN documentation but I don't see anything that I have left out.  Could sure use a point in the right direction.

Thanks,
Joe.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jaus on December 23, 2008, 01:32:51 am
 ::) DOH! nevermind , I am currently running on a localhost testserver and completely forgot Paypal won't be able to get through to it with the ipn (or at least I think that is the problem...).  I suspect all will be fine once I migrate to the live server. Sorry, its tough biting off more than you can chew...
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: metalguy639 on December 23, 2008, 01:40:10 am
Stramm thansk for all your help on this plugin I've got mine working 100% now. :)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on December 23, 2008, 11:05:18 am
... I am currently running on a localhost testserver and completely forgot Paypal won't be able to get through to it with the ipn (or at least I think that is the problem...)

you're right with your guess
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jaus on December 24, 2008, 01:34:49 am
Well I have installed the plugin on the live server, and I can complete paypal transactions, but the ipn is still not working.  I do get ipn logs now but they show 'Invalid'.  Here is one:
Code: [Select]
[12/23/2008 5:50 PM] - SUCCESS!
IPN POST Vars from Paypal:
mc_gross=58.95, invoice=5, protection_eligibility=Eligible, address_status=confirmed, item_number1=, payer_id=TAZC44ZHJYFF4, tax=0.00, address_street=1 Main St, payment_date=15:50:12 Dec 23, 2008 PST, payment_status=Completed, charset=windows-1252, address_zip=95131, mc_shipping=0.00, mc_handling=8.95, first_name=Test, mc_fee=2.01, address_country_code=US, address_name=Test User, notify_version=2.6, custom=, payer_status=verified, business=japbuy_1229875538_biz@comcast.net, address_country=United States, num_cart_items=1, mc_handling1=0.00, address_city=San Jose, verify_sign=A9F9w5tdSkq8F-YyOlaWFJKCTZK.AXpC8ThmC304ocsFWWW.MJQFv2xk, payer_email=joebuy_1230075886_per@comcast.net, mc_shipping1=0.00, tax1=0.00, txn_id=88B88875CA166342K, payment_type=instant, last_name=User, address_state=CA, item_name1= => Title: bird02875-w.jpg - ID: 2, receiver_email=japbuy_1229875538_biz@comcast.net, payment_fee=2.01, quantity1=1, receiver_id=JQ5FZ5DVUKK38, txn_type=cart, mc_gross_1=50.00, mc_currency=USD, residence_country=US, test_ipn=1, transaction_subject=Shopping Cart, payment_gross=58.95,
IPN Response from Paypal Server:
 HTTP/1.1 200 OK
Date: Tue, 23 Dec 2008 23:50:20 GMT
Server: Apache/1.3.33 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_ssl/2.8.22 OpenSSL/0.9.7e
Set-Cookie: c9MWDuvPtT9GIMyPc3jwol1VSlO=Xv9TEVbaUhAdsijv2vcFkcgre-KjWg3wrFIllayIOz8Q00hHteOl1mPNk8GfMJ6M0gYmaNSEppK-Pc6JAg4pdbe1Gyr_9s41aZVZClA4NGRf3taDPisuFfRnY2ukkNNGcroPmW%7csGMfbIGcs0hGESwDgVMNR0lYeDRZR7M5XFmgqs6OyN0YpY3JzAS4RHA6J1lSMBXfmBqZVW%7cXtz4_Wr2vvO28KozCo0jbrmRUcCLOz2caHegWrFp5ABV9Hk-TM4Y1OA8NynP8PUYxdoVJ0%7c1230076220; domain=.paypal.com; path=/
Set-Cookie: cookie_check=yes; expires=Fri, 21-Dec-2018 23:50:20 GMT; domain=.paypal.com; path=/
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/
Set-Cookie: navlns=0; expires=Mon, 18-Dec-2028 23:50:20 GMT; domain=.paypal.com; path=/
Set-Cookie: Apache=10.191.196.11.246661230076220514; path=/; expires=Mon, 10-Nov-02 17:22:04 GMT
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

7  
INVALID
0



 
This appears in the log as soon as the paypal transaction is complete.  I am using the paypal sandbox, so all of the transactions are my own and should be ok.

I have read the sandbox docs on IPN and it seems like it should be working (does the plugin check the test_ipn variable?). But I can't really say because I don't know how the plugin responds to paypal.

Also the return and cancel urls, which worked on the localhost test server, now give me a "Internal Server error -500"
I have left all of the default url's in place in the plugin config.

Can you suggest any leads for me to investigate?

Thanks,
Joe.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on December 24, 2008, 01:44:01 pm
Recheck all your settings... INVALID means, that the process itself is OK but was declined by PayPal. Lots of reasons for that.

- paypal webmaster email not valid (check for a space at the end or something similar)
- the mentioned currency setup. Make sure PayPal accepts the currency you've set
- Try an item with a plain title/ description (no special chars)
- if nothing helps, setup a new seller account in the sandbox (and a new buyer)
 
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jaus on December 24, 2008, 05:58:35 pm
When you say 'paypal webmaster email' you do mean the 'paypal merchant email' from the photo_shop config, correct?

If so, I have tried each of those suggestions in turn, but the results are the same.  The ipn log looks the same as before (except for the title change to remove special characters).

I also set up new accounts for both seller and buyer, but again no change.


One thing that I am not clear on is how the 'SSL url to coppermine base dir' works.  The default value is my coppermine root directory.  If I leave this set do I need to have SSL set up on my website?  Does the http: need to be changed to https:  in the default value?  The config says to leave blank to not use SSL, but also says that SSL is mandatory, so I'm a little confused about what to expect from this parameter.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Jimed on December 30, 2008, 05:02:31 am
Upgrade from photo shop v1.3.5 and shop is locked in download enabled.  In Photo Shop Config - Shopping Cart General, Enable photo downloads after purchase is set to No.  As is the other two download options.  Have verified max h/w is zero for all items and have created a new item for test purposes.  Any photo ordered is apparently treated as a download item as the quantity can not change beyond one and the "to Download # pics' is indicated in the shopping cart.  Gallery is here: http://www.opticalharmonics.com/photos/ (http://www.opticalharmonics.com/photos/)

Any thoughts what I messed up or what to check next?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on December 30, 2008, 10:53:21 am
Have you followed the upgrade instructions to the point? Uninstalling using the plugin manager, opting not to delete the db. Then upload and reinstall?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Jimed on December 30, 2008, 03:11:59 pm
I believe I followed the upgrade instructions and all of the previous items and archived orders are still there.  The window that displayed after reinstalling the plugin did not indicate any errors.  I made some minor changes to the english language file to customize the thank you email but have also tried the original with the same download only results.  Also tried cycling the download files option on, save config, and back off and save config in the Shop.  I checked the database to confirm that photo_shop_download_enable has a value of zero.

I did mess with the discounts in functions.inc.php but have reinstalled the original.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: greggan on January 02, 2009, 06:46:45 pm
I love your work!
I have two questions / Requests
Will there be an option to sen invoice (Both to buyer and to site owner by e-mail)
Is it possible to have a several dropdown menu options to build a price.

Example

1.Base price [Size]  (several options via dropdown) (Depending on filesize)
2.Image Usage [Newspaper etc] (several options via dropdown example Newspaper / billboard / single print)
3.Amount [Newspaper copies printed] (several options via dropdown for example  10-20 / 100-500 / 500-1000)

Regards/ Stefan
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 05, 2009, 02:20:09 pm
Will there be an option to sen invoice (Both to buyer and to site owner by e-mail)

That's basically implemented already.

Is it possible to have a several dropdown menu options to build a price.
No, that's not possible atm. Due to the current layout it's very complicated to add such a feature.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: rakotomandimby on January 05, 2009, 06:18:36 pm
http://phototheque.vectoris.fr/ is a demo of my little hack.

I can provide the FTP/MySQL access if requested, but I did not find the link to create new threads.

I will be notified if any replies...
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: greggan on January 05, 2009, 07:13:07 pm
rakotomandimby

Describe your cart hack.
Does it ad any features that we need?

Can you supply us with a demo logon?

Regards/ Stefan
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: rakotomandimby on January 05, 2009, 07:23:36 pm
Does it ad any features that we need?
I dont really know... I just personally needed some features.
Can you supply us with a demo logon?
Yes, the admin login and password are eric and ericvec.
(Tell me if a stupid idiot has changed it...)
I dont know if there are private messages in this board, but my email address is valid for login pass transmission if needed.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: greggan on January 05, 2009, 09:54:27 pm
Stramm

Hmmm!
Sorry to hear that you find it complicated!

I have found a Java script that make the necessary calculations for me
But is it possible to use this Java script as a addition to your script and take the result
from the calculation and use it as price for the selected image?

http://www.stockholmviews.com/test/price.html
The final output in the far most right drop down looks like this (I know the last drop down shouldn't rely be a drop down)
<option value="1">960 kr</option></select>

Regards/ Stefan
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 05, 2009, 10:14:24 pm
no, that wouldn't work
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: erika_conn on January 10, 2009, 05:30:49 pm
I am almost afraid to ask this question but I have no choice so here goes. 

I downloaded and installed (actually, it installed automatically) photo shop but it doesn't show up on my site.  Why is that?

http://bigshots.ceconn.com
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 10, 2009, 07:48:07 pm
Have you enabled the shop in the shops config?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: erika_conn on January 10, 2009, 09:35:28 pm
Have you enabled the shop in the shops config?

No.  Where would I find that?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: erika_conn on January 11, 2009, 09:46:33 am
Ooops, I finally found it although I'm not sure how.  It was pretty hidden.  Am I right, is it true we can only have one album for the photos to be sold?  I wanted to have categories such as: Flora, night shots, creative, etc.  Is there a way to do that?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 11, 2009, 10:07:33 am
The items you add in config are global (for all albums).
You can exclude certain albums.
You can overwrite the settings for each album.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: erika_conn on January 11, 2009, 03:54:45 pm
The items you add in config are global (for all albums).
You can exclude certain albums.
You can overwrite the settings for each album.

OK, I'll work on that. 

This sounds really strange but I don't seem to be able to save my configurations.  I even went into cpanel and changed the permission for photo_shop_config.php to 777.  Still, it will not save.  It says "Changes in Configuration Saved" but when I open it up again, back to default. 

What am I doing wrong?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 11, 2009, 04:05:01 pm
you've upgraded from a previous photo_shop version? If so, then please follow the upgrade instructions
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: erika_conn on January 11, 2009, 04:33:16 pm
Thank you.  Done.  It was so long ago, I had forgotten. :) 

Now, when trying to save the album I wish to be in the shop list, I get this error:
Script called without the required parameter(s). (item_id)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 11, 2009, 04:43:57 pm
link?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: erika_conn on January 11, 2009, 05:27:27 pm
OK, I think that part is OK. 

Another thing.  I would like to charge shipping between Canada and USA as $10.00 USD, but elsewhere in the world, $20.00 USD.  Is there a way to do that?

http://bigshots.ceconn.com
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 11, 2009, 05:58:31 pm
I've created to functions where you as admin can add own functionality to the shop
open include/functions.inc.php
scroll down to the end of that file and find
- function calculate_discount()
and
- function calculate_shipping()

both you could modify in a way that you get your desired result.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: erika_conn on January 11, 2009, 09:07:00 pm
Oh, I am so happy with your help.  You should feel very proud of yourself.  This is a wonderful plugin you created.

I have another question re: If you need the basket buttons elsewhere, then edit template.html and use the placeholder {CART_MENU} where you need it.

I would very much like to have the buttons in the minicms since that is where I wrote my blurb.  But just on one minicms.  Would you be able to help me there or do I have to ask the person who developed it?

http://bigshots.ceconn.com
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 11, 2009, 09:26:10 pm
I've never used minicms before... so no, I can't help you with that.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: erika_conn on January 11, 2009, 11:01:19 pm
I think it's your bedtime now.  Thank you for all your help.  Sleep well.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: BIGSHOT on January 19, 2009, 11:35:24 pm
Hi there I added the Photo_Shop folder to the Plugins folder using Filezella FTP

I then went to the plugins manager to click on the 'i' in the circle to activate/install it and I am getting this error message:


Fatal error: main() [function.require]: Failed opening required '/home1/bigshot2/public_html/plugins/Photo_Shop/include/functions.inc.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home1/bigshot2/public_html/plugins/Photo_Shop/codebase.php on line 20

why is it trying to find a folder called 'include' inside the Photo_Shop folder?!    ???

Thanks very much
Title: Video With [cpg1.4.x]: Shopping cart (new version)?
Post by: Aeronautic on January 20, 2009, 04:14:24 am
Stramm,

Please forgive me if this seems like a stupid question, but with settings picked correctly, is there any reason the shopping cart plug-in could not be used with video files?

I assume re-sizing would not be used, but if I had the standard video file+photo thumbs could I at least take advantage of the pricing and cart without download deliveries?

Thank you for all your efforts to develop this resource, support it, and improve it!

Title: Re: Video With [cpg1.4.x]: Shopping cart (new version)?
Post by: Stramm on January 20, 2009, 07:51:16 am
Stramm,

Please forgive me if this seems like a stupid question, but with settings picked correctly, is there any reason the shopping cart plug-in could not be used with video files?

I assume re-sizing would not be used, but if I had the standard video file+photo thumbs could I at least take advantage of the pricing and cart without download deliveries?

Thank you for all your efforts to develop this resource, support it, and improve it!




With some smaller modifications I guess yes
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 20, 2009, 07:52:46 am
Hi there I added the Photo_Shop folder to the Plugins folder using Filezella FTP

I then went to the plugins manager to click on the 'i' in the circle to activate/install it and I am getting this error message:


Fatal error: main() [function.require]: Failed opening required '/home1/bigshot2/public_html/plugins/Photo_Shop/include/functions.inc.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home1/bigshot2/public_html/plugins/Photo_Shop/codebase.php on line 20

why is it trying to find a folder called 'include' inside the Photo_Shop folder?!    ???

Thanks very much

Make double sure you uploaded all files and all subfolders (especially the include folder)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: BIGSHOT on January 20, 2009, 01:27:45 pm
Make double sure you uploaded all files and all subfolders (especially the include folder)

Thanks for the reply! When I extract the Photo_Shop 1.4 Zip file there arnt any subfolders in it. Am I missing a point here?  ;D

Ive taken a screenshot of what I get inside when extracted, is this right?  :

[img=http://img102.imageshack.us/img102/1727/imnotseeinganysubfolderqn1.th.gif]http:// (http://img102.imageshack.us/my.php?image=imnotseeinganysubfolderqn1.gif)

(http://img102.imageshack.us/img102/1727/imnotseeinganysubfolderqn1.gif) (http://imageshack.us)
(http://img102.imageshack.us/img102/imnotseeinganysubfolderqn1.gif/1/w640.png) (http://g.imageshack.us/img102/imnotseeinganysubfolderqn1.gif/1/)


MANY THANKS STRAMM
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 20, 2009, 01:42:46 pm
I only can view the first pic... the winzip archive view. The 'path' represents the subfolders.

So I'm guessing now...
If you extract the files using drag/ drop, then you destroy the path info. You need to extract the files keeping the folder structure intact. Read your applications instructions on how to do that.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: BIGSHOT on January 20, 2009, 02:27:56 pm
Both the pictures i hosted were the same - justdifferent links incase one didnt work ;)

I just used Winzip to unzip your 'photo_shop_1_4.zip' file! I then extracted everything from it to a folder I named Photo_Shop and used Filezilla to move the Photo_Shop folder into the Plugsins folder of CMG.

It says in the CMG documents that teh best way to install plugins is to use winzip rather than relying on the server/host's system to unzip it as it can mess things/ doesnt always keep them in their purest form.

Any idears now? thanks a lot 
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 20, 2009, 05:54:13 pm
I just can repeat the said... if you do not see any subfolders, then something is wrong. And that's what you said in your previous post.
Quote
When I extract the Photo_Shop 1.4 Zip file there arnt any subfolders in it

So try unzipping till you manage to keep the folder structure intact.  Otherwise it won't work... as you see.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: BIGSHOT on January 20, 2009, 08:52:55 pm
Cheers Stramm. I found a different way of extracting the contents of 'photo_shop_1_4.zip' so that I can see all of the contents and subfolders including 'include'.

The first time I put the folder 'Photo_shop' into the plugins folder in cpg I check ed in the plugin manager and it had showed up. I went to click the 'i' to install it and it showed a 'go' button I waited and clicked that and nothing happened. Now when I take the folder out of plugins and put it back in it doesnt even show up un the plugins manager.

???????????????? Thanks a lot
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: BIGSHOT on January 20, 2009, 09:19:34 pm
I just found out - the only way I can get it to show up again is if I rename the folder as 'photoshop'. If I have it as photo_shop it doesnt show up in the plugins manager.


Heres after clicking the 'i' while the folder is called 'photoshop' in the Plugins folder of cmg:

(http://img187.imageshack.us/img187/5853/wheniclickongofx3.th.gif) (http://img187.imageshack.us/my.php?image=wheniclickongofx3.gif)


Heres after clicking on the 'Go' button:

(http://img81.imageshack.us/img81/5231/whenihaveclickeddt9.th.gif) (http://img81.imageshack.us/my.php?image=whenihaveclickeddt9.gif)


Thanks again, Remy
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 21, 2009, 08:08:35 am
renaming is not an option as the plugin won't work

uninstall the plugin, maybe you'll have to edit the database manully and remove the photo_shop entry from the plugins table. Then retry
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: BIGSHOT on January 21, 2009, 11:46:25 am
Right. Ok then - I have no clue how to open the database manually.

I just find it really odd how when called 'photoshop' it shows up in the manager and when called 'photo_shop' like you cay it must be - it doesn't show up at all.

Could it be anything to do with the Hardwired theme I'm running at all?     :'(
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 21, 2009, 07:07:21 pm
I do not think so.. but just try. Temporarily use the classic theme.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Phill Luckhurst on January 22, 2009, 08:42:46 pm

my CPG sandbox: Version 1.4.18 with modpack running my Tentacle theme:
 


Please upgrade. I'm sick of telling people to do that. ;) ;D
Title: Download directory problem
Post by: beeroll on January 22, 2009, 11:13:23 pm
Hi Stramm,

Thanks once again for this plugin and all your support work, it really is filling a big need for Coppermine.

I've installed the plugin on a website I'm working on, and am running into a bit of an issue.

Once someone has placed an order, and I've marked it paid, I am having trouble creating the download directories.

When I click on the "D" button, I get an error message saying "Directory already exists.... delete first! Order id: x"

But if I then click on the "X" to delete it, I get a message saying "Folder does not exist! Can not delete it! Order id: x"

and if I click "C" at any point, I get the error message "albums/downloads/x_x/ does not exist or has been deleted! Create it first [D]!"

The plugin wants to create a directory in /albums/downloads/ - permissions on that directory are 777, by the way - but it never seems to.

However, if I simply click on the "Download zip" button, that works fine. Unfortunately, that only appears to the site admin, not to registered users.

So as the site admin I can download a zip file, but my customers can only get the error messages.

I tried it on my theme, and also on the Classic theme, with the same results.

The site is gordonross.ca and a registered user login is ben/t3st

Anything you can suggest?

Cheers,

Ben Rollins.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 24, 2009, 09:03:15 am
Check if save mode is enabled... if so, then this plugin won't work for you (or at least the download feature) as it is dependent on creating folders.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: beeroll on January 24, 2009, 11:18:52 am
Hi Stramm,

Thanks for getting back. It doesn't _look_ like Safe Mode is on in PHP - I assume that's what you meant?

I've attached the available configuration from the web host - but I'm unable to run phpinfo.php for a fuller rundown.

Does any of that help?

Cheers,

Ben
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: BIGSHOT on February 03, 2009, 11:50:35 pm
Hello!

Ive got the shopping cart working now, it wouldnt install before but I just deleted the whole gallery and re-uploaded it all and it was fixed and let me install the shopping cart plugin.

Anyone know about this though??! :

The shopping cart's drop down menu box doesnt ant to show up any shipping items, it will show photo download and CD as options but not shipping! However it will show shipping prices on the checkout page and in the admin/shop/config menu..

??

Thanks
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on February 04, 2009, 07:49:41 am
No, it doesn't show shipping in the 'item select dropdown' as you buy the item and not just shipping.
You buy eg. a print 10x8 or a a CD, maybe a download etc.

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: BIGSHOT on February 04, 2009, 01:28:04 pm
ahhhhh my bad. Thanks a lot Stramm your a ledgend  :D
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: BIGSHOT on February 04, 2009, 01:29:19 pm
ahhhhh my bad. Thanks a lot Stramm your a ledgend  :D

I assumed thaat the options were, Shipping for prints in the post, Photo is to download, and CD is to get send CD's in the post. Thats clear now then, Cheers
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: gino on February 04, 2009, 05:19:17 pm
Hello, i have a few questions i need answering by you software pro's.

I am using the Coppermine Gallery on my new site and i have recently installed the Shopping Cart plugin as we want to allow our customers to select and place an order for the pictures we have uploaded online. These are pictures we have taken professionally at weddings and we want to enable the customers to go onine after the wedding and select the photographs they like and order through the site. We are not bothered about the paypal & google cart payment methods so i have dissabled them. I want to just have it running so we get the email to say "User" has purchased "Item" and then we can call the client for payment details later. http://www.genesisphotographers.org.uk/gallery

I have run into a few problems if someone can help:

1. Can you turn off the VAT function in photo_shop_cart altogether?
2. Turn off / dissable "Items to download" drop down box in shopping cart
3. Cannot get more than 1 item (photo) to add up correctly in the total figure. If i select say 3 under QTY it only shows the amount for 1 and does not increment the figure + when the order goes through it still only has 1 on the order and not 3 as requested
4. In photo_shop_myorders the pics are missing next to paid & sent and the buttons do not function. All that is there is the place holders with a red x in the box.
5. photo_shop_checkout changes the layout of the page when i confirm order using "Rainy Day" theme the page distorts a little

I would appreciate any help on this and thank you for a great piece of software.

Thanks

Gino
 
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: BIGSHOT on February 04, 2009, 06:07:51 pm
Whats the difference between Paypal normal and Paypal Sandbox? Does everyone that uses the sandbox one have to sign up for a new account like I had to, even if they have a normal paypal account?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: radium35 on February 06, 2009, 01:01:31 am
where do you upload the contents of the zip file? root?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: radium35 on February 06, 2009, 01:20:56 am
i uploaded the files and ran the SQL and my page went white  :-[
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Aeronautic on February 06, 2009, 06:15:35 am
where do you upload the contents of the zip file? root?

Not sure why you are unhappy - you must read the docs:

http://forum.coppermine-gallery.net/index.php/topic,57206.msg280157.html#msg280157

Quote
Upload the shop directory and everything it contains into your Coppermines plugins folder.
Use the plugin manager to install the plugin.
Have a look at photo_shop/images_to_move/css_changes.txt - that file describes the additional css the shop is using (add it to your themes style.css).
Copy the images in that very directory to the images folder of the theme you’re using.

Which is pretty close to the plug-in install method for all plug-ins.

HTH

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on February 06, 2009, 09:15:16 am
Whats the difference between Paypal normal and Paypal Sandbox? Does everyone that uses the sandbox one have to sign up for a new account like I had to, even if they have a normal paypal account?

You use the sandbox to test stuff
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on February 06, 2009, 09:35:18 am
1. Can you turn off the VAT function in photo_shop_cart altogether?
2. Turn off / dissable "Items to download" drop down box in shopping cart
3. Cannot get more than 1 item (photo) to add up correctly in the total figure. If i select say 3 under QTY it only shows the amount for 1 and does not increment the figure + when the order goes through it still only has 1 on the order and not 3 as requested
4. In photo_shop_myorders the pics are missing next to paid & sent and the buttons do not function. All that is there is the place holders with a red x in the box.
5. photo_shop_checkout changes the layout of the page when i confirm order using "Rainy Day" theme the page distorts a little


1. Looks like I forgot to remove my hardcoded testing values
find in include/functions.inc.php
Code: [Select]
$total_price .= "<hr size=\"1\" width=\"220\" align=\"right\" />&nbsp;";
$total_price .= sprintf($lang_photoshop['total_incl'], '19').": {$vat} {$CONFIG['photo_shop_currency']}&nbsp";
and replace with
Code: [Select]
if($CONFIG['photo_shop_vat'] > 0)
{
$total_price .= "<hr size=\"1\" width=\"220\" align=\"right\" />&nbsp;";
$total_price .= sprintf($lang_photoshop['total_incl'], $CONFIG['photo_shop_vat']).": {$vat} {$CONFIG['photo_shop_currency']}&nbsp";
}
set in the shops config 0 or nothing to disable display of vat

2. I'm not sure what you mean... please elaborate more
3. can't replicate this on my test environments and you haven't the cart enabled on the given URL so no way for me to verify. Clear cookies is all I can say so far
4. Read the first post of this thread and follow the install instructions
5. in photo_shop_checkout.php find
Code: [Select]
starttable('100%', $lang_photoshop['checkout'], 1);
endtable();
and replace with
Code: [Select]
starttable('100%', $lang_photoshop['checkout'], 1);
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: gino on February 14, 2009, 01:59:16 am
Hello Stramm

Thanks for solving a few of my questions on my previous post, this was greatly appreciated. I have another few questions if you don't mind.

Just to recall our gallery page is http://www.genesisphotographers.org.uk/gallery

We are trying to allow our clients to be able to pick certain photos from our gallery and order them online. We are not bothered at the moment for payment terms etc as there is not enough people hitting the site.

1. When a user adds a picture to the shopping cart, it will not increment +1 if they want to order 3 of the same picture, it continues to show only one in the basket?
2.When a new user sets up an account i want to turn off/dissable a few things. Can you tell me how to remove the following: "Create/Order My Albums" , "Modify Albums" , "Sort My Pictures" , i only want them to have access to "My Profile". I dont want the user to have upload ability.
3. When an order is confirmed the user is getting an email but the admin emails have stopped comming through to us at info@genesisphotographers.org.uk ? So i dont know if an order has been placed. It was working initially.

If this is becoming a big task for you i understand if you would rather do this as a custom job and i will pay towards your time etc.

I have setup an account on the gallery for you to check any of our settings:

Username: stramm / Password: stramm

If you require the photo_shop php files we are currently using i can email them to you.

Regards

Gino Malcangi
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: winsion on February 14, 2009, 03:36:43 pm
Dear Stramm ,
    Thanks your mod first ,
    I tried 1.4.0 in CPG1.14.19 , and found that "save new amount" function is not work . ((( cause can not increase or decrease the quantity )))   ???
 
    But in 1.3.6 , i tested it is ok , 
    Can you have a check ?  very thanks !

Best Regards
Winsion
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: gino on February 16, 2009, 02:29:21 pm
Hello,

I am trying to configure the email that you recieve when someone places an order online via the cart. I have changed the follwing in admin section of coppermine:

Profile 1 name      House Number
Profile 2 name      Street Name
Profile 3 name      Town
Profile 4 name      Location
Profile 5 name      Postcode
Profile 6 name      Contact Telephone Number

When i get the email through it shows the following and not the actual data required for the order.

House Number {Profile 1 name}
Street Name {Profile 2 name}
Town {Profile 3 name}
Location {Profile 4 name}
Postcode {Profile 5 name}
Telephone Num {Profile 6 name}

The code in the lang file =

$lang_photoshop_email_admin = <<<EOT
Hello {ADMIN},

{USER_NAME} with the email address {USER_EMAIL} just made an order on your site {SITE_NAME}. The id of that order is {ORDER_ID} and the total value {PRICE}.
<a href="{LINK}">Click to go to the website</a>

House Number    {Profile 1 name}
Street Name     {Profile 2 name}
Town           {Profile 3 name}
Location                 {Profile 4 name}
Postcode    {Profile 5 name}
Telephone Num   {Profile 6 name}

Best regards,
{ADMIN}
EOT;

Thanks Gino
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: AuburnCal on February 17, 2009, 07:15:43 am
I have a problem when I try to add more than 1 picture to the CD it won't allow the order to be placed...

How do I make it allow more than 1 picture to the CD?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: AuburnCal on February 17, 2009, 07:17:29 am
Well...After trying to change the VAT to not show, I see where to change the amount of pictures per CD...

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: TheCzech on March 06, 2009, 12:59:43 am
Hi Stramm,
thanks for this great plugin, it looks very promising.

I'm having a problem getting it to work. More specifically, getting to check out. Once I hit "Confirm Order" the page redirects to 'registration' for a second or two and then it goes back to the 'check out page'. Never reaches any paypal login page. I've read this complete thread, read the documentation, tried different settings within paypal, no success.

Please, log in at www.photosbymichal.com as testuser/test then go to My Pictures and try to see for yourself what it does. (Paypal is set back to sandbox)

I just can't figure out what could be doing this.

Thank you very much!
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on March 06, 2009, 08:52:17 am
The gallery is offline. Therefore I can not have a look.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: TheCzech on March 06, 2009, 11:44:36 am
Weird. It's not offline, I don't have a problem getting on it, neither do any of my friends I asked to try. Please try again. Thank you.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: TheCzech on March 06, 2009, 11:46:47 am
You do have to login (testuser/test) and go to My pictures. The website comes up for you, right?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on March 06, 2009, 02:03:01 pm
It is offline. See attached screenshot.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: TheCzech on March 06, 2009, 08:36:39 pm
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.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on March 07, 2009, 09:19:06 am
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.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: TheCzech on March 07, 2009, 02:40:20 pm
Of course it's possible, ... I PMed you the admin/ftp login info.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jaus on March 08, 2009, 03:38:36 pm
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.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on March 08, 2009, 04:58:23 pm
little bug...

in photo_shop_cart.php find
Code: [Select]
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
Code: [Select]
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
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on March 09, 2009, 02:59:51 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.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: TheCzech on March 09, 2009, 03:22:17 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!
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: 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


Title: Re: Shopping cart (new version) - FAQ
Post by: erika_conn on March 13, 2009, 01:45:20 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}
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on March 13, 2009, 08:30:23 am
http://forum.coppermine-gallery.net/index.php/topic,52659.msg255720.html#msg255720
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on March 13, 2009, 08:32:46 am
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 ?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on March 13, 2009, 08:38:06 am
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
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jaus on March 13, 2009, 11:04:59 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.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: 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 ).
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jaus on March 13, 2009, 08:50:22 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?

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: 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

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.

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jaus on March 13, 2009, 10:58:17 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?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Fabricio Ferrero on March 14, 2009, 06:14:19 am
What is 'rg. 123'
"eg. 123". Stramm suggested to put any value. ;)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on March 14, 2009, 08:57:30 am
rg. is a typo as Fabricio already pointed out. Put there any value. And most probably you'll see the bom, these strange characters for a short time on the top left corner of your browser window, maybe a second or less. If not, use another value and reload. To search for these characters use copy/ paste.

In the end that means it's a somehow modified file. Usually the bom got attached by an editor. That stops the script from working.
Title: Re: [cpg1.4.x]: Shopping cart (new version) discount problem
Post by: sportbilderna on March 14, 2009, 11:29:05 am
I use cpg.14.21 and photo_shop_1_4

I use Calculate discount. And this problem only occurs when i use discount.

This is what happens,

When the customer adds about more than 3 images, the next 4, 5, 6 and so on, subsequent
images will not display as new post, the new images  shown in the already selected pictures in the cart
(update new number in an already added image)
It shows never about more than 3 lines, but the correct number as ordered. Calculation is correct.


www.sportbilderna.se  (http://www.sportbilderna.se)


this is my functions.inc

/ / Calculate discounts, user defined
function calculate_discount ($ temp_price, $ cd_counter) (

$ Discount ='';
/ / Variables that can be used
/ / $ Cd_counter [ 'photo'] number of pics for print
/ / $ Cd_counter [ 'cd'] number of pics Wednesday CD
/ / $ Temp_price [1] price for the CD
$ Temp_price

/ / just Thursday to demonstrate how to Calculate a discount
/ / 10% on print images if user orders more than 10 pics


If ($ cd_counter [ 'photo']> = 3) (
$ Discount = 0.1 * $ temp_price
)


/ *
/ / Or another example ... 10% if the order volume is> 100USD
If ($ temp_price
$ Discount = 0.1 * $ temp_price
)
* /
Return $ tag;

Thanks for a good plugin

/Thomas
Title: Re: [cpg1.4.x]: Shopping cart (new version) IPN problem
Post by: Jimed on March 15, 2009, 03:28:09 am
PhotoShop 1.4 is working well in a test gallery with the exception of IPN.  I have read PayPal docs and am afraid that I am still way over my head and getting invalid transactions like this.

Bad order (PayPal says it's invalid): HTTP/1.1 200 OK
Date: Sun, 15 Mar 2009 02:03:08 GMT
Server: Apache/1.3.33 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_ssl/2.8.22 OpenSSL/0.9.7e
Set-Cookie: c9MWDuvPtT9GIMyPc3jwol1VSlO=cXQvTHuWCApU4LE2HK7IlQdAY4IxHA9aYOcw45zrRMW-Vbgshd90TKLVnqB_lAPhbQi7A3WN0mwkIbgcBtx4tjEInLqL4KiCjIbyPVds-JFtmZrdEHQEMaTnimvZ-UeT6ASSYG%7ckzVD57mhKqb91uTePLomb9KUC_sYYThHVugeJTETLKIItj9r3YMQ7oa_Lo99N69g67CZpm%7cM_2PRzxU17LBUjEGEUG14aB7J_A8BLn-pfHvsLO4rwdNMmtEI9r3FRU4GxVsY4pjuFNb0W%7c1237082588; domain=.paypal.com; path=/
Set-Cookie: cookie_check=yes; expires=Wed, 13-Mar-2019 02:03:08 GMT; domain=.paypal.com; path=/
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/
Set-Cookie: navlns=0; expires=Sat, 10-Mar-2029 02:03:08 GMT; domain=.paypal.com; path=/
Set-Cookie: Apache=10.191.196.11.148241237082588295; path=/; expires=Fri, 30-Jan-03 19:34:52 GMT
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

7
INVALID
0

Gallery is located  http://www.opticalharmonics.com/demo/

May I ask a few questions please.
1. In Shop config, SSL URL to coppermine base dir...  should this be https://opticalharmonics.com/demo/  or http: as the default?

2. In PayPal Sandbox IPN activation should the URL be the same as above?

3. As no variables are being listed in the transactin log email, is there anything else I should be checking?

One little note for the next update, in the success dialog displayed after the order, "purchased" is misspelled.

Thanks for the great plugin.

Title: Re: [cpg1.4.x]: Shopping cart (new version) discount problem
Post by: Stramm on March 15, 2009, 12:27:52 pm
I use cpg.14.21 and photo_shop_1_4

I use Calculate discount. And this problem only occurs when i use discount.

This is what happens,

When the customer adds about more than 3 images, the next 4, 5, 6 and so on, subsequent
images will not display as new post, the new images  shown in the already selected pictures in the cart
(update new number in an already added image)
It shows never about more than 3 lines, but the correct number as ordered. Calculation is correct.


www.sportbilderna.se  (http://www.sportbilderna.se)


I checked with my local install (just uncommenting the needed part from the discount function) and all works well.
However I couldn't see what you've done as the code you posted probably got modified by the forum app. That's why the forum offers bbcode for code (the button next to the quote button named #). Please use that an again post your code. Also reupload the english language file. That's easier for me and can be used to exclude the lang file as culprit.
Title: Re: [cpg1.4.x]: Shopping cart (new version) IPN problem
Post by: Stramm on March 15, 2009, 12:52:54 pm
PhotoShop 1.4 is working well in a test gallery with the exception of IPN.  I have read PayPal docs and am afraid that I am still way over my head and getting invalid transactions like this.

Is the test gallery on your computer at home?

Quote
1. In Shop config, SSL URL to coppermine base dir...  should this be https://opticalharmonics.com/demo/  or http: as the default?
If you do not have ssl enabled on your webserver it's of course not https but http. However it's mandatory to use it (security - read paypal docs as well). Talk to your webhost.

Quote
2. In PayPal Sandbox IPN activation should the URL be the same as above?
http://www.paypal.com/cgi-bin/webscr?cmd=p/sell/ipn-test-outside

Quote
3. As no variables are being listed in the transactin log email, is there anything else I should be checking?
No log means no connection to PayPal -> see me first question... Is your test gallery on a web server ort on your computer at home


Quote
One little note for the next update, in the success dialog displayed after the order, "purchased" is misspelled.
Thanks you... however I've searched through the entire language file and couldn't find 'purchased'. Maybe you can make a screenshot of it?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: sportbilderna on March 15, 2009, 01:40:28 pm
Quote
I checked with my local install (just uncommenting the needed part from the discount function) and all works well.
Now i understand, and it looks good now when i test.
Quote
However I couldn't see what you've done as the code you posted probably got modified by the forum app. That's why the forum offers bbcode for code (the button next to the quote button named #).
Now, I learned that too.
Quote
Also reupload the english language file. That's easier for me and can be used to exclude the lang file as culprit.
Sorry.....

It seems to work and I thank you so much for your help.....
best regards/thomas
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: sportbilderna on March 15, 2009, 02:39:39 pm
Quote
Now i understand, and it looks good now when i test.
I was probably a little bit hurry.....

Now I have uploaded the original file, functions.inc and it does not work anyway.
When i adds about more than about 7-10 images, i get the same problem.

Should I try to reinstall?

Should I attach another file for you to see.

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on March 15, 2009, 03:20:21 pm
Tried it on your server and works for me just fine (with 13 images in cart)

Clear your cookies and retry. If that doesn't do the trick, post the code you use as I told you above and upload the english language file (see my above post).
Title: Re: [cpg1.4.x]: Shopping cart (new version) IPN problem
Post by: Jimed on March 15, 2009, 04:51:47 pm
Is the test gallery on your computer at home?
No, on shared server at host.

Quote
If you do not have ssl enabled on your webserver it's of course not https but http. However it's mandatory to use it (security - read paypal docs as well). Talk to your webhost.
I can access demo site with https but getting a self signed certificate warning, would this cause problems with PayPal?

Quote
http://www.paypal.com/cgi-bin/webscr?cmd=p/sell/ipn-test-outside
Would have never figured that out!  Will try, thank you.  (Good thing I can use a camera.)

Quote
Thanks you... however I've searched through the entire language file and couldn't find 'purchased'. Maybe you can make a screenshot of it?
Line 276, search for "purcheased"
Title: Re: [cpg1.4.x]: Shopping cart (new version) IPN problem
Post by: Stramm on March 15, 2009, 05:47:44 pm
I can access demo site with https but getting a self signed certificate warning, would this cause problems with PayPal?
To test use http. For production use that's however no option

Quote
Line 276, search for "purcheased"
Thanks ;)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jaus on March 15, 2009, 08:02:04 pm
rg. is a typo as Fabricio already pointed out. Put there any value. And most probably you'll see the bom, these strange characters for a short time on the top left corner of your browser window, maybe a second or less. If not, use another value and reload. To search for these characters use copy/ paste.

In the end that means it's a somehow modified file. Usually the bom got attached by an editor. That stops the script from working.

I have tried quite a few random values in place of 'cancel' but I do not see anything but an empty page, even for just a second. 
I did try to cut and paste the bom characters from your earlier post for a search in the photoshop english lang file and the photoshop_paypal_ipn file, but did not find any match.

The files were uploaded directly to the server and have not been exposed to any editor.

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on March 15, 2009, 08:16:51 pm
I have tried quite a few random values in place of 'cancel' but I do not see anything but an empty page, even for just a second. 

I do
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Synthea on March 17, 2009, 06:09:38 am
Thanks for the work on this shop Stramm. Just a quick question, I'd like to try and find this out before I get knee deep and find it doesn't work.....My client wants me to upgrade her gallery to 1.5.x - I see your sandbox is 1.4.18 Stramm, so I'm just wondering if anyone has used this with 1.5.x?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Synthea on March 17, 2009, 06:37:13 am
Nevermind my last post, I managed to talk her out of 1.5, whew. I feel like I just dodged a bullet.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: MrMastah on April 04, 2009, 08:18:32 pm
Thank you for this superb plugin Stramm!

I'm trying to make it work on my dev server setup and i discovered that in functions.inc.php on line 210 the VAT (19%) is hardcoded so when I set it to 25 in config it calculates correctly but it doesn't print out the correct %
Code: [Select]
$total_price .= sprintf($lang_photoshop['total_incl'], '19').": {$vat} {$CONFIG['photo_shop_currency']}&nbsp";and also on line 229 (same file)
Code: [Select]
$vat_txt = sprintf($lang_photoshop['total_incl'], '19').": {$vat} {$CONFIG['photo_shop_currency']}";
and this line "You have added to many images to your CD. Please remove at least %s item(s)!" doesn't output the correct amount of pics to remove, it displays the total of pics added to the CD! This needs to be fixed (I dont know how or where)...

Just thought you would like to know :)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on April 05, 2009, 09:24:47 am
replace
Code: [Select]
'19'with
Code: [Select]
$CONFIG['photo_shop_vat']
haven't tested this but it should work (that's the calculation for the confirmation email)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: mtbiker on April 06, 2009, 06:43:22 am
Stramm,
  First off, thank you for a wonderful plugin and all the support!

I've installed Photo_Shop and it's working fine except for one thing.  Hopefully you all can help with with it.  It seems pretty easy, but i can't figure it out.

I'm running the Mac OS x theme.  On this theme the PhotoShop Buttons for the items in cart and check out are at the top left underneath the menu buttons.  When I hover over the @ symbal (link to the login links), it puts the login links on top of the buttons.

How do I move either the photo shop button buttons up, or those login links downs so they aren't on top of each other.  I thought this would be easy to correct but I can't find the code that displays the buttons, and I don't know anything about javascript to fix the login links.

Here's a link to my page so you can see what it's doing. http://www.thebrownhomeonline.com/photo

Thanks in advance for your help!
Mark

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: mtbiker on April 07, 2009, 04:34:42 am
Never mind, I figured it out.  Don't know how I missed the {CART_MENU} the first time thru reading all the posts.

Thanks again for a great plugin Stramm!
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Fabricio Ferrero on April 10, 2009, 07:48:07 am
Hi Stramm,

I read the whole thread (honestly very quickly) and I think that one answer that some spanish member ask hasn't been asked yet...

Is it possible to put only some category on sale and avoid the rest? This member wants to install the plugin but he said he don't want to sell all the pictures on the gallery but some of them.

Thanks ;)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on April 10, 2009, 09:57:34 am
First post: ;)
Quote
Per Album Settings:
If you do not want global prices for all items, then you have the possibility to set different prices for each album or to disable the shop for certain albums.
For that check in the shops config the ‘Per Album Settings’. If you set as price 0.00 for an item in the per album settings, the this item won’t show in the dropdown anymore.

So you can't exclude categories but you can exclude certain albums.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Fabricio Ferrero on April 10, 2009, 05:47:42 pm
My bad...  :-X

I read it very quickly searching for "category", I didn't find the word and I wrongly assumed that it was not possible.

Thanks,
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Graham66 on April 15, 2009, 01:56:08 am
I have recently created a Coppermine site and have installed the Photo_Shop shopping cart plug-in.  I am not a PHP programmer and had no experience of it at all until I started on my site a couple of weeks ago, but so far, generally so good, and thank you so much for the work which has gone into these products.

Two questions, if I may please:

1.  I have the shopping cart enabled on one gallery only, and this is how I want to keep it.  If I create a new gallery, or (more importantly) another user creates a User Gallery, it is created with the shopping cart enabled, which is not what I want at all.  Is it possible to modify anything such that the default for a new gallery is that the shopping cart is inactive unless and until expressly enabled by the administrator, even if it is active on other galleries?

2.  I am afraid the apostrophe raises its ugly head again!  I have seen that it used to be an issue with the main Coppermine configuration that odd characters would be generated when the site title and certain other words contained an apostrophe, but that this was fixed.  My site is called "Graham's photography galleries".  The problem is that when emails are created as a result of a user confirming an order, the "from" field of the confirmatory email appears as "Graham&#39;s photography galleries".

The problem seems to arise from one of the Photo_Shop PHP files, since the confirmatory email which is sent if a new user creates an account correctly shows as "Graham's photography galleries".  I assume this is something which would need to be corrected in photo_shop_checkout.php.  I have read the old threads about how this was corected for the main programme and have tried copying in the HTML_SUBST code which was used previoulsy, but unfortunately this is not working and I am not suffieintly skilled in PHP to know what to try next.  Any guidance as to how to fix this, which I suspect is something fairly simple for those who know how, would be much appreciated.

Thank you for any help you can give on these.  My site is at www.a1rat.com/coppermine, and there is a dummy user account test/test.
The shopping cart is enabled only in the Chichen Itza gallery (this is only as a test to get things working properly - I am not actually selling anything yet!).

Graham
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on April 15, 2009, 11:09:45 am
With a small change (unfortunately it'll need another query) it's possible to change to function of the 'per album settings' in the shops config.
By default the system looks up if there's an entry in the db for a certain album. If not, it shows the album. If there is an entry, it may mean that the album should not be displayed or that this album should show different prices.
We just invert the meaning of the checkbox 'Shop enabled for this album'. If the checkbox is checked, then the shop is disabled for that album.


To do that find in codebase.php
Code: [Select]
$results = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_SHOP_PRICES']} WHERE aid={$pic_data['aid']}");

    while ($temp_data = mysql_fetch_array($results)) {
if($temp_data['gid']=='-1') return $pic_data;
$SHOP_CONFIG[$temp_data['gid']]['price']=$temp_data['price'];
}
mysql_free_result($results);

and replace with

Code: [Select]
$results = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_SHOP_PRICES']} WHERE aid={$pic_data['aid']} AND gid=-1");

$temp_data = mysql_fetch_array($results);
if(!$temp_data['gid']=='-1') return $pic_data;
else
{
$results = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_SHOP_PRICES']} WHERE aid={$pic_data['aid']}");
    while ($temp_data = mysql_fetch_array($results)) {
$SHOP_CONFIG[$temp_data['gid']]['price']=$temp_data['price'];
}
}

mysql_free_result($results);

For your second question.... make sure the lang file is saved as utf-8
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Graham66 on April 16, 2009, 11:37:51 pm
Thank you for your prompt reply.

The reversal of the meaning of the checkbox works perfectly.  To tie in with this, I altered 'shop_enabled' in line 95 of english.php to read "=> 'Shop disabled for this album',", so that the text against the checkbox reflects the checked or unchecked status.

In relation to the apostrophe problem, however, I have checked the file format, and this is apparently not the source of the problem.  In fact, I did not expect it to be, although I did re-save the lang file, to check.  The problem occurred right from the very first test I did of the cart, before I had altered any of the files in the plug-in, and therefore before I had had the opportunity to change the encoding (assuming that the files in the distribution package were encoded in this way).  Do you have any other suggestions, please?

Thank you for your help

Graham
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on April 17, 2009, 12:04:20 pm
Yep, working while registering but not for eg. ecards

to fix that find in photo_shop_checkout.php
Code: [Select]
if(cpg_mail($user_info['user_email'], $subject, $mail_body, 'text/plain', $CONFIG['gallery_name'], $CONFIG['gallery_admin_email'] )) {
and replace with
Code: [Select]
if(cpg_mail($user_info['user_email'], $subject, $mail_body)) {

Please report back if it works and if you recognize any drawbacks.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Graham66 on April 17, 2009, 02:54:48 pm
Thank you for the fix.  I have made the change, and this broadly works.  Certainly for my gallery name with an apostrophe, it is fine.  I have, however, found one instance in which is does not work.  As an experiment, I created a new user with a name which contains an apostrophe (the name I used was "test's control", but I am sure this does not matter), and then had this user send an ecard.  The outcome was that the email subject appeared correctly as "An e-card from test's control for you", but the email sender showed as "test&#39;s control".  The text within the body of the email was fine, however.

This is clearly a far less important issue than previously - how many users would ever register with an apostrophe in their user name and then send an ecard, I wonder? - but I wanted this to work.  I seem to have solved the issue by including, after the exisiting line 32 of mailer.inc.php, the line:

$sender_name = strtr($sender_name, array_flip($HTML_SUBST));

In the limited time I have had to try this out, it seems to work, at least for ecards.  Hopefully it will not have any adverse knock on effects, but if I discover any, I will let you know.

Many thanks for your help in sorting this out.

Graham

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: feline on April 21, 2009, 01:03:17 am
Stramm, the widow of an WWII ex-prisoner of war in Germany is back. 
Making an item cost 0.00 does not work for me.  What can I do to have a unique price list for each album?
Ruth

http://arthursphoto.com/coppermine/cpg1.4.21/cpg14x/index.php
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Aeronautic on April 21, 2009, 03:11:32 am
Hey Stramm,

Got a strange one.

Brand new install over the weekend.

Running:
Coppermine Photo Gallery 1.4.21 (stable)
Same version of your Mod Pack
Plug-ins:
Name Final_Extract2 v1.0     
Name Keywords_add v1.1   
Name Copy /Paste BB Code image url v1.2   
Name Photo Shop v1.4.0 

For reference, another thread I had open that is now solved, but insight into my troubleshooting so far:

http://forum.coppermine-gallery.net/index.php/topic,59102.0.html

While I've got this exact same set-up running correctly elsewhere, at this new gallery, now that I've got no more full-size images popping up incorrectly like this (just two copies of a scrap test file with diff file names):

http://www.pupandhorse.com/dog-pictures/displayimage.php?pos=-2

instead, they are displaying like this:

http://www.pupandhorse.com/dog-pictures/displayimage.php?pos=-4

Unlike the other correct install, your shop plug-in no longer "knows" how big the upload was and is only offering the smallest file size for purchase (see link just above).

I'm trying to get the link above to display just like it is now without a javascript call to a fullsize image, but, with the cart offering purchase of files up to the full size (as in the first link drop down choices). Make sense?

Thank you for your great contributions and help!
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on April 21, 2009, 01:26:32 pm
I can't open your site so I'm just guessing...
 -permissions (check the orig_ and the fullsized image, check if the orig_ has been created, If php can't read the orig, it'll use the fullsized image to determine the dimensions; if that's resized to a smaller size [and if this size is approx your smallest offer in the shop, you'll have the solution]) --> change file/ folder permission [coppermine config and/ or FTP] --> you also may try to http upload an image and try if that works
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Aeronautic on April 21, 2009, 05:32:14 pm
Thanks for the speedy reply Stramm.

Orig file is there - but - it got re-sized...

Ah... digging further. My bad! Here is what happened (don't let this happen to you!) ;)

While testing I put the file up there again without the permission change to the actual file (via FTP/batch). Saw it was still not doing what I wanted it to do (per my other thread). Changed the permission by hand on the file. Ran the Admin tool. Changed "everything" on the re-size. Voila, re-sized original - not what I wanted.

Just uploaded via FTP/batch. Changed permission on the actual file. Added it via batch. All is good in the world. My thanks to you again Stramm.

If you PM me your IP I'll double check the firewall is not blocking it for some odd reason just in case you'd like to take a look.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on April 21, 2009, 07:09:11 pm
k, I'm glad you find the solution for your problem.

And it seems that this is a region based block (as another supporter based in Europe wasn't able to view your site, too).
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Aeronautic on April 21, 2009, 09:12:06 pm
Re: Block - was the other supporter not in South America? Should you wish to PM me the IP I'll be sure you can get in. Our server's security has tightened of late.

Again, my thanks for your help and the many contributions (mod, plug-ins, etc.)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: feline on April 21, 2009, 11:50:35 pm
When I discovered the reason that putting o.oo in the shop configeration did not work for me I felt silly.  The table that appears BELOW on the screen after a save of the shop config is the place to remove prices with a 0.00.  Then I can select album, delete prices on items not wanted (0.00) and update album.  Works great! 
Ruth
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: feline on April 22, 2009, 08:21:18 pm
An item is added to the shopping basket.  Then the box "1 image in cart" is clicked.  The new screen shows a minipic and item details.  Can the 'pricelist' under these details be preventeds from showing?  All album prices show on the pricelist and I do not want all pricing to show.   Thanks.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on April 23, 2009, 07:58:03 am
in photo_shop_cart.php find
Code: [Select]
photoshop_pricelist();and comment it out
Code: [Select]
//photoshop_pricelist();
Title: Re: A Tip For [cpg1.4.x]: Shopping cart (new version)
Post by: Aeronautic on April 28, 2009, 03:11:19 am
I thought I'd share a tip I'm using. I've noticed some customers were confused about the need to click the paypal button to complete the checkout so I modified the language file and took the opportunity to tweak a couple of other messages at the same time. This is appropriate for my stock photo business, but may not be fully appropriate for all users. Please take or leave any of it.

It:

1) Encourages customers to click the paypal button to checkout with any major credit card and reminds them no paypal account required.
2) Tells them to look in their spam folder for the confirmation e-mail that is coming.
3) Reminds them that their purchase binds them to the terms of the site license.

In:

yoursite/pathtocpg/plugins/photo_shop/lang/english.php

Look around line 137 or so for this code:

Code: [Select]
'email_sent' => 'Thanks for your order.<br> We have sent you a confirmation email! <br>Your order will be processed after payment! <br>',
And consider making the changes here:

Code: [Select]
'email_sent' => 'Thank you for your order - it is almost complete!<p> We are sending you a confirmation email - check your SPAM folder! <p>Your order will be processed automatically after your payment.<p><font color="red"><i>IMPORTANT</i></font> - YOU MUST CLICK THE PAYPAL BUTTON NOW TO COMPLETE THE ORDER WITH ANY MAJOR CREDIT CARD - NO PAYPAL ACCOUNT NEEDED. <p><font color="red"><i>NOTICE</i></font>:Your purchase indicates your agreement to be bound by our <a href="http://www.YOURSITE.com/pathto/YOURTERMS.html" title="license - click to read" target="_blank"><font color="blue">license terms</font></a>. (a new window will open)<br>',
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: JackDeth on May 09, 2009, 05:40:08 am
First of all, thanks Stramm. Great plugin! I found it just when I needed it for a photographer friend.

Everything, so far, appears to work pretty well. However, I've run into what appears to me to be a bug, but if not maybe you can explain.

When a user adds several pictures to the shopping cart, then click the button to view cart, you see the list of pictures. In the fourth column you have an "Amount" listed with a box and a 1 there.

I assume when you say "Amount" you really mean Qty (quantity)??

If this is the case, the user tries to change the quantity to order more than one picture (they will be sent prints) and then clicks "Save New Amounts", but nothing changes and it reverts back to a 1 again.

How do we get around this since he wants to sell multiple prints? Thanks in advance!


TRS
Title: Re: [cpg1.4.x]: Shopping Cart Worldpay Integration
Post by: genesisncc on May 12, 2009, 02:38:46 pm
Hello

I have recently setup a WorldPay Merchant account with the Royal Bank of Scotland

I am currently running the coppermine gallery on our site http://www.genesisphotographers.org.uk/gallery

I would like to add the functionality of WorldPay as this would be a big help to me. WorldPay have told me its quite simple just need the total amounts to be added to a HTML redirect script file from the final checkout page.

Does anyone know a way of integrating WorldPay?

These are the details i have from them:

---

Dear Mr McDonough,
 
I am pleased to inform you that your application is now at the final stage. Once you are ready to start trading, please make sure you have completed the following steps:
1. You have completed the technical integration of your website with our Payment Service and have made a test purchase/order to check that your integration is working correctly
2. Your integration is set to work in test mode (your store is set to 'test' or your testMode parameter equals '100', e.g. <input type=hidden name="testMode" value="100">)
3. Your website fully complies with our website rules (we will not be able to activate your installation until your website is fully compliant). Our website rules can be found on our support website at http://www.worldpay.com/support/content.php?page=startup&sub=website
** Please note you should not submit your activation request until you have completed steps 1-3 above. Failure to do so will result in a delay in activating your installation to take payments **
4. You have submitted an activation request. To submit your activation request, you will need to log in to the Merchant Administration Interface (MAI) and follow the instructions outlined in our Test and Go Live guide http://www.worldpay.com/support/kb/mergedProjects/testandgolive/tgl5201.html
Within two working days of receiving your activation request we will place a test purchase/order on your website using the instructions you provide in the MAI and check that your website meets our requirements (if we encounter any issues during our testing we will contact you by email).
After successfully testing your website, we will activate your installation and send confirmation to you by email (please follow the instructions outlined in this email to start accepting live payments on your website).
If you have any queries or require further information about connecting your website to our Payment Service, please refer to our support website http://www.worldpay.com/support/content.php?page=technical
Best regards,
XXXX [Edit GauGau 2009-05-23 17:28 h UTC+2] Removed name as per request [/Edit]
Customer Services Administration

---

Many Thanks

Graham McDonough
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: tinorebel on May 13, 2009, 11:33:12 am
Hallo to all readers, big up to Stramm for this excelent plug-in.

I am using this shop on my website, a small photostock selling images, with good resoults.
I just thought it would be great to have a link in the e-mail sent to the clients if they want to pay with pay-pal.
Is it possible to include in the e-mail the link to pay-pal?

I dont understand coding enoughf but maby it could be an easy and usefull mod.
If someone can give me a hint it would be greatly appreciated.

Title: Re: [cpg1.4.x]: Shopping Cart Worldpay Integration
Post by: Stramm on May 14, 2009, 12:06:16 pm
Hello

I have recently setup a WorldPay Merchant account with the Royal Bank of Scotland

I am currently running the coppermine gallery on our site http://www.genesisphotographers.org.uk/gallery

I would like to add the functionality of WorldPay as this would be a big help to me. WorldPay have told me its quite simple just need the total amounts to be added to a HTML redirect script file from the final checkout page.

Does anyone know a way of integrating WorldPay?

Pretty easy.... edit photo_shop_checkout.php

before
Code: [Select]
//pay by wireadd
Code: [Select]
if ($CONFIG['photo_shop_cc_enable'] && $order_price > 0) {
$msg_box_txt .= <<<EOT


EOT;
}

Between the EOTs write the html necessary for your billing system. Have a llok at the paypal and google versions. These should teach you what to do.
Finally enable Credit Card payment in the shop config.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on May 14, 2009, 12:26:43 pm
Hallo to all readers, big up to Stramm for this excelent plug-in.

I am using this shop on my website, a small photostock selling images, with good resoults.
I just thought it would be great to have a link in the e-mail sent to the clients if they want to pay with pay-pal.
Is it possible to include in the e-mail the link to pay-pal?

I dont understand coding enoughf but maby it could be an easy and usefull mod.
If someone can give me a hint it would be greatly appreciated.



In photo_shop_checkout.php find the part that generates the paypal code right after
Code: [Select]
//pay with paypal
Here you'll see the shop looping through all basket items and creating form fields. At the end of the block it adds these form fields and a submit button to the variable $msg_box_txt. The same that gets added to the message box save in another variable. Let's call it $add_paypal_to_user_email

Now find the function photoshop_email_the_user {} and add the newly created variable to the globals.
To the $template_vars array add
Code: [Select]
'{PAYPAL_BUTTON}' => $add_paypal_to_user_email,

Open the language file and edit the variable $lang_photoshop_email_order ... add {PAYPAL_BUTTON} where the paypal button should appeare.

A problem could occur though... the messages are sent in plain text. So you'd need to switch to html.
in the function photoshop_email_the_user {}
change
Code: [Select]
if(cpg_mail($user_info['user_email'], $subject, $mail_body)) {
to
Code: [Select]
if(cpg_mail($user_info['user_email'], $subject, $mail_body, 'text/html')) {

However it might be that you'll have to edit the mail template as well (make it html mail compatible... header, html tags eg. <br>)
Title: Re: [cpg1.4.x]: Shopping Cart Worldpay Integration
Post by: genesisncc on May 17, 2009, 10:06:06 am
Pretty easy.... edit photo_shop_checkout.php

before
Code: [Select]
//pay by wireadd
Code: [Select]
if ($CONFIG['photo_shop_cc_enable'] && $order_price > 0) {
$msg_box_txt .= <<<EOT


EOT;
}

Between the EOTs write the html necessary for your billing system. Have a llok at the paypal and google versions. These should teach you what to do.
Finally enable Credit Card payment in the shop config.


Thanks Stramm

I just have one problem the HTML Script Worldpay gave me is below, but i think its more for static payment options like if you have a buy now button on your web page where the price stays the same. How can i populate the script with the final price from the shopping cart as this will be different every time?

--

<!-- The first line of code specifies the URL for our test environment.-->

<form action="https://select-test.worldpay.com/wcc/purchase" method=POST>

<!-- This next line contains the testMode parameter - it specifies that the submission is a test submission -->
<input type=hidden name="testMode" value="100">

<!-- This next line contains a mandatory parameter. Put your Installation ID inside the quotes after value= -->
<input type=hidden name="instId" value="231463">

<!-- Another mandatory parameter. Put your own reference identifier for the item purchased inside the quotes after value= -->
<input type=hidden name="cartId" value="Online Gallery">

<!-- Another mandatory parameter. Put the total cost of the item inside the quotes after value= -->
<input type=hidden name="amount" value="50.00">

<!-- Another mandatory parameter. Put the code for the purchase currency inside the quotes after value= -->
<input type=hidden name="currency" value="GBP">

<!-- This creates the button. When it is selected in the browser, the form submits the purchase details to us. -->
<input type=submit value=" Buy This ">

</form>
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on May 17, 2009, 10:15:16 am
variables that may be from interest for you

$shipping_price  - holds shipping
$item_price  -  total price
$order_id  - hold the order id

use it in brackets {} within EOT
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: genesisncc on May 17, 2009, 12:11:10 pm
variables that may be from interest for you

$shipping_price  - holds shipping
$item_price  -  total price
$order_id  - hold the order id

use it in brackets {} within EOT

Where do i find photo_shop_checkout.php?

Sorry i am a new to this

Many thanks

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on May 17, 2009, 01:59:43 pm
it's one of the shopping cart files
Title: Re: [cpg1.4.x]: Shopping Cart Worldpay Integration
Post by: genesisncc on May 19, 2009, 12:37:23 am
Pretty easy.... edit photo_shop_checkout.php

before
Code: [Select]
//pay by wireadd
Code: [Select]
if ($CONFIG['photo_shop_cc_enable'] && $order_price > 0) {
$msg_box_txt .= <<<EOT


EOT;
}

Between the EOTs write the html necessary for your billing system. Have a llok at the paypal and google versions. These should teach you what to do.
Finally enable Credit Card payment in the shop config.


Hello Stramm

Many Thanks for giving me the hints and tips required to get my WorldPay installation up and running.

Any advice for people wanting to use WorldPay you may follow what i did below?

--

I looked at the Google Checkout setup and used that for the WorldPay info. I used the following script from WorldPay which i added into the photo_shop_checkout.php instead of the Google script i deleted it and pasted in the WorldPay one. It was very similar:

Code: [Select]
if ($CONFIG['photo_shop_google_enable'] && $order_price > 0) {
$msg_box_txt .= <<<EOT
<form method="POST" action="https://select-test.worldpay.com/wcc/purchase">
    <input type="image" name="Worldpay Checkout" alt="Fast checkout through WorldPay" src="http://www.genesisphotographers.org.uk/images/payment_cards.gif?merchant_id={$CONFIG['photo_shop_google_id']}&w={$CONFIG['photo_shop_google_button_width']}&h={$CONFIG['photo_shop_google_button_height']}&style={$CONFIG['photo_shop_google_button_style']}&variant=text&loc={$CONFIG['photo_shop_google_button_loc']}"  height="74" width="164"/>

<input type=hidden name="testMode" value="100">
<input type=hidden name="instId" value="YOUR ID">
<input type=hidden name="cartId" value="{$order_id}">
<input type=hidden name="amount" value="{$order_price}">
<input type=hidden name="currency" value="GBP">

<input type=submit value=" Pay Now ">
</form>

EOT;
}
   

I then just uploaded an image to be displayed on the checkout page next to the "Pay Now" button "payment_cards.gif"

Now if i want to dissable WorldPay i just go into the Shop Config and dissable the Google Checkout. Not the most ideal way of doing it but i don't know enough about re-programming Coppermine to change the Google Checkout settings in the Config. Or adding another option just for WorldPay.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jjinks on May 27, 2009, 06:33:14 pm
How do I change the PayPal email address for Photo Shop?
I tried changing the admin email in main config but didn't work.
Please Help!!!
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on May 27, 2009, 07:53:05 pm
use the shop config
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: hunterjo2 on May 27, 2009, 08:17:56 pm
Hi Stramm.

Excellent Mod!  I need to know how to get the cart to fit within the template.

www.rallyimage.com/gallery/index.php.

The user has to scroll over to see the cart totals.  I have managed to move the buttons but I cant get the cart to resize by modifying the table properties in photo_shop_cart.php

Anyway any guidance would be appreciated.

Joe
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jjinks on May 28, 2009, 12:14:37 am
Wow, fast reply. Thanks!!

I thought I had latest version but can't find in config.
I'm not one to post without looking through past posts or config.

Here is link to screen capture:
http://bswildlife.com/images/shop-config.png
Title: So close!
Post by: camster on May 28, 2009, 12:59:00 am
This seems to be the most relevant thread so I hope I got it right. I've installed the photo_shop plugin and the config seems to be working great. However I'm attempting to set up IPN and photo downloads after purchase and am getting an error.
- I've enabled IPN on my paypal merchant account.
- In my photo_shop config> General settings panel I've enabled "Enable photo downolads after purchase", as well as the other options
- In my photo_shop config> PayPl Support settings panel, I've entered that PayPal merchant email into the email field.
  The rest of the settings I left as default except for the PayPal form URL. I changed it to live address as I was having problems with the sandbox.

I also noticed the administrator can click on the "orders" button and download the images purchased but normal users dont have the download link to the orders they have purchased. If I could get download links in the users account thats all I would need.

I tried a live buyer test and the photo_shop linked the user to the paypal login and the cart was fine after login. The problem is when the user clicks on Pay Now I get "An internal Server Error"


Maybe this is a PayPal IPN issue I'm not sure but if someone could help me narrow down the problem I'll know where to look.

Thanks
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on May 28, 2009, 07:57:48 am
Wow, fast reply. Thanks!!

I thought I had latest version but can't find in config.
I'm not one to post without looking through past posts or config.

Here is link to screen capture:
http://bswildlife.com/images/shop-config.png

Use the latest version of the shop
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on May 28, 2009, 08:10:01 am
Hi Stramm.

Excellent Mod!  I need to know how to get the cart to fit within the template.

www.rallyimage.com/gallery/index.php.

The user has to scroll over to see the cart totals.  I have managed to move the buttons but I cant get the cart to resize by modifying the table properties in photo_shop_cart.php

Anyway any guidance would be appreciated.

Joe

I think it's cause of the right side menu. The shop creates a new table and uses the width value from config. However that's including that menu. You'll have to edit that in photo_shop_cart.php

find
Code: [Select]
starttable('100%', $lang_photoshop['cart'], 1);
and change 100% to whatever fits (if set width is eg. 800 px and the menu needs 200 then 800-200 = 600 -> instead of 100% use 600)
Title: Re: So close!
Post by: Stramm on May 28, 2009, 08:18:19 am
I also noticed the administrator can click on the "orders" button and download the images purchased but normal users dont have the download link to the orders they have purchased. If I could get download links in the users account thats all I would need.

Shop config -> Shopping Cart General -> Enable -My Orders- button  (yes)

Code: [Select]
I tried a live buyer test and the photo_shop linked the user to the paypal login and the cart was fine after login. The problem is when the user clicks on Pay Now I get "An internal Server Error"


Maybe this is a PayPal IPN issue I'm not sure but if someone could help me narrow down the problem I'll know where to look.
IPN, even if setup wrong, never caused an internal server error on the paypal site when I tested the shop. Try the sandbox before going life. Wait a few hours it maybe a temp paypal problem.
Title: Re:So Close
Post by: camster on May 28, 2009, 12:57:02 pm
Shop config -> Shopping Cart General -> Enable -My Orders- button  (yes)
Thanks Stramm. I do have the my orders button turned on and the orders do show but there is no link to download the image.

However I've narrowed down the problem. After purchase I recieve an email from paypal saying the IPN failed with the following error message.
I think whats happening is the IPN is failing to notify photo_shop the order has been paid therefor the "P" (paid) icon in the order is not showing as paid. I'm assuming once I get IPN working the order will show as paid and the link image will show. I checked the PayPal IPN maual and as far as I know all I have to do is enable IPN, if theres something specific I need to do to photo_shop or if theres documentation somewhere here on how to set up the IPN for photo_shop please let me know. The following is the IPN error message:

Bad order (PayPal says it's invalid): HTTP/1.1 200 OK
Date: Thu, 28 May 2009 10:33:51 GMT
Server: Apache
Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=aeJ2MW1YwgMw2BuNFDN29JHiRnVPANy9PPIvkh05R_-rWOIaQGCWyg7HdKtFJzLljkQUFnl70htifeWlEUTzuVgFPjBI6112IX7GcUStXJibaReeghCOd97cPWGWcYcDRaq8C0%7c6-OipjYmoTiUH5qmrcfnrrU5PZFK8FZOkxFZOMZ67SBmERfuzECaD8N2VU9AjOZrYIWP3m%7cxcRlqhJeW4mlPBHi9lL_J03kD3RjUsJZnCrFqLgztd-WOfsFe9RYBvNuj2MtrbvU03U1KG%7c1243506832; domain=.paypal.com; path=/
Set-Cookie: cookie_check=yes; expires=Sun, 26-May-2019 10:33:52 GMT; domain=.paypal.com; path=/
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/
Set-Cookie: navlns=0; expires=Wed, 23-May-2029 10:33:52 GMT; domain=.paypal.com; path=/
Vary: Accept-Encoding
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

7
INVALID
0
Title: Re: [So Close
Post by: camster on May 28, 2009, 01:20:00 pm
..just one other piece of info.
On my IPN settings for the Notification URL (listener) i have it set as:
http://www.zenstream.net/imagestream/
(imagestream is the root folder of coppermine) maybe I have to add the plugins/photo_shop/ to the URL?

Thanks
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on May 28, 2009, 01:29:07 pm
Invalid means Paypal didn't verify the order. Usually currency doesn't match (set within paypal and the shop) or your merchant email is invalid (check for spaces).

Btw., the email's from the shop plugin.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: camster on May 28, 2009, 04:31:46 pm
Thanks Stramm

-I checked my currency in the shop and my PP merchant account and they both match to CAD

-I double checked my email listed in the photo_shop plugin setting "Your PayPal merchant email address "
with my actual PP merchant primary email and they both match with no spaces or weird characters.

I tried again and everything goes through from start to finish except I get the same email with the "invalid", code I pasted in my previous message.
Any other possibilities to fix this? or maybe its a paypal issue?

Thanks
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on May 28, 2009, 06:25:04 pm
Create a new merchant... if the order IDs are already used once you get an invalid, too.
And of course it's a PayPal thing as PayPal sends the 'INVALID'. However it may have to do with the shop setup.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: camster on May 29, 2009, 02:53:47 pm
Ok I set up an new Merchant Account in Sandbox with IPN enabled, buyer is set up with instant payment. Also set up a new user in photo_shop.

Purchase process went through just fine but I'm still getting the same problem. The buyer recieves the email reciept but when the user logs in to photo_shop and clicks on "My Orders" the order is listed but is shown as not paid and the there is no link to download the image.  I've attached a screenshot here.

I dont recieve an IPN error in sandbox as I did on a live test.

I've attached a screenshot of my P_S settings


Thanks
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on May 29, 2009, 03:29:03 pm
check the log if the test order went trough
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: camster on May 29, 2009, 04:20:05 pm
The IPN logs show an "INVALID" message, all transactions are identical to below. All the logs are when I was testing live, I dont see any logs for the sandbox tests. I've removed email addresses on this public example. I made sure currencys in P_S and paypal are matching. I've attached a screen shot of the user "My Orders" list showing the order as not payed.

[05/27/2009 11:53 AM] - SUCCESS!
IPN POST Vars from Paypal:
mc_gross=1.05, invoice=12, protection_eligibility=Eligible, address_status=confirmed, item_number1=, payer_id=PJXK5XTJ6PML4, tax=0.05, address_street=8802-93 st, payment_date=11:53:35 May 27, 2009 PDT, payment_status=Completed, charset=windows-1252, address_zip=t6c 3t1, mc_shipping=0.00, mc_handling=0.00, first_name=Cam, mc_fee=0.33, address_country_code=CA, address_name=HockeyArtist.com, notify_version=2.8, custom=, payer_status=verified, business=cwilson@camwilson.ca, address_country=Canada, num_cart_items=1, mc_handling1=0.00, address_city=edmonton, verify_sign=AI36sk2Aln3iC.t.mla1wMizPRcQASqnNWaQI-KbA0R6L9Pzd1BXu2dp, payer_email=email@email.ca, mc_shipping1=0.00, tax1=0.00, txn_id=69N981769B280143K, payment_type=instant, payer_business_name=HockeyArtist.com, last_name=Wilson, address_state=Alberta, item_name1= =&gt; Title: No title - ID: 825, receiver_email=email@email.ca, payment_fee=0.33, quantity1=1, receiver_id=43HRRSYGTJG6J, txn_type=cart, mc_gross_1=1.00, mc_currency=USD, residence_country=CA, transaction_subject=Shopping Cart, payment_gross=1.05,
IPN Response from Paypal Server:
 HTTP/1.1 200 OK
Date: Wed, 27 May 2009 18:53:43 GMT
Server: Apache
Set-Cookie: cwrClyrK4LoCV1fydGbAxiNL6iG=aDhKlzEL-SN_RxuEZcxq_4aXrXZh8T90TYNtALj3pYjSUgM2jQ7QR5w4LG9J6xch8bNGoQZ5iHb9FMuO5luqxR2B6-toZpsse7nwMNsm-D5KM4KdPq7SkAngb5Tgq8zL-jws_W%7ck3kYCxu9z9ZDPBtI9xKnOXCLhXGmU7JPLYRMt8Jp3WlxpELOX6V5reRZvFg6kIuJSoozDm%7c7z43xfr_xG0dLVGN5N-K9to__QvDrvH0Y1o2HirVekpvd-Zu_ITDkTeEdFsJT8GraeO7om%7c1243450423; domain=.paypal.com; path=/
Set-Cookie: cookie_check=yes; expires=Sat, 25-May-2019 18:53:43 GMT; domain=.paypal.com; path=/
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/
Set-Cookie: navlns=0; expires=Tue, 22-May-2029 18:53:43 GMT; domain=.paypal.com; path=/
Vary: Accept-Encoding
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

7
INVALID
0


[05/28/2009 7:16 AM] - SUCCESS!




Thanks
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on May 29, 2009, 05:10:58 pm
Paypal currency is set to USD... didn't you say you use CAD? Set USD in the shop's config and try again
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: camster on May 29, 2009, 05:49:09 pm
The log shown in last message was from a live test where my paypal merchant account is CAD, thats why the log shows CAD. P_S config was set as CAD as well.
In my sandbox test the merchant account is US currency and I have P_S set to USD so in both cases they are matching but getting the same problem with the live test (both CAD) as I am with the sandbox test (both USD).

But for some reason the IPN logs are only showing the live transaction logs and not the Sadbox transaction logs.  I'm not getting an IPN error email with the sandbox tests as I am with the live tests

Thanks
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on May 29, 2009, 05:51:24 pm
then sandbox isn't setup correctly (merchant email)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: zelal on May 29, 2009, 08:16:12 pm
Hi Stramm, I am also having the same problem. Please look at my screenshots below. I am using PayPal sandbox accounts.

My order is not processed and Sandbox sends me (admin@istockgraphics) the e-mail with the subject "PayPal IPN failed" and message:-

==================================================================================
Bad order (PayPal says it's invalid): HTTP/1.1 200 OK
Date: Fri, 29 May 2009 17:26:28 GMT
Server: Apache/1.3.33 (Unix) mod_fastcgi/2.4.2 mod_gzip/1.3.26.1a mod_ssl/2.8.22 OpenSSL/0.9.7e
Set-Cookie: c9MWDuvPtT9GIMyPc3jwol1VSlO=OMDCm0U6QFeXXCkFTywvcO-LXbL5VpVPUq8AzoGKLOjJhUmlLMVxlQ-wc2ga8DLz9V_97Gv3XR9l8eWOKsc7BMIllEKpjPi1_GWbrq8OgmMOSvtmmsAG8sth1FtW-7lXfJA0SW%7cu8HEIHEFWgNO2cJ5gDOa9JzLI2NAsY1drYRzKv6I2PWTRjhxmXWbX_PxiGCm3h9mA88w-W%7cYpK3LZNWm7RBXopAGr-cYm6hL8879FD8b7fdWtw5Z0qW31MvXBJ7gJyT0k9ivE6uvVrUy0%7c1243617989; domain=.paypal.com; path=/
Set-Cookie: cookie_check=yes; expires=Mon, 27-May-2019 17:26:29 GMT; domain=.paypal.com; path=/
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/
Set-Cookie: navlns=0; expires=Thu, 24-May-2029 17:26:29 GMT; domain=.paypal.com; path=/
Set-Cookie: Apache=10.191.196.11.137681243617988975; path=/; expires=Thu, 16-Apr-03 10:58:12 GMT
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

7
INVALID
0
==================================================================================

For your kind information, I am using Full Size Control Access plugin and also using .htaccess file (as per your instruction) inside my "albums" folder.

Could you please have a look at my screenshots and give me your kind solution? I will be really grateful.

Regards.

Zelal
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: pioux on May 31, 2009, 11:10:06 pm
I have an issue too, , can't find the cause

Code: [Select]
USER:
------------------
Array
(
    [ID] => 212681009986a827b21846258186bd33
    [am] => 1
    [lang] => dutch
    [liv] => Array
        (
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => pioux
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 0
    [can_send_ecards] => 0
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [num_URI_upload] => 10
    [can_post_comments] => 0
    [can_upload_pictures] => 1
    [can_create_albums] => 0
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg148_filetypes; (0.001s)
    [1] => select * from cpg148_plugins order by priority asc; (0.001s)
    [2] => delete from `stefplus_be`.cpg148_sessions where time<1243799601 and remember=0; (0.001s)
    [3] => delete from `stefplus_be`.cpg148_sessions where time<1242593601; (0.001s)
    [4] => select user_id from `stefplus_be`.cpg148_sessions where session_id=md5("6ccb27d5ec835182f933db6709fcfe8408eb289d20412b31707c0506f1ad53b5"); (0.001s)
    [5] => select user_id as id, user_password as password from `stefplus_be`.cpg148_users where user_id=2 (0.001s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `stefplus_be`.cpg148_users AS u INNER JOIN `stefplus_be`.cpg148_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' (0.001s)
    [7] => SELECT user_group_list FROM `stefplus_be`.cpg148_users AS u WHERE user_id='2' and user_group_list <> ''; (0.001s)
    [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg148_usergroups WHERE group_id in (1) (0.001s)
    [9] => SELECT group_name FROM  cpg148_usergroups WHERE group_id= 1 (0.001s)
    [10] => update `stefplus_be`.cpg148_sessions set time='1243803201' where session_id=md5('6ccb27d5ec835182f933db6709fcfe8408eb289d20412b31707c0506f1ad53b5'); (0.001s)
    [11] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 2 (0.001s)
    [12] => SELECT * FROM cpg148_final_extract_config (0.001s)
    [13] => DELETE FROM cpg148_banned WHERE expiry < '2009-05-31 21:53:21' (0.001s)
    [14] => SELECT * FROM cpg148_banned WHERE (ip_addr='81.247.49.192' OR ip_addr='81.247.49.192' OR user_id=2) AND brute_force=0 (0.001s)
    [15] => select plugin_id from cpg148_plugins where path="photo_shop"; (0.001s)
    [16] => select priority from cpg148_plugins order by priority desc limit 1; (0.001s)
    [17] => insert into cpg148_plugins (name, path,priority)  values ("Photo Shop","photo_shop",2); (0.031s)
    [18] => SELECT COUNT(*) FROM cpg148_pictures WHERE approved = 'NO' (0.002s)
)

==========================
GET :
------------------
Array
(
    [op] => install
    [p] => photo_shop
)

==========================
POST :
------------------
Array
(
    [submit] => Go!
)

==========================
VERSION INFO :
------------------
PHP version: 5.2.9 - OK
------------------
mySQL version: 5.0.32-Debian_7etch10-log
------------------
Coppermine version: 1.4.8(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.32
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | On | On
safe_mode_exec_dir | /surely/you/must/be/joking | /surely/you/must/be/joking
safe_mode_gid | Off | Off
safe_mode_include_dir | /usr/share/php | /usr/share/php
safe_mode_exec_dir | /surely/you/must/be/joking | /surely/you/must/be/joking
sql.safe_mode | Off | Off
disable_functions | disk_total_space, diskfreespace | disk_total_space, diskfreespace
file_uploads | On | On
include_path | .:/usr/share/php | .:/usr/share/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
sendmail_path | /usr/sbin/b1sendmail -t -i | /usr/sbin/b1sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 12M | 12M
post_max_size | 12M | 12M
==========================
Page generated in 0.3 seconds - 19 queries in 0.05 seconds - Album set : ; Meta set: ;
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on June 01, 2009, 03:13:10 am
Don't post debug_output unless requested.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: pyrosteve on June 01, 2009, 01:34:30 pm
Hi,

I am using an older version of the shopping cart plugin (not sure which version tbh) and it has been working perfectly for my needs for over a year or so now. I am not sure if this issue is fixed in the lastest updates or not, but it is something I would like to just add to the current working system I have in place now if possible.

The issue is that when people place an order for photos, they don't always click the paypal button after checkout to pay online, but the order goes through to their account and they can see it when they check their orders - the issue is, is there anyway to add a paypal link in the order tracking part of the shop so people can pay via paypal for their orders even after navigating away from the payment screen after submitting an order?

Sorry I am not sure if that makes much sense or not!

Kind regards,

Steve
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: zelal on June 01, 2009, 02:01:56 pm
I am still waiting for a kind response from Stramm to my following post in this thread:

http://forum.coppermine-gallery.net/index.php?topic=57206.msg295247#msg295247

Because I am not still getting my PayPal IPN to my coppermine site.

May be, Stramm is doing a research and work-around to improve the Photo Shop and fix any possible non-compatibility with CPG's new version and taking his time to reply to us. If so, I  really wish his success.

Regards.

Zelal
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on June 01, 2009, 02:42:44 pm
Quote
Patience, grasshopper!
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: camster on June 02, 2009, 04:28:37 pm
Quote
then sandbox isn't setup correctly (merchant email)

ok I'm not sure what is not set up correctly and I read on this thread you recommended creating a new seller account so I thought I would start fresh with new paypal sandbox accounts to make sure I have those correct first.
I've also attached my Photo_shop config and buyer account screenshot with notes below. Hopefully this will help narrow it down.


PayPal Sandbox Account Settings

New Premier Account as seller:
zenseller@zenstream.net
Select Payment Solution "Website Payment Standard"
Currency USA

Account IPN is enabled

Notification URL for the IPN
http://www.zenstream.net/imagestream/     (imagestream is root folder of coppermine)     
is this correct? I tried to find more help on this in the PayPal IPN documentation but I couldnt find any details on this.

New Buyer Account (Premier)
zenbuyer@zenstream.net
Select Payment Solution "Website Payment Standard"
Currency USA

All other settings left as default

If theres anything else I need to do or check on the PayPal side or if something is incorrect here please let me know.


Photo_shop

Coppermine Gallery Admin Email: zenseller@zenstream.net
Photo_shop PayPal Merchant email: zenseller@zenstream.net

New Buyer Account: zenbuyer@zenstream.net

Configuration screenshot is attached
The one part I'm not sure about is the "SSL URL to coppermine base dir"
As you can see in the screenshot I have it as the root directory of my coppermine (imagestream)


The Process

- Buyer checks out
- Logs in to PP
- Invoice with ordered item appears with Pay Now button
- Click Pay Now and get a Thank You For Your Payment page
- Click Return to Merchant and get an "Internal Server Error" page
   Return URL after payment  http://www.zenstream.net/imagestream/   (I keep getting an error page instead of back to the Return URL, I'm assuming this is a PayPal issue)

In Photo_Shop
Attached is a screenshot of buyer account, you can see the purchased image is listed but not as paid even though paypal accepted payment and there is no download link.
(2 transaction tests are shown)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: camster on June 09, 2009, 03:12:18 pm
Further to my last post the only other thing I could think of is setting the Photo_Shop directory permissions to read/write/execute but that didnt seem to help. I've put a lot of time into this and would really like to get this last download feature working. If anyone has any ideas where I should investigate please let me know.
Title: Shopping Cart payment with IDeal (europe)
Post by: StudioLahaye on June 12, 2009, 01:20:14 pm
I'm quite a beginner but i managed to install and configure the shop according to my own specs.

I'm trying to implement IDeal payment (paypal alike procedure).
I recieved the (php) code from my bank with instructions.

plain said it tells me to find the syntax that produces the final price, insert an bank ID for verification and paste the code into the source.

easier said then done for me..
Can someone please help me a little more, i can't find the php code that outputs the total price and I don't know where to install the code (hense where to place the IDeal form and submission button).

Any help is appreciated.

As I don't have the code digital now I will post this later.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: elforooffroad.net on June 18, 2009, 08:03:23 pm
woul someone help me install the shoping cart  my gallery, and how much would you charge me?
thank you
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: elforooffroad.net on June 18, 2009, 08:04:55 pm
woul someone help me install the shoping cart  my gallery, and how much would you charge me?
thank you

here is my gallery  www.elforooffroad.net/gallery
thank you
Title: checkout message
Post by: camster on June 19, 2009, 04:57:21 pm
I was just wondering if its possible to change the checkout message.

When a user confirms their order they are taken the checkout page with the message:

"Thanks for your order.
We have sent you a confirmation email!
Your order will be processed after payment! "

I was just wondering if their is somewhere to change this, I've checked in both the photo_shop config and coppermine but cant find it. Any help would be great.

Thanks
Cam
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on June 19, 2009, 07:27:06 pm
Inside the plugin folder, you'll find a sub-folder named "lang" where all language files are suppossed to reside. As far as I can say there currently is only one available: the English language file named english.php. Edit that file with a plain text editor as you see fit - all strings that are send to the output are being defined inside that langauge file. Save your changes after editing and you should be good. Has been asked and answered already afaik.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: camster on June 19, 2009, 09:02:27 pm
Quote
Inside the plugin folder, you'll find a sub-folder named "lang" where all language files are suppossed to reside. As far as I can say there currently is only one available: the English language file named english.php. Edit that file with a plain text editor as you see fit - all strings that are send to the output are being defined inside that langauge file. Save your changes after editing and you should be good. Has been asked and answered already afaik.

Got it, Thanks!  I did do several keyword searches on the forum and checked the CPG documentation but didnt come up with anything, maybe wrong keywords
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Aeronautic on June 21, 2009, 06:02:05 pm
I've created to functions where you as admin can add own functionality to the shop
open include/functions.inc.php
scroll down to the end of that file and find
- function calculate_discount()
and
- function calculate_shipping()

both you could modify in a way that you get your desired result.

I've read through the entire thread (all 9 pages) 3 times before posting but I can't find the answer.

Stramm's response above was to a user who wanted to set shipping options for US and Canadian customers.

I've looked at the subject code, read the docs at the beginning of this thread, and can't figure out how to implement this solution.

I believe this is all of the default subject code:

Code: [Select]
//calculate shipping, user defined
function calculate_shipping(){
global $CONFIG, $SHOP_CONFIG;
    //global shipping is taken (type=ship), if the per item shipping is set and higher, than it overrides global
$shipping = $SHOP_CONFIG['ship'];
foreach($_SESSION['photoshop']['cart'] as $key => $temp){//foreach count photo items

$item_id = (isset($_SESSION['photoshop']['cart'][$key]['id'])) ? $_SESSION['photoshop']['cart'][$key]['id'] : '';
if($SHOP_CONFIG[$item_id]['ship'] >= $shipping) {
  $shipping = $SHOP_CONFIG[$item_id]['ship'];
}
}


return $shipping;
}


Unlike the discount, which I figured out easily from the source code example, I can't make heads or tails of this shipping issue.

My goal is to allow (during check out?) the customer to see there list of items in their cart and then select from a range of shipping options:

Ground USA
Expedited USA
Air USA

And the same for International.

A less elegant solution would be to create 6 identical products with the shipping included and noted. I tried to add these as shipping options to the "item" admin menu late last night thinking that was where they went but re-reading the directions with coffee this morning I understand only one such item is intended as a global override now.

Would very much appreciate some help (or to be told just go with plan B - six products including shipping).

For the benefit of others here is my discount code:

Code: [Select]
//calculate discounts, user defined
function calculate_discount($temp_price, $cd_counter){

$discount = '';
//variables that can be used
//$cd_counter['photo']  number of pics for print
//$cd_counter['cd'] number of pics on CD
//$temp_price[1] price for the CD
//$temp_price[0] price for the pics

//just to demonstrate how to calculate a discount
//10% on print images if user orders more than 10 pics

if($cd_counter['photo'] >= 4) {
$discount = 0.05 * $temp_price[0];
}

if($cd_counter['photo'] >= 7) {
$discount = 0.075 * $temp_price[0];
}

if($cd_counter['photo'] >= 10) {
$discount = 0.10 * $temp_price[0];
}

if($cd_counter['photo'] >= 14) {
$discount = 0.135 * $temp_price[0];
}

if($cd_counter['photo'] >= 17) {
$discount = 0.20 * $temp_price[0];
}

if($cd_counter['photo'] >= 20) {
$discount = 0.30 * $temp_price[0];
}

/*
//or another example... 10% if the order volume is > 100USD
if($temp_price[0] >= 100) {
$discount = 0.1 * $temp_price[0];
}
*/
return $discount;
}


Which yields this result:

Buy 4-6 save 5%
Buy 7-9 save 7.5%
Buy 10-13 save 10%
Buy 14-16 save 13.5%
Buy 17-19 save 20%
Buy 20 or more save 30%
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: catchawave on June 24, 2009, 08:19:51 am
Hi Stramm.

First, what an excellent plug in, many thanks.

A little setting up prob, When my user checks out there are no file numbers on the invoice, just Id 1 etc so I dont know what files to email to him.

Have I left something out.

Regards.
Andy.
www.surfshots.catchawave.co.uk - url to gallery
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Aeronautic on June 27, 2009, 12:02:36 am
Not sure if this addresses your issue, but this hack will switch out the file name for file title:

http://forum.coppermine-gallery.net/index.php/topic,57206.msg280200.html#msg280200

HTH
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: NeilC on June 27, 2009, 03:57:08 pm
Stramm - Please Help  ;D

I have created a folder on my host server (proofing) and uploaded / installed the Coppermine site including the Shopping Cart Plugin. This allows me to use my flash website as usual, and then insert a link called 'Customer Area' which will point to the 'proofing' folder to enable customers to purchase their images.

I have followed your instructions and all is going well, however, I hit 'checkout' and I am returned to my flash homepage??

I am assuming that you have written the code to look in the root folder (as a standalone website)?

Can you tell me how I get around this please?

Thank you in advance.

Neil
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Nibbler on June 27, 2009, 06:21:21 pm
It's probably using the gallery URL you set in config. Make sure this points directly to the gallery.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: NeilC on June 27, 2009, 07:27:04 pm
Sorted....thank you
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: rwozny on June 28, 2009, 02:09:11 pm
I have done all the steps to install the plugin, I have cofigured basics (added products etc), but can't buy anything as there is no button leading to the cart nor the list of products. I'd like to have it just under the picture.

www.justwallit.com - bear in mind the site is just installed and its appearance wasn't changed much.

Thank you
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: rwozny on June 28, 2009, 02:40:12 pm
I have done all the steps to install the plugin, I have cofigured basics (added products etc), but can't buy anything as there is no button leading to the cart nor the list of products. I'd like to have it just under the picture.

www.justwallit.com - bear in mind the site is just installed and its appearance wasn't changed much.

Thank you

EDIT: on configuration page there are two headers 'Shop configuration (...)', below the firs one i have only button saying 'save new configuration' (and nothing else), below the second header there are product options. Should there be something below the first header?? I cant find the option to enable the shop!
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: rwozny on June 28, 2009, 02:49:39 pm
EDIT: on configuration page there are two headers 'Shop configuration (...)', below the firs one i have only button saying 'save new configuration' (and nothing else), below the second header there are product options. Should there be something below the first header?? I cant find the option to enable the shop!

It look slike on the attachment... sorry for three posts in a row but dunno why I can't edit or delete my posts...
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Jeroenfoto on June 30, 2009, 03:53:31 pm
Hi there!

unfortunately i have the same problem here. It looks like it's ok but no drop down box appears with the pictures. I have run the site in debug and it says:

/plugins/photo_shop/codebase.php

    * Notice line 246: Undefined index: cd
    * Notice line 246: Undefined index: photo

It looks like this has something to do with it but I don't know what to do to fix it.

Hopefully someone can help me out with this because it's a great plug-in and I really like to use it!
Then another question, is there somebody who already have a translation in Dutch?

Regards,

Jeroen
www.jeroenvandelft.nl/foto
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on June 30, 2009, 06:44:11 pm
Leave notices_display off if you have no idea what that means.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Jeroenfoto on June 30, 2009, 07:35:50 pm
well, I had put it on because I hope someone here can tell me what to do by reading that. Maybe you can response to the problem? Leaving the notices off isn't solving it unfortunately.

regards,

Jeroen
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Phill Luckhurst on June 30, 2009, 08:33:49 pm
It seems like you are doing something odd Jeroenfoto.

From View Source-

Coppermine version: 1.4.25

&

<!--Coppermine Photo Gallery 1.4.23 (stable)-->

From Update.sql-

Coppermine version: 1.4.23

Not sure whate is going on there?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Jeroenfoto on June 30, 2009, 11:38:06 pm
Ok, I did a brand new install. Seems to work now. Having some other problems but that's for tomorrow.

thanks,
Jeroen
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Jeroenfoto on July 02, 2009, 02:43:27 am
Ok this is the next problem..

in the my orders page the yellow 'D' button appears. clicking it gives this error: Directory already exists.... delete first! Order id: 8
There's also a yellow 'C' button. clicking that gives also a error: Folder does not exist or has been deleted! Create it first [D]!

This is not the first time this problem is posted. the answer that was given the first time was that php save mode probably was on and that downloads can't work wit that. I checked this and it was on. now I have changed that but still getting the same errors?

I really hope someone knows the solution to this. Hope to hear from you experts!

regards,
Jeroen
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Jeroenfoto on July 02, 2009, 01:19:02 pm
Hi there again,
A new day, a brand new install. Everything works fine now. I still have two questions:

-To buy users have to register them selves. No problem but I don't want them to upload or make albums. Is there a way to turn this off? I just want them to buy/download the pictures, nothing more
-Is there already someone with a Dutch language file available?

thanks in advance for your replay

regards,
Jeroen
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Aeronautic on July 02, 2009, 09:57:05 pm
Perhaps go into "Groups" and turn off uploading for registered users? Set the upload methods to zero for them too.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: NeilC on July 02, 2009, 10:51:20 pm
Guys,

Does anyone know if I can change the admin email to show 'filename' instead of 'ID' please? This would make it easier for me to prepare the photographs to print, instead of logging on to shop/admin to obtain the filename.

Changes as below..

Item ID              Type       Amount       Price total

DSC0311.jpg    8 x 6 Photo            1                    GBP 5.00

DSC0312.jpg    10 x 8 Photo            1                    GBP 7.00

DSC0315.jpg    8 x 6 Photo            1                    GBP 5.00


                                                         
                                  To print: 3 pics :: 17.00 GBP

                                     --------------------------

                                               Total: 17.00 GBP

                                                     : 0.00 GBP


I would also like to remove the '0:00' (VAT amount) and widen the 'Type' column (as it limits the description) but I guess I can work that out once I find the correct file to edit?

Thanks in advance..

Neil

www.shop.softtone.co.uk (http://www.shop.softtone.co.uk)

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: NeilC on July 04, 2009, 11:31:36 pm
Guys,

Does anyone know if I can change the admin email to show 'filename' instead of 'ID' please? This would make it easier for me to prepare the photographs to print, instead of logging on to shop/admin to obtain the filename.

Changes as below..

Item ID              Type       Amount       Price total

DSC0311.jpg    8 x 6 Photo            1                    GBP 5.00

DSC0312.jpg    10 x 8 Photo            1                    GBP 7.00

DSC0315.jpg    8 x 6 Photo            1                    GBP 5.00


                                                         
                                  To print: 3 pics :: 17.00 GBP

                                     --------------------------

                                               Total: 17.00 GBP

                                                     : 0.00 GBP


I would also like to remove the '0:00' (VAT amount) and widen the 'Type' column (as it limits the description) but I guess I can work that out once I find the correct file to edit?

Thanks in advance..

Neil

www.shop.softtone.co.uk (http://www.shop.softtone.co.uk)



If someone can tell me which file to edit, I would really appreciate it please?

Thanks
Neil
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Gene-2008 on July 05, 2009, 03:35:52 am
I am trying to get this working....have made a few changes I'll share latter.

However I can't seem to get the changing amounts of pictures using the "save new amounts" button to work.
When I change the quantity(amount) and press the button it reverts back to the previous amount.

I'm looking at the code around... apply_modifs but don't understand it... ::)

Is it working for others?

Gene
BTW I'm using 1.4.25 and plugin V1.4.0
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Gene-2008 on July 05, 2009, 04:38:59 am
If someone can tell me which file to edit, I would really appreciate it please?

Thanks
Neil

edit photo_shop_checkout.php
change:
$out['text'].= sprintf("%10.10s\t", $lang_photoshop['item_id_checkout']).
                   sprintf("%15.15s\t", $lang_photoshop['type_chckout']).
                   sprintf("%10.10s\t",$lang_photoshop['amount_checkout']).
                   sprintf("%15.15s\n",$lang_photoshop['total_checkout']);

to:
$out['text'].= sprintf("%10.10s\t", $lang_photoshop['item_id_checkout']).
                   sprintf("%30.30s\t", $lang_photoshop['item_name_checkout']).
                   sprintf("%15.15s\t",$lang_photoshop['type_chckout']).
                   sprintf("%10.10s\t",$lang_photoshop['amount_checkout']).
                   sprintf("%15.15s\n",$lang_photoshop['total_checkout']);

change:
$out['text'].= sprintf("%10.10s\t", $item_id['pid']).
                   sprintf("%15.15s\t", $SHOP_CONFIG[$item_id['id']]['name']).
                   sprintf("%10.10s\t", $item_id['amount']).
                   sprintf("%15.15s\n",$CONFIG['photo_shop_currency'].' '.$price);

to:
$out['text'].= sprintf("%10.10s\t", $item_id['pid']).
                   sprintf("%30.30s\t",$row['filename']).
                   sprintf("%15.15s\t", $SHOP_CONFIG[$item_id['id']]['name']).
                   sprintf("%10.10s\t", $item_id['amount']).
                   sprintf("%15.15s\n",$CONFIG['photo_shop_currency'].' '.$price);

--------------------------------------------------------------------------------------------
Item ID                         Filename              Type      Quanity       Price total
      1540          HighlandFramedLarge.jpg              8x10            1         USD 10.00


                                                               

                                For Prints: 1 pics :: 10.00 USD
                                 Plus 7% SC Sales Tax: 0.70 USD
                                     --------------------------
                                               Total: 10.70 USD
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on July 05, 2009, 10:38:36 am
If someone can tell me which file to edit, I would really appreciate it please?

Thanks
Neil

I've described how to do that in the old shopping cart thread
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on July 05, 2009, 10:45:13 am
I am trying to get this working....have made a few changes I'll share latter.

However I can't seem to get the changing amounts of pictures using the "save new amounts" button to work.
When I change the quantity(amount) and press the button it reverts back to the previous amount.

I'm looking at the code around... apply_modifs but don't understand it... ::)

Is it working for others?

Gene
BTW I'm using 1.4.25 and plugin V1.4.0

http://forum.coppermine-gallery.net/index.php/topic,57206.msg287264.html#msg287264
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: elforooffroad.net on July 06, 2009, 03:07:39 am
stram is this what i need to down load to mu coputer?

 photo_shop_1_4.zip (88.05 KB - downloaded 481 times.)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: NeilC on July 06, 2009, 01:54:04 pm
Awesome Gene_2008  :) :)

Really appreciate your help - thank you.

Neil
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: NeilC on July 06, 2009, 01:57:04 pm
I've described how to do that in the old shopping cart thread

I have read all 30 pages Stramm, and I cannot find reference to my question in the old shopping cart thread?

I try to do a thorough search before posting a question, but sometimes it is like trying to find a needle in a haystack.

Sorry for posting a question that has aready been answered, but I could not find it.

Neil
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on July 06, 2009, 03:44:32 pm
I have read all 30 pages Stramm, and I cannot find reference to my question in the old shopping cart thread?

I try to do a thorough search before posting a question, but sometimes it is like trying to find a needle in a haystack.

Sorry for posting a question that has aready been answered, but I could not find it.

Neil

http://forum.coppermine-gallery.net/index.php/topic,52475.0.html
http://forum.coppermine-gallery.net/index.php/topic,32231.msg220514.html#msg220514
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: greggan on July 06, 2009, 03:58:50 pm
I have tried a different approach to shopping possibility (Even thought I still using Paypal :0)
I wanted to use a price matrix for Rights managed image sales.

Watch it here  http://www.stockholmviews.com/gallery/
Trial user login is  User:test /  Passw:0515

All mods performed within template file.

Like or not?

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: gene-photo on July 06, 2009, 06:35:45 pm
I have tried a different approach to shopping possibility (Even thought I still using Paypal :0)
I wanted to use a price matrix for Rights managed image sales.

Watch it here  http://www.stockholmviews.com/gallery/
Trial user login is  User:test /  Passw:0515

All mods performed within template file.

Like or not?



I know this is not your question but why have you removed the "Powered by Coppermine" credits?
I don't find them anywhere...

Gene
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: greggan on July 06, 2009, 07:09:55 pm
Page is not official yet and it might never be.
But if it will the powered by will be there but I will in that case put it in another position :0)

/Stefan
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Pascal YAP on July 06, 2009, 07:53:37 pm
@Greggan
Bad idea !

1/ You must restore "Powered by Coppermine" because Coppermine is "Copyrighted by us", all Dev Team.
2/ No "Powered by..." => no Support by us.
3/ Your Coppermine is totally out dated...
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on July 06, 2009, 10:19:32 pm
As Pascal already told you, it's not up to you to decide if the Powered by Coppermine is being displayed or not, nor is it up to you to decide where the output will be. It's part of the license Coppermine comes with that the tag remains as suggested in the docs. If you can't live with that, remove Coppermine from your page immediately.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: greggan on July 07, 2009, 08:52:58 am
Page removed  :P
If I ever take it up again, I promise to behave  ;)
At the moment I have decided to wait for V1.5
How does it proceed?

Regards/ Stefan  (Without any hard feelings)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: billwill on July 07, 2009, 04:16:55 pm
Where in admin can the cart be setup so unregistered users can simply buy photos without being forced to register with either the album or the forum?  Most people want to choose a photo and pay for it without being forced to register with either the gallery or my forum.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on July 07, 2009, 05:49:06 pm
You need to code that. If a user want's to buy a pic, usually certain information is necessary. That's the registration (name, adress etc.)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: billwill on July 07, 2009, 06:22:44 pm
Doesn't it shoot them off to paypal for the same info?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: billwill on July 07, 2009, 06:24:02 pm
Also am I the first to want this?  If not, can you direct me to the code that will skip the registration?  I'm not a coder.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on July 07, 2009, 06:32:08 pm
You're not the first and yes, I've answered that before... but where... I'm afraid I can't tell you. Maybe even in the german support board.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: billwill on July 08, 2009, 11:29:36 am
I guess I could live with it forcing registration, since that's easier than learning how to code or to speak German.

With this forced registration, I'd rather use my forum rather than have existing members have two separate accounts, so I added the vbulletin bridge.

What happens is, after vistors are forced to register, they are bounced to my forum home page with no explanation as to why they are there, nor is their a simple way to get back.  I would imagine most people would think this was simply a broken link, put their wallet back in their pocket and leave.

Is this the way it's supposed to work, or have I misconfigured something?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: billwill on July 11, 2009, 11:36:28 am
Anybody home?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on July 11, 2009, 12:04:25 pm
It's not coded with bridging in mind. It has basic bridge support but isn't tested much at all... just what users report back here. As I do not use vbulletin (commercial software) I can't tell you what's going on nor can I test it (even if you'd use free software it's kind of a lot work to install that soft, set it up, bridge it and see what's wrong).

So yes, I'm at home but I'm not working on your problem. 
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: computel on July 15, 2009, 05:48:58 am
I have installed a fresh copy of Coppermine and the latest verion of the shopping cart. In window xp internet explorer 7 It always says I have to images in my cart but when I click to view them and I try to go to checkout I get this error.

Critical error
There was an error while processing a database query

 

I have deleted all cookies and even flushed my dns but still shows that I have 2 images in my cart.

Please help

Thank You
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on July 15, 2009, 07:24:08 am
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: computel on July 15, 2009, 02:22:04 pm
here is the link to the site that I get the error.

http://www.maudsleymotorsports.com/gallery/index.php

Attached is the image of no user logged on in Internet Explorer 7 and if you look in the right hand corner of the images it says 3 images in the cart. Works fine in Firefox.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on July 15, 2009, 02:26:56 pm
clear cookies again and make sure you have them deleted
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: computel on July 15, 2009, 04:58:53 pm
I cleared the cookies in IE7 and also went in and deleted the cookies on the HD.

Strange.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on July 15, 2009, 06:06:18 pm
and now?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: computel on July 15, 2009, 11:07:40 pm
Thanks it seemed to work the second time around. noticed that people can bypass paypal and it says they paid they click ok to confirm the order and click continue and it it shows an order in the admin. Can this be fixed and also how do I remove the Vat and put GST?

THanks for all your hard work.

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: CG_Pdt on July 19, 2009, 02:18:02 pm
Hello, I purpose the french traduction for your actual version 1.3.6 !
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: computel on July 22, 2009, 12:37:41 am
OK I tried editing the photo_shop_checkout.php to add the item, shipping and taxes.

but not working here is a copy of my photo_shop_checkout.php file

is it posible to add two taxes as Shipping in Canada only charges GST but on the product it's GST & PST.

renamed it to.txt

Please help thanks
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: computel on July 22, 2009, 11:42:45 pm
OK I final got my site all setup and when I used the ipn it gaves me no such file found so I changed the config to include index.php?file=/plugins/photo_shop/photo_shop_paypal_ipn&action=ipn but it doesn't show the item is paid after I went to paypal and paid for the item. Am I doing somthing wrong here?

Thanks

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: red04svtcobra on July 23, 2009, 01:37:26 am
Is this the most recent version??
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: pcbill on August 10, 2009, 09:19:18 pm
Having trouble with the Photo Shop Cart Plug-in. I installed it and set up some items. No problems installing. When trying to test it I start having troubles when you try to checkout.

The problems vary by which template is active:

With the classic theme you get a page not found response after you hit the confirm order button.

With the igames template, I’m getting the data for the totals both on the left & right of the page.

With my custom template (modified version of igames) I’m getting not cart data when hitting the checkout button, here I don’t get to the confirm button.

Also seems there are some graphics missing as I have a number of red x’s in the config page.

Any help would be appreciated

Bill
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: nanny on August 11, 2009, 08:06:03 am
Hi I had installed latest version of cpg - then placed stramm's mod pack and that made the installed version of cpg be 1.4.24 instead of 1.4.25 - I looked on this site and changed the necessary file to upgrade. I then placed the plugins Photo Shop v1.4.0, Full-Size Photos Access Control v1.4, Right Click Menu v2.0.1 (Stable) and I am using XP and firefox 3, internet explorer 7.
I have changed from the theme I created from the classic and have used the actual classic theme to see the difference.
The problems I am having with the Photo Shop is:
1. I am wanting to have the photo download, photo for printing (& other product types e.g. photo on cooler), cd's for mailing. In the set-up can I have photo download, photo print, cd

2. If the image is for download then they can download after payment. Payment options are bank transfer or PayPal. I have enabled them as shown within this forum. The registration works wonderfully and logs them in as expected but they cannot go anywhere to have an option of payment. The orders never go through. The page gets stuck when hitting checkout button - http://www.visnetmedia.com/photo/gallery/index.php?file=photo_shop/photo_shop_checkout
and the confirm your order button:
http://www.visnetmedia.com/photo/gallery/?file=photo_shop/photo_shop_checkout
there is never any confirmation nothing it just shows the same everytime. Trying to change the number of the same image never changes from 1 when you say put in 5 and hit the save new amounts button:
http://www.visnetmedia.com/photo/gallery/index.php?file=photo_shop/photo_shop_cart&box=photo
So I never get anything for myorders or in the admin or in phpmyadmin database because it never moves or works within that page. Yes I have deleted cookies, changed cookies name, re-installed the plugin and tried the plugin first before placing the other plugins.

3. When I test this plugin on my local server the payments otpions never work still but if in admin the order shows with a zip file. It is always empty.

Did this happen in earlier versions, should I uninstall and use an earlier version?

Thanks I know a few questions have been answered e.g. the numeric problem but I did as what was given as the answer but it still stays the same.

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: nanny on August 12, 2009, 02:53:58 am
OK now I have got the cart confirm order working on my localhost but not on my domain remote server. Both are exactly the same for all configuration - I can't work out the difference.
I hope somebody has an answer.

thanks...
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: nanny on August 12, 2009, 04:31:48 am
Considering it was working on my local server and not remote I had my host check it out this is the response:
You have PHP5 enabled for your domain. I compared your php info to our server and I have now disabled:

register_long_arrays
register_argc_argv

As this is disabled on your local php server. The server does meet requirements you have specified. As far as I can see the problem is the Confirm your order button, everything else looks ok I was able to create an account add a product and get to the check out.

According to the error logs there is a file missing:


[Wed Aug 12 12:03:36 2009] [error] [client 150.101.205.12] File does not exist: /home/virtual/site230/fst/var/www/html/photo/gallery/xml, referer: http://www.visnetmedia.com/photo/gallery/?file=photo_shop/photo_shop_checkout
[Wed Aug 12 12:03:39 2009] [error] [client 150.101.205.12] File does not exist: /home/virtual/site230/fst/var/www/html/photo/gallery/xml, referer: http://www.visnetmedia.com/photo/gallery/?file=photo_shop/photo_shop_checkout
[Wed Aug 12 12:04:00 2009] [error] [client 150.101.205.12] File does not exist: /home/virtual/site230/fst/var/www/html/photo/gallery/xml, referer: http://www.visnetmedia.com/photo/gallery/?file=photo_shop/photo_shop_checkout
[Wed Aug 12 12:04:01 2009] [error] [client 150.101.205.12] File does not exist: /home/virtual/site230/fst/var/www/html/photo/gallery/xml, referer: http://www.visnetmedia.com/photo/gallery/?file=photo_shop/photo_shop_checkout
[Wed Aug 12 12:04:03 2009] [error] [client 150.101.205.12] File does not exist: /home/virtual/site230/fst/var/www/html/photo/gallery/xml, referer: http://www.visnetmedia.com/photo/gallery/?file=photo_shop/photo_shop_checkout
[Wed Aug 12 12:04:03 2009] [error] [client 150.101.205.12] File does not exist: /home/virtual/site230/fst/var/www/html/photo/gallery/xml, referer: http://www.visnetmedia.com/photo/gallery/?file=photo_shop/photo_shop_checkout

The following is the physical server path:

home/virtual/site230/fst/var

I don't use flash for the photo shop plugin is there something missing?
Thanks....
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: nanny on August 12, 2009, 08:51:13 am
To let you know where I am up to. I uploaded the whole site again with the database from my local server to a subdomain http://rees.visnetmedia.com
the cart almost works - it gives me the option for transfer or paypal and sends the emails.
It doesn't allow me to change the orders in admin to paid - they continue to stay unpaid.
I would still like to have the option for one download and order many print types e.g. photo 4x6 to choose to be either a download, send in mail print or on a cd. I can't change the number of items in the basket either.
Hope to get this sorted - nearly there yeh!!!
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: hunterjo2 on August 12, 2009, 11:10:56 pm
Hi Stramm,

Can you please goto www.rallyimage.com/gallery/index.php purchase a pic and try to check out.  All I get is a blank screen.

I am at a loss of what to do.

Joe
Title: Re: [cpg1.4.x]: Shopping cart (new version) how to have download files and print
Post by: nanny on August 14, 2009, 04:29:36 am
Hi I finally found the fix for changing amounts of pictures using the "save new amounts" button to work.
It was a little bug.


http://forum.coppermine-gallery.net/index.php/topic,57206.msg287264.html#msg287264


I have found the zip download do work today and the system send username/password for download although in this instance the username password was ignored and wouldn't let me get to download the files.
I am still confused how to have both download files and print files. I have searched and searched. Could you please give me the link to read. Thank you. It is a great system - appreciated to use both together the cpg and photo shop.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: cryptk on August 14, 2009, 08:47:13 pm
I am working on making some nice additions to the photo_shop plugin.  My plan so far is basically to add in some AJAX so that instead of adding an item to your cart, having it load a page saying the item was added, then have it load the page for the picture you were viewing it will instead have this functionality.

Select your item for the photo (usually the size you want)
Some AJAX code will add that item to your shopping cart
It will pop up a small window in the middle of the screen notifying you that it was added and then it will disappear 2 seconds later
The button telling you how many items are in your cart will update to represent your new total items.


This should reduce the total number of SQL queries and bandwidth required as well as make the shop faster to use for the customer.

Stramm if you have any input into this just post it here or PM me and I will make it work how you want it to (since it is your project).

I will be posting how to enable this on other shopping carts once it is done, but please don't bug me to hurry up with it because it is a side project and I have a day job, lol.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: imasonaz on August 15, 2009, 12:26:30 am
I have a problem with you cart using CDs.

I set the CD to have a max of 3 images and then I tried having a second selection that allows you to add more images to that cd (so $3 for cd and $0.50 for every picture after #3) I get a result of:
You have added to many images to your CD. Please remove at least 4 item(s)!
You have to many pics on the CD, please remove some!

two things:

How do I setup an option to let them select what type of cd they want, like I would have to do for this?

Also, it says please remove images, how do you remove images form a cd?! There is no option I see in the cart! I don't even see how to remove anything from the cart, only how to dump the cart...

P.S. Why is it saying please remove at least 4 image(s)?! it should either say 3 (max of 1 CD for addition pictures) or remove 1 (from the original max of 3 cd) You may want to check that math...

I am disabling this plug-in until I can figure it out better. (So I'm not posting a gallery link) But overall VERY good work!
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: imasonaz on August 15, 2009, 12:44:37 am
Sorry to double post... But I can't edit my own posts... anyway I looked around some and noticed how it was on your example site... except this plug-in doesn't seem to work well with my theme at all (Mac ox x) (it seems none of my themes show the buttons in the cart) none of the buttons show up in the shopping cart and the links added to the bar at the top are off a little.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: cryptk on August 15, 2009, 01:48:04 am
did you follow the install instructions about the css changes and copying the image files?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: cryptk on August 15, 2009, 03:02:31 am
I am working on making some nice additions to the photo_shop plugin.  My plan so far is basically to add in some AJAX so that instead of adding an item to your cart, having it load a page saying the item was added, then have it load the page for the picture you were viewing it will instead have this functionality.

Select your item for the photo (usually the size you want)
Some AJAX code will add that item to your shopping cart
It will pop up a small window in the middle of the screen notifying you that it was added and then it will disappear 2 seconds later
The button telling you how many items are in your cart will update to represent your new total items.


This should reduce the total number of SQL queries and bandwidth required as well as make the shop faster to use for the customer.

Stramm if you have any input into this just post it here or PM me and I will make it work how you want it to (since it is your project).

I will be posting how to enable this on other shopping carts once it is done, but please don't bug me to hurry up with it because it is a side project and I have a day job, lol.

Another thing that I realized would benefit from AJAX is the display of your cart contents as well... have it so that updating the quantities does not require a full page reload...  I am hoping about a week to get everything finished and instructions written up.
Title: Re: [cpg1.4.x]: Shopping cart (new version)Problems solved
Post by: nanny on August 16, 2009, 06:54:56 am
Hi I would let others know what I have solved with the problems I have had:
I disabled the full size access plugin and now the shop works again. Every day seems to be different on whether it works or not so I thought it was a cookie problem. I changed the cookie name and didn't seem to make any difference.
With the full size access plugin enabled I could only use the shop once I was logged in. I still can't work that one out.

I still haven't worked out having both option: photo download AND photo option sent as a canvas, size, keyring etc., and having the cd option. I can get either download OR photo option and cd option.
When in admin I can't get the paid icon working it always says unpaid. Viewed icon works though.

I hope it still works tomorrow because this is such a great program, thank you...
Title: Re: [cpg1.4.x]: Shopping cart (new version) paypal button in invoice html
Post by: nanny on August 16, 2009, 08:54:44 am
Hi I found how to add the paypal button in email invoice but it doesn't show up in emails. How do you add a header etc. to allow it?
Thanks.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: FixitDave on August 22, 2009, 01:11:30 pm
Just like to say thanks for this great plugin.

Site: http://www.fixitdave.hostcell.net/cp/
Shop Version: v1.4.0

The shop works ok so far, but the option box to add the image to the cart doesn't show if you have EnlargeIt or LightBox installed...Is there a way to have the shop and EnlargeIt/LightBox working at the same time?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on August 22, 2009, 07:53:06 pm
Search... I've posted a shop mod that displays the cart on the thumbs page. That should work together with the plugins you mentioned. Don't remember where... a seperate thread or in this one, maybe in the old shops thread.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: chae on August 27, 2009, 02:05:34 pm
Hi Yah Stramm,

First of all thanks for a brill & easy to use cart system.

I'm afraid I have the same issue as FixitDave, i.e issue with Lightbox...I have gone through this thread numerous times & have on your advice searched the forums using countless search strings...lightbox photo cart, lightbox enlargeit photo cart mods etc etc etc Have even done the same on Google.

It would be appreciated if you could maybe post the mod again or point us in the right direction once you have a spare moment.

Many thanks in advance

Chae
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on August 27, 2009, 04:10:22 pm
http://forum.coppermine-gallery.net/index.php/topic,47569.msg227420.html#msg227420
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: chae on August 28, 2009, 02:03:40 am
Hi Yah Stramm,

Thanks for the reply, applied the changes but found that the pulldown menu with the various prints price options wasn't populated & it wasn't really the ideal place to have the order system.

Then I did a bit more searching & by accident I found another thread about something totally different which stated if you moved the order of the plugins this sometimes helps with conflicts. So with nothing to lose I placed the LightBox plugin first in line, then my captcha plugin then the Photo Cart & it worked first time :)

So for anyone with the same problem or similiar try reordering the plugins before changing code.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: computel on September 01, 2009, 03:33:17 am
I get a error when I install Photo_sell 1.4

I'm running 1.4 of Coppermine

here is the error I get when I upload the file:

  Critical error
There was an error while processing a database query 


I can't use my site till I remove the directories it creates photo_shop & receive.

The install of coppermine directory is in a subdirectory off the root.

Thanks

Evan
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: chae on September 07, 2009, 12:39:06 pm
What am I missing  ???

I've setup payment for PayPal & then signed up for a sandbox account & tested IPN etc etc & all okay. I then test the shopping cart by purchasing a product, when I go to the PayPal payment page it asks the user to signup for a PayPal account. I don't wont that I have been to several other sites which have the option to pay direct by credit card & beside it a if you have a paypal account sign in option.

Is this in the PayPal setup or the script being called in the cart config

Many thanks in advance

CHAE
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: chae on September 07, 2009, 01:04:39 pm
Found the answer & one that took a wee bit of finding...

http://www.kalzumeus.com/2008/11/16/can-my-customers-use-paypal-without-an-account/

There was still a cookie sitting in the browsers cache which was from a prior session at PayPal, cleared the browser of all cache/cookies etc etc & retried. Logged in as a customer, purchased a print, hit the PayPal button & voila split screen, pay with credit card or login as a PayPal user.

Regards

Chae
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: DonLKSAB on September 17, 2009, 10:39:44 pm
Hi. First of all thanks for a exelent mod.
I only have one small issue.
If the user misses to click the Paypal button the only time its visible they can never pay.
It would be cool if the "pay with paypal" button could be visible in "my orders".
But i did find this post were i can add it to the email that is sent.
But i got lost on the first step:
Here you'll see the shop looping through all basket items and creating form fields. At the end of the block it adds these form fields and a submit button to the variable $msg_box_txt. The same that gets added to the message box save in another variable. Let's call it $add_paypal_to_user_email
Could someone explain a bit slower what to do :-)

In photo_shop_checkout.php find the part that generates the paypal code right after
Code: [Select]
//pay with paypal
Here you'll see the shop looping through all basket items and creating form fields. At the end of the block it adds these form fields and a submit button to the variable $msg_box_txt. The same that gets added to the message box save in another variable. Let's call it $add_paypal_to_user_email

Now find the function photoshop_email_the_user {} and add the newly created variable to the globals.
To the $template_vars array add
Code: [Select]
'{PAYPAL_BUTTON}' => $add_paypal_to_user_email,

Open the language file and edit the variable $lang_photoshop_email_order ... add {PAYPAL_BUTTON} where the paypal button should appeare.

A problem could occur though... the messages are sent in plain text. So you'd need to switch to html.
in the function photoshop_email_the_user {}
change
Code: [Select]
if(cpg_mail($user_info['user_email'], $subject, $mail_body)) {
to
Code: [Select]
if(cpg_mail($user_info['user_email'], $subject, $mail_body, 'text/html')) {

However it might be that you'll have to edit the mail template as well (make it html mail compatible... header, html tags eg. <br>)

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on September 18, 2009, 07:51:21 am
replace
Code: [Select]
$msg_box_txt .= <<<EOT
<br><br>{$lang_photoshop['paypal']}<br>

<form action="{$CONFIG['photo_shop_paypal_form_url']}" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="invoice" value="{$order_id}">
<input type="hidden" name="business" value="{$CONFIG['photo_shop_paypal_email']}">
<input type="hidden" name="currency_code" value="{$CONFIG['photo_shop_paypal_currency']}">
{$paypal_items}
{$paypal_tax}
{$paypal_return_url}
{$paypal_cancel_return_url}
{$paypal_notify_url}
<input type="image" src="{$CONFIG['photo_shop_paypal_image']}" name="submit" alt="Pay with PayPal!">
</form>

EOT;

with
Code: [Select]
$add_paypal_to_user_email .= <<<EOT
<br><br>{$lang_photoshop['paypal']}<br>

<form action="{$CONFIG['photo_shop_paypal_form_url']}" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="upload" value="1">
<input type="hidden" name="invoice" value="{$order_id}">
<input type="hidden" name="business" value="{$CONFIG['photo_shop_paypal_email']}">
<input type="hidden" name="currency_code" value="{$CONFIG['photo_shop_paypal_currency']}">
{$paypal_items}
{$paypal_tax}
{$paypal_return_url}
{$paypal_cancel_return_url}
{$paypal_notify_url}
<input type="image" src="{$CONFIG['photo_shop_paypal_image']}" name="submit" alt="Pay with PayPal!">
</form>

EOT;
                 $msg_box_txt .= $add_paypal_to_user_email;


That's the $add_paypal_to_user_email and $msg_box_txt part of the instructions in code.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on September 27, 2009, 12:39:56 pm
Hi Stramm

i have a problem i'm trying to add paypal button to the email and this not working.
i't seems that photo_shop not send mail in html language i try to change

Code:
   if(cpg_mail($user_info['user_email'], $subject, $mail_body)) {
to
Code:
   if(cpg_mail($user_info['user_email'], $subject, $mail_body, 'text/html')) {

but still nothing any ideas what hapening ??
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on September 28, 2009, 10:59:28 am
feed the mail functions with more info... open eg. ecard.php and copmpare with the function call there to know what you need to do

and maybe have a look at include/mailer.inc.php
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: hunterjo2 on October 13, 2009, 12:41:54 am
Stramm

I really need advice on this!

Please help.... ???

Hi Stramm,

Can you please goto www.rallyimage.com/gallery/index.php purchase a pic and try to check out.  All I get is a blank screen.

I am at a loss of what to do.

Joe
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on October 13, 2009, 10:34:05 am
@hunterjo2: You failed to post a non-admin test user account.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: hunterjo2 on October 13, 2009, 10:47:57 am
@hunterjo2: You failed to post a non-admin test user account.

Sorry about that!

user: testuser09
pw: test09
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on October 13, 2009, 02:58:05 pm
Can't spot a shopping cart on http://www.rallyimage.com/gallery/index.php nor any method to purchase an image on that site. Subsequently, no blank pages for me. Can't replicate. You're doing what exactly to end up with a blank screen?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: hunterjo2 on October 13, 2009, 03:08:20 pm
I disabled the store last night now when I try to renable it, it does not work?????

I can give you the admin login if you want to look around?

Joe
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on October 13, 2009, 04:57:39 pm
it does not work

try to rephrase that in more descriptive words
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: hunterjo2 on October 13, 2009, 05:02:18 pm
To prevent people from using the shopping cart i disabled it last night.

When I tried to enable it again this morning so that you and Joachim could have a look it is not appearing on the site even though in the backend its active.

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on October 13, 2009, 05:17:10 pm
If you have other plugins enabled, change the order. Eg. move the shop plugin to the very top.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: hunterjo2 on October 13, 2009, 05:33:06 pm
ok,  got it working again but now I still have the same problem

When I add something to the basket then select checkout, then select confirm your order I just get a blank screen.

The link in the address bar shows

http://www.rallyimage.com/gallery/?file=photo_shop/photo_shop_checkout

Joe
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on October 13, 2009, 05:52:06 pm
Either add to your apache conf (or whatever webserver you're using) index.php to the DirectoryIndex

that would show the coppermine startpage instead of a blank page when you type http://www.rallyimage.com/gallery/ and not http://www.rallyimage.com/gallery/index.php

Also you seem to not use the most recent version of the shop as that one uses $_SERVER['PHP_SELF'] to get the script address and this returns usually the the full URL including the file name (index.php). In earlier versions I think I have used the URL from the coppermine config. There of course index.php was missing.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: hunterjo2 on October 13, 2009, 05:54:37 pm
I thought I was on the most recent version.

Can you give me a link to the most recent version?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on October 13, 2009, 06:03:29 pm
I've rechecked and probably you use the latest version I've publishe here (1.4). Open your shop config and make sure you have set a SSL address. If you do not specify one, the the shop grabs the standard address from the coppermine config. That's the one without index.php. So you know what you have to enter there ( http://www.rallyimage.com/gallery/index.php ).

Still I recommend to add index php to the DirectoryIndex. It also can be done using htaccess
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: hunterjo2 on October 13, 2009, 06:21:38 pm
Yeah it goes further now but just to a plain white screen with text???
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: hunterjo2 on October 13, 2009, 06:35:16 pm
Ok,

If I add http://www.rallyimage.com/gallery/index.php/ in the ssl field I get the cart with no formating and the string in the address bar is http://www.rallyimage.com/gallery/index.php/index.php?file=photo_shop/photo_shop_checkout.

Joe
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on October 13, 2009, 08:42:13 pm
now you're calling it 2 times.. check the URL... as said, I recommend to add index.php to the DirectoryIndex.

If you do not want to do that, fix one of the checkout buttons before you use the second (in cart and below the sys menu).
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joshzinho on October 25, 2009, 01:37:54 am
hi man

I would like to make a page to the shopping cart like this, what are the changes necessary?

http://patriciafigueira.com.br/selecao/72157622507529639/1

some details do not have that problem and would even offer the option to drag and drop
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Manh on November 10, 2009, 12:21:41 pm
Hello Stramm,
i am using the photo shop card since 3 months now to sell prints and it works just great, thanks a lot for this plug-in.

Now i am trying to offer downloads, and thats where i get stucked.
I have set up everything and its working so far, but when i mark an item as paid and i want to create the download directory, it does not create the directories.
I get This messages:

When I click on the "D" button, I get an error message saying "Directory already exists.... delete first! Order id: 17"

When I click on the "X" to delete it, I get a message saying "Folder does not exist! Can not delete it! Order id: 17"

and if I click "C"  I get the error message "No items to download"

My Host has "Save Mode" turned off.
I know this has been asked already before, but i could not find an answer, except that it is an issue with safe Mode on. But since i have safe mode off, it must be something else i am doing wrong.

Do you have an idea where i am goig wrong?

Kind Regards,
Manh
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on November 10, 2009, 12:51:26 pm
make sure the download dir is writable... delete the not working order and retry with a 'fresh' one
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Manh on November 10, 2009, 01:19:51 pm
Where the download dir. will be created? I guess in albums...
The albums dir. is set to 0755.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Manh on November 10, 2009, 01:33:00 pm
Just tried with albums set to 777 and fresh order, no luck
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on November 10, 2009, 02:46:03 pm
Was the script able to create the downloads directory (subdir of albums)?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Manh on November 10, 2009, 02:59:03 pm
Yes, the download folder gets created
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on November 10, 2009, 03:12:09 pm
this downloads dir is set to 755? And the folder for the actual download's getting created too? Two numbers separated by an underscore (user id and order id)? If so, what's the folder content.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Manh on November 10, 2009, 03:29:03 pm
No, if no downloads folder is created, the script will create the downloads folder. But it will not create any subfolder into it.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on December 23, 2009, 02:17:24 pm
I have a problem when im in admin mode and try to download the zip file containing photos from the order ewerytime the zip is empty and i think that is something with my server enybody have idea what it may be ??
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on December 23, 2009, 05:19:04 pm
Your webserver probably doesn't have the zlib library - check phpinfo's output.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on December 23, 2009, 06:53:13 pm
Unfortunately the zlib is enabled check the php info for Yourself any other ideas ??

http://testgaleria.fotografiakamar.pl/phpinfo.php
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on December 28, 2009, 04:48:02 pm
Nobody have any idea what may be the reason ??
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on December 28, 2009, 05:43:48 pm
memory? Try to add just one small (in size x/y) to the basket.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on December 28, 2009, 06:40:08 pm
I hawe a problem with memory when i adding big photographs to the gallery but now im trying the shop with wery small images and always the zip files is empty. Trying to enable and disable the safe mode and nothing changed. Im try to install non modified photo shop because mein is a little modified and stillnothing changed so i think that is something with serwer configuration but dont have idea what it may be.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on December 29, 2009, 09:05:20 pm
bug within the shop... makes it work only if the modpack is installed.

fix: in photo_shop_zip.php find
Code: [Select]
        if (is_known_filetype($rowset[$key]['filepath'] . $CONFIG['orig_pfx'] . $rowset[$key]['filename'])) {
and replace with
Code: [Select]
        if (is_file($CONFIG['fullpath'].$rowset[$key]['filepath'] . $CONFIG['orig_pfx'] . $rowset[$key]['filename'])) {
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on December 30, 2009, 10:43:29 pm
Stramm You always the best ;] WORKING !!

But i really dont know what happen's the mod was installed and that configuration work's in different serwer
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on December 31, 2009, 03:39:20 pm
the old way it was necessary that the orig_ files exist (watermarking enabled)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on January 01, 2010, 01:40:34 am
i see now i understand i have mod installed but watermarking was disabled
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: travelbuff on January 07, 2010, 03:02:22 am
Stramm
I apologize for being green on these plug-ins but I'm a little confused on your directions about this statement.

Have a look at photo_shop/images_to_move/css_changes.txt - that file describes the additional css the shop is using (add it to your themes style.css) . Copy the images in that very directory to the images folder of the theme you’re using.

Do I copy and paste the css_changes.txt file to the bottom of the themes style.css?  I'm unsure what you are asking here.
Sorry for any confusion.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 07, 2010, 08:15:51 am
yes, you copy the contents of the file css_changes.txt to the bottom or top of the css file of your theme and you modify it to your needs if needed.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: travelbuff on January 07, 2010, 11:56:35 pm
Thank you very much
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: travelbuff on January 18, 2010, 02:41:01 am
I have two questions. 1st. My check out page is distored over to the right.  It seems to work Ok but looks bad. Is there some sort of correction for this. I did a screen shot below.  2nd, when a customer checks out and the customer goes to paypal to do the purchase, where does paypal website return the customer to. Is there a setting in the shop config for that. Also will it bring the customer to the download page automatically or do I have to manually send the confirmation email from shop admin?

Thanks
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on January 18, 2010, 05:55:51 pm
http://forum.coppermine-gallery.net/index.php/topic,55855.msg272951.html#msg272951

next time please search
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: travelbuff on January 19, 2010, 02:06:38 am
Thanks that worked great.  I did search but not for the right problem I guess. I'll dig deeper next time.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Gene-2008 on January 20, 2010, 08:53:28 pm
Is there a way to allow a per image print purchase selection.

I.e. site owner sets up a database for each image that defines the available print sizes, print papers, prices etc.

Any thoughts?  Note I am not opposed to developing some code/database just wondering.

Gene
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: GrahamB on January 31, 2010, 07:52:41 am
Hi,

I just installed xampp 1.7.2 and then installed the coppermine gallery and photo shop plugin.

After installing the plugin the page turns white, everything barring the text listing the plugin info, input box and buttons has vanished - the css styles are gone, menus gone, links gone, etc.

Worked fine in previous versions of xampp.

Can't find an answer to this question elsewhere.

My thanks for any clues

GrahamB
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: GrahamB on February 01, 2010, 03:30:43 am
Hi,

I re-enabled my previous xampp version 1.6.6, copied the coppermine installation and db over from version 1.7.2, then opened the gallery and everything runs fine, nothing missing.

I then enabled the new version of xampp and reinstalled everything - same problem as my original message above.

It appears that the style.css file is somehow bypassed, the table layout is there, but all colours, menus, tabs, etc. are not loaded.

xampp version 1.6.6 ..............

Apache 2.2.8
MySQL 5.0.51
PHP 5.2.5 + PHP 4.4.8 rc2 dev + PEAR

xampp version 1.7.2 .............

Apache 2.2.12 (IPV6 enabled)
MySQL 5.1.37 (Community Server) with PBXT engine 1.0.08-rc
PHP 5.3.0 + PEAR (PEAR, Mail_Mime, MDB2, Zend)

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on February 01, 2010, 07:19:34 am
We can't help you with webserver setups, and self-hosting is not recommended nor supported. Xamp is definitely a package that falls into the category "used for self-hosting purposes only". Additionally, we have a strict policy on this forum that you need to post a link to your gallery in each thread you post in, which is something you failed to do (maybe because you can't because your site is not available on the internet), but then we can't help you neither. Please do not clutter this thread further: it deals with the Shopping Cart plugin only and not with webhosting questions.
Title: Re: [cpg1.4.x]: Shopping cart (new version) Paypal problem
Post by: GrahamB on February 12, 2010, 02:39:09 am
Hi,

This question has been asked before, but can't find an answer that works.

I uploaded the gallery and photo shop to my server. Everything seems to work fine except the 'return' from paypal which brings up an 'Error 500 - Internal server error' - the host is oneandone.co.uk

I've set IPN notification in paypal and tried just domain path for the return URL (http://www.arunachala-ramana.org/gallery/), the domain path plus the 'index.php?file=photo_shop/photo_shop_paypal_ipn&action=return' and just the return path without the domain prefix.

All bring the same result. Not sure what to try next, any help would be appreciated.

http://www.arunachala-ramana.org/gallery/

My thanks
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on February 12, 2010, 07:24:45 am
please read http://forum.coppermine-gallery.net/index.php/topic,62804.msg314517.html#msg314517
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: GrahamB on February 12, 2010, 07:57:59 am
Thank you Stramm,

Works like a charm
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: GrahamB on February 12, 2010, 08:23:47 am
Hi Stramm

I have a question relating to image downloads that may be slightly off mark - I have read the full instructions and am not quite clear on this point.

All of the photos I upload via FTP and add to the albums are limited to 1220 pixels max dimension for ease of display. These are all free to download for anyone.

There are instances where people will want much larger sizes of the same images at very high resolution. Resizing from a lower resolution is not an option because of quality issues.

If I upload high quality versions using the orig_ prefix, will the shop see them without the file names being added to the db using the insert into albums facilities?

My thanks for any help
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on February 12, 2010, 04:27:20 pm
The shop will 'see' them if either the modpack is installed or you use the watermarking mod. If I'm not wrong I've made that dependent of a certain config entry (watermarking enabled).
To deny access to the full sized images (orig_ pfx) you can use a htaccess (a sample one I've posted somewhere).
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: GrahamB on February 13, 2010, 03:27:55 am
Hi Stramm

Thank you!
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Gene-2008 on February 17, 2010, 12:01:33 am
I'm trying to get IPN tax working correctly....I have read thru the thread and didn't see anything about this.

I find this in the photo_shop_checkout.php
   if ($CONFIG['photo_shop_tax'] != '') {
      photoshop_add_field($form_fields, 'tax_cart', $CONFIG['photo_shop_tax']*$picture_total);
   }

There is however no config option by that name...there is one by photo_shop_vat.
   if ($CONFIG['photo_shop_vat'] != '') {
      photoshop_add_field($form_fields, 'tax_cart', $CONFIG['photo_shop_vat']*$picture_total);
   }

If I change the code to use it instead I get a IPN failure:
Someone attempted a sale using a manipulated URL\n\n

The following data was received from PayPal:

from newbuyer@mysandbox.com on

Details:

mc_gross: 20.00
invoice: 7483
protection_eligibility: Eligible
address_status: confirmed
item_number1:
payer_id: 2EHZEDE37AZ28
tax: 14.00
address_street: 1st Street
payment_date: 14:39:40 Feb 16, 2010 PST
payment_status: Completed
charset: windows-1252
address_zip: 29072
mc_shipping: 0.00
mc_handling: 4.00
first_name: Gene
mc_fee: 0.88
address_country_code: US
address_name: Gene Young
notify_version: 2.9
custom:
payer_status: verified
business: seller@mysandbox.com
address_country: United States
num_cart_items: 1
mc_handling1: 0.00
address_city: Lexington
verify_sign: AFcWxV21C7fd0v3bYYYRCpSSRl31ARmidR0BfwYRD-cuGzSAXhNkYAt9
payer_email: newbuyer@mysandbox.com
mc_shipping1: 0.00
txn_id: 17L80790T91270610
payment_type: instant
last_name: Young
address_state: SC
item_name1: : Title: Flower - ID: 31
receiver_email: seller@mysandbox.com
payment_fee: 0.88
quantity1: 1
receiver_id: FWCFEHPCDF4F8
txn_type: cart
mc_gross_1: 2.00
mc_currency: USD
residence_country: US
test_ipn: 1
transaction_subject: Shopping Cart
payment_gross: 20.00

Note the value is set to 7....note the code generates 100x ...so I changed it this way and still I get a failed IPN.
   if ($CONFIG['photo_shop_vat'] != '') {
      photoshop_add_field($form_fields, 'tax_cart', $CONFIG['photo_shop_vat']*$picture_total/100);
   }


If I change the config vat to 0 I get a successful IPN.

I have been digging into why but wonder if someone else already fixed it....?

Gene
BTW I have Paypal Express Checkout and Google Checkout working without requiring user registration.
I hope to contribute it in the future.


Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: BillyWardrop on March 02, 2010, 04:39:27 pm
Hi Stramm

My photo gallery is http://www.petehumephotography.co.uk/photogallery/

On both the checkout  page and shopping cart page, I would like to remove VAT Text as my VAT is set to 0%. How do I do this?

Thanks


Billy
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Gene-2008 on March 02, 2010, 05:58:27 pm
I'm trying to get IPN tax working correctly....I have read thru the thread and didn't see anything about this.

I find this in the photo_shop_checkout.php
   if ($CONFIG['photo_shop_tax'] != '') {
      photoshop_add_field($form_fields, 'tax_cart', $CONFIG['photo_shop_tax']*$picture_total);
   }

There is however no config option by that name...there is one by photo_shop_vat.
   if ($CONFIG['photo_shop_vat'] != '') {
      photoshop_add_field($form_fields, 'tax_cart', $CONFIG['photo_shop_vat']*$picture_total);
   }

This does need to be vat not tax AND there are other places that need to be fixed...I.e. change the photo_shop
database table to include the tax in the stored prices...

Gene
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on March 02, 2010, 06:00:56 pm
@BillyWardrop: Please try to solve one issue at a time - you have an open thread (http://forum.coppermine-gallery.net/index.php/topic,63925.0.html) about this plugin as far as I can see. Please resolve that first.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: toddy on March 03, 2010, 03:12:21 pm
HI,
thanks for that shop plugin.

Everythings seems to be working fine...but after the cosumer klick on the checkout button there comes an empty page wit this URL:
http://diebildergalerie.de/?file=photo_shop/photo_shop_checkout

Feel free to test it with the user test password is 111111
http://diebildergalerie.de/index.php

I acitvated the paypalaccount.



Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on March 03, 2010, 04:48:25 pm
Upgrade first - you're running cpg1.4.24, while the most recent stable release currently is cpg1.4.26

The URL http://diebildergalerie.de/?file=photo_shop/photo_shop_checkout corresponds to the file http://diebildergalerie.de/plugins/photo_shop/photo_shop_checkout.php - replace that file with a vanilla copy.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Gene-2008 on March 03, 2010, 07:30:00 pm
Actually it needs to be http://diebildergalerie.de/index.php?file=photo_shop/photo_shop_checkout

Note the addition of index.php

I could not get logged in with the test user and 111111 password.

Gene

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jp-photo.dk on March 08, 2010, 09:10:43 pm
Does anybody have this version v1.4.1 of Photo Shop working with CPG v1.4.26?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Gene-2008 on March 09, 2010, 03:48:44 am
Yes I have 1.4.26 working with 1.4.1...

Gene
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jp-photo.dk on March 09, 2010, 10:33:58 am
I've got a problem with the combination of CPG v1.4.26 and Photo Shop v1.4.1. When the Photo Shop plugin is enabled all formatting is gone. There's no <html> or <body> tags etc in the html-output. When I disable the Photo Shop plugin all works fine again.

I've done a filecompare with both the CPG package and the Photo Shop plugin package and the files on the server, and all files are identical. So the install should be okay there. I've merged the CSS changes from "css_changes" into my "style.css" in the Hardwired theme, and copied the images to the "images"-folder in the Hardwired-theme-folder.

I'm running PHP v5.3.1.

And a link to the gallery: http://www.jp-photo.dk/galleri/ (Link is *NOT* worksafe).
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on March 09, 2010, 11:57:53 am
You've got other plugins installed (or mods)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jp-photo.dk on March 09, 2010, 12:06:56 pm
No other plugins or mods. Well the Sample plugin, but it's not active ;-)

I'm not using anycontent.php either.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Gene-2008 on March 09, 2010, 01:36:27 pm
Do you have the classic theme installed....I tried to select it but couldn't.

You might try installing it and seeing if it fails the same way.

Do you have the knowledge/tools to edit the php if I suggest something to try.

Gene

BTW is the shop enabled or disable?  Have you tried to disable the shop but leave it installed.

If the shop is disable the two place where the shop modifies the output will be turned off...this is in the codebase.php
Code: [Select]
function photoshop_user_menu(&$html){
    global $template_sys_menu_spacer, $lang_photoshop, $CONFIG;

    if ((!USER_ID && $CONFIG['allow_unlogged_access'] == 0) || !$CONFIG['photo_shop_enabled']) {
$cart_menu = ''; //shop disabled, unlogged has no access, then don't show shop buttons

Code: [Select]
function photoshop_add_item($pic_data){
global $CONFIG, $SHOP_CONFIG, $lang_photoshop, $album;

if (!$CONFIG['photo_shop_enabled']) { //shop disabled
return $pic_data;
}
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: 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.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Gene-2008 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
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jp-photo.dk 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.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Gene-2008 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

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jp-photo.dk 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 :-)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jp-photo.dk 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).
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Gene-2008 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

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller 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
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jp-photo.dk 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?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on March 11, 2010, 11:18:17 am
Yes, that's the case. See http://forum.coppermine-gallery.net/index.php/topic,63200.msg317651.html#msg317651
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: nstinc 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
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on March 11, 2010, 01:57:22 pm
We (the dev team members) don't want to be contacted privately - read Private messages disabled (http://forum.coppermine-gallery.net/index.php/topic,61251.0.html). 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 (http://forum.coppermine-gallery.net/index.php/board,30.0.html)" after having read the sticky thread "sub-board rules, read first! (http://forum.coppermine-gallery.net/index.php/topic,8170.0.html)" 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.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: julzy 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 :)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Gene-2008 on April 07, 2010, 09:58:59 pm
No there is no going back....

Gene
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Gene-2008 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


Title: copy files to the download folder
Post by: msvweb 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.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm 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.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: bossturbo on June 02, 2010, 04:28:36 am
Any chance of a 1.5 version?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on June 02, 2010, 09:22:36 am
What has been said in Don't ask for other versions (http://forum.coppermine-gallery.net/index.php/topic,24540.0.html) applies to plugins just as well.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: falcoln0014 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.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jwalker on July 08, 2010, 08:35:48 am
Hi

I am new to coppermine gallery , I am wondering if someone can assist me with my problem and maybe this addon is the right one to use I am not sure.

I am trying to create a paid membership gallery, could I set this plugin for that purpose, if so , how would I go about doing so ?

If not could I please have some assistance/direction as to how I can set it up

many thanks
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stefan78 on July 08, 2010, 07:28:06 pm
I'm looking for the shopping cart plugin working with cpg1.5x version. Is there one for download?

can you help me.

many thnx,

Stefan
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Joachim Müller on July 09, 2010, 07:56:55 am
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: avanti on July 26, 2010, 02:02:34 pm
Hello, can anyone help with customising the postage options? Using Coppermine Photo Gallery 1.4.2

I run a photography business from home and i want the option where people can select postage and packaging as a seperate option in the checkout process as some clients collect their pictures directly from my home.

I am ok with editing the php files if you are aware of a workaround?

Thanks

Gino
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: rogeriogal on August 17, 2010, 11:33:41 pm
Hi, I have photo_shop installed and running fine on CPG 1.4.10 and want to upgrade to 1.4.27. All I want to know is if I can safely follow the upgrade instructions in http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#14 without reconfiguring the plugin? Do I need spacial instructions?

Thanks!
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on August 18, 2010, 08:06:14 am
The plugin works fine with 1.4.27. Just follow the CPG upgrade guide (and with the suggested dump you're on the safe side).

Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: rogeriogal on August 19, 2010, 06:10:08 am
Thanks very much Stramm, for your quick and helpful reply :D
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on August 20, 2010, 09:27:41 pm
I hawe one question too. Cant fint the reply. When the download function is active and the customer add s pics to basket then finalize the order then i should mark that order as paid and the customer should get a email with information how to download the files wright ?? and if the problems occur customer can create directory by himself in my orders wright ?? Im trying to do that and the customer dont get any emails about how to download and i want to know if there is any posibility to add buttons to create directory and automatically email user in admin panel ?? /Just that same as the user hawe this in my orders.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on August 21, 2010, 12:07:28 am
does sending ecards work?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on August 21, 2010, 02:19:43 am
zes
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on August 21, 2010, 02:20:34 am
i mean yes
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on August 21, 2010, 08:03:04 am
hmm.. it uses the coppermine core functions. So there shouldn't be a problem as far as you have a language file for the language you use. Nevertheless, the fallback should work, too. Please try to set english (not gb) as user language and test that.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on August 21, 2010, 11:43:20 am
in english don't working too. the gallery don't send a email with password to the user when i'm mark the order as paid.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on August 21, 2010, 11:50:33 am
ahh.. OK, now I understand you... when you set the order as paid it won't send emails as it doesn't automatically creaty download dir and copies the pics. That you have to do manually (except you use PayPal IPN).

So set paid, hit the lil icons (create and copy) and that should be it.

If you delete the download dir of that user (using the backend) and recreate the dir, then the user should receive a new email with the new password. Same if the user does that himself (buttons in his order history).
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on August 21, 2010, 12:47:44 pm
ok but i don't have the create and copy buttons in admin panel is this ok ?? only the user in my orders have that buttons
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on August 21, 2010, 02:19:23 pm
you should have them, too... do you have copied the gfx to your themes images directory?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on August 21, 2010, 03:54:46 pm
yes as i said the user have this icons in my orders
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Nazreel on August 22, 2010, 12:34:30 am
I apologise if this has been covered before.  I have searched thoroughly to the best of my belief and cannot find how to sort this.

For all the photo sale items, when a photo is added to the basket, the only option is to download.  I want the photos for print but this option is not available.  Downloads have been disabled in the shop configuration, and the h/w field for each item has been set to 0.  I have checked to make sure that there are no hidden spaces with the zero just in case this was causing the problem.

The url for the gallery is http://www.yidphotography.co.uk/copper.

I have set up a test user with the name and password of test2010, if you wish to have a look.

This is probably something obvious that I have overlooked, but all help is very gratefully received.

Thank you.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on August 22, 2010, 08:40:21 am
yes as i said the user have this icons in my orders

I'll have to test that locally. But if the gfx exist and you have enabled downloads, the buttons should be there.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on August 22, 2010, 09:03:09 am
Nazreel, please post a link to a gallery where I can test the shop dropdown.

Print and download are nearly identical. The main difference is, that no download folder's getting created after checking out. Means the shop owner has to grab the fotos using the backend and send them to the studio or printer manually.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Nazreel on August 22, 2010, 11:25:27 am
Hi, thanks for your prompt reply.  I thought that the link I sent would have been OK, but here is one to a particular album.

http://www.yidphotography.co.uk/copper/thumbnails.php?album=250

Actually, I've just realised I turned the shop off overnight  :-[

It will be good to go now.

Sincere apologies.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on August 22, 2010, 01:50:59 pm
here You have fresh gallery with fresh not modified photo_shop http://testgaleria.fotografiakamar.pl and 1 order i make with files for download. I think that is my fault because i change photo shop a little but there is a non modified wersion and in admin panel still don't have the icons for creating and copying the files. Dont know what to doo. the username is ---- and the pass is ----. this is a test gallery so You may modify ewerything.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on August 22, 2010, 03:26:18 pm
Soundman, I've edited out the admin pwd in your last post. Please delete that account an never again publicaly post admin accounts as they can be used to take over your server.

I've checked what's happening and when I've coded the admin I've intended the download function to only be enabled when paypal and IPN is enabled. Turning on that in config should do the trick. With modifying two if statements in the shop admin you probably make it work as you wish.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Stramm on August 22, 2010, 03:31:51 pm
Hello Nazreel, buying prints or downloads is the same till checkout. After that a download folder's getting created if you're using downloads.
I guess you mean the dropdown box in the basket that says (CD or downloads)... just change that in the langfile to 'Items to downloads and for print' if you wish.

I haven't checked out to further test your shop. If that's your issue, then it's just a naming issue.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: soundman on August 22, 2010, 03:45:06 pm
ok now is working great thanks Stramm :)
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Nazreel on August 23, 2010, 12:29:14 am
Thanks Stramm, that is what I will do.

Excellent support on a Sunday too!
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: shareshoes on September 08, 2010, 08:03:10 pm
when i install the plugins. out site will be slow: after we install it. i ofter must click several times. then i can see the pictures. can you help me. thank you
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: shareshoes on September 09, 2010, 03:40:04 am
i sell shoes online. the photo type have men size 8 8.5 9.5 10 10.5 11 11.5 and women size 5.5 6.5 . how can i creat different price?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: computel on September 10, 2010, 02:16:40 am
I'm running cpg 1.4.27 and photo shop 1.4.1 and I have to issues.

I tried searching and couldn't find the answers.

1. I need to change where it says Price includes 19% VAT: and replace it with Price includes 13% HST: - Not sure which file I need to edit.

2. I noticed when I go to paypal and check out it doesn't add the vat price to the total.

Thanks in advance.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: jaysadie on November 08, 2010, 11:18:02 pm
I have just installed CPG 1.5.8 and downloaded PhotoShop 1.4.1.

When I go to Plugin Manager to install it there is a red circle icon with a line through it. When hovering over this icon it displays "Minimum requirements not met"

Is there any way I can install this manually, or some other way to get around this issue?

Thanks in advance.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Phill Luckhurst on December 02, 2010, 12:00:47 am
Please check the 1.5.x plugins board for a version that is compatible with 1.5.x - http://forum.coppermine-gallery.net/index.php/topic,67506.0.html

This is the 1.4.x board and plugins from here will not work with 1.5.x. That is what the message is trying to tell you.
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: d70photographie on April 05, 2011, 11:06:37 am
Hello everyone,

Several years that I use the plugin Photo Shop Order version French. It is simple and effective. I migrated CPG 1.5 How to migrate this plugin.

Thank you

Best regards.

Ph. D.



Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: TT on September 06, 2012, 03:10:18 pm
Yes, I am still not on the newest version, but since my hosting company upgraded to php 5.3 I was forced to work on upgrading. So I chose to upgade to cpg 1.4.27 with a more current version of phto_shop as well (yes I will have to work on further upgrading...).

My sandbox works fine, but looking at my 'real' web site, it seems that with installing cpg1.4.x_plugin_photo-shop_v1.4.1 a table has not been created:

While executing query "SELECT * FROM cpg148_shop_prices WHERE aid=359 AND gid=-1 LIMIT 1" on 0
mySQL error: Table 'db1054143-copper.cpg148_shop_prices' doesn't exist

Thanks in advanced
Thomas
www.Thiesen-PhotoDesign.com
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: TT on September 06, 2012, 04:44:11 pm
solved - I have created the table manually....
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: MarioLaul on June 25, 2013, 11:05:28 am
When are coming out shopping cart plugin for cpg 1.5.x?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Phill Luckhurst on June 25, 2013, 01:15:33 pm
You could always use the search facility, it's been available since 2010 - http://forum.coppermine-gallery.net/index.php/topic,67506.0.html
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: MarioLaul on June 25, 2013, 07:35:05 pm
This works only paypal service? Or can i use bank transfer?
Title: Re: [cpg1.4.x]: Shopping cart (new version)
Post by: Phill Luckhurst on June 25, 2013, 10:19:06 pm
Please ask in the new thread. CPG1.4.x is no longer supported.