forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: Stramm on October 11, 2010, 05:04:51 pm

Title: cpgShop - a PayPal shopping cart
Post by: Stramm on October 11, 2010, 05:04:51 pm
cpgShop - a PayPal shopping cart.
Updated: 11.11.2010 - actual version cpgShop 1.0.1
Updated: 04.11.2011 - actual version cpgShop 1.0.3
Updated: 15.07.2012 - actual version cpgShop 1.0.4
Updated: 03.09.2016 - full version cpgShop 1.0.4 added

Changes in 1.0.4:
- changed: cart saved in the db instead of the cookie to avoid limitations (cookie is just used to identify the cart)
- added: support for free items
- added: possibility to chose where to redirect after adding an item (cart or back to the picture)
- added: users can save their cart as draft (admin can set lifetime and number)


This plugin is based on the beta cpgmart plugin that has been coded by foulu for cpg 1.4x some years back.

Here are some of it's features.

Just try it and see what this plugin can do for you.

Currently this language files are included
- english (I hope some native english speaker will correct my wording)
- german

The plugin in its basic version doesn't come with PayPal IPN nor with digital image download support.
For a donation I'll send you the full version. Just leave a message here and I will contact you using the forums private messaging system.

I've removed the basic version and uploaded the full version. Please have a look at the attached txt file for a short introduction how to setup PayPAl IPN. Have fun.

Please use this thread for your suggestions and ideas. Of course you can ask questions here as well or post if you have problems.


Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: ReVoX on October 12, 2010, 06:58:58 pm
I can't download It. It say Unauthorized.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on October 12, 2010, 08:01:27 pm
I've attached it to the announcement thread.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: taucher_0815 on October 12, 2010, 08:02:29 pm
Any changes to the last version I got?
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on October 12, 2010, 08:19:12 pm
Some minor fixes. Please have a look at the changelog.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: ReVoX on October 12, 2010, 11:24:53 pm
Thanks for your hard work Stramm. I will test It as soon as possible.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: dshelley on October 15, 2010, 02:43:42 am
Stramm - thanks so much for your work on this plug-in.

I've started testing it out and have one challenge and one suggestion:

Challenge - I believe that I have configured everything properly - created 2 prices, 1 price set, 1 option and one option set. Then I enabled the shop and configured 1 album to have the price set and option set. When viewing a photo, I can see the Add Image to Shopping basket button but the drop down list doesn't have any prices/options in it. I realize this is a terse description, but any idea what I'm doing wrong?

Suggestion - I don't know if this is theme related or not but all my ADMIN MODE functions use the <div ...> tag instead of <li ..> so they show up as buttons instead of plain text links. i.e. in the function cpgshop_config_button could you use <div class="admin_menu admin_float"> instead of <li>?

Thanks
Doug
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: taucher_0815 on October 15, 2010, 07:51:38 am
Challenge - I believe that I have configured everything properly - created 2 prices, 1 price set, 1 option and one option set. Then I enabled the shop and configured 1 album to have the price set and option set. When viewing a photo, I can see the Add Image to Shopping basket button but the drop down list doesn't have any prices/options in it. I realize this is a terse description, but any idea what I'm doing wrong?

Have you set a downloadable product? There is a check implemented if the downloaded image size is smaller then the size for the downloaded product. In this case no product is selectable.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on October 15, 2010, 08:22:03 am
To make th first steps with the shop start it simple. Use 'print' images, add three prices and group them into a set. Later add options, set some prices for downloads etc.

At that time I suggest to restart with prices and a group. If the problem persists, let me know.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: dshelley on October 15, 2010, 01:36:20 pm
Thanks for the feedback. I have deleted the options and option set and now have 3 prices and 1 price set. The prices are all set to type = "ship".

I'm still getting a blank dropdown on the photos that have the shop enabled.

Any other things I can look at to troubleshoot this?

thx
Doug
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on October 15, 2010, 02:08:54 pm
Can you export your shop settings (phpmyadmin), zip them and add the file to your next post. I'll see if  I can reproduce that behaviour here.

Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: dshelley on October 15, 2010, 02:24:01 pm
Attached is a phpMyAdmin export from all the "cpgshop" tables.

Thanks for your help
Doug
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on October 17, 2010, 02:39:13 pm
I have had a look at your sql and you haven't properly created the price set, you've created an empty one. Edit the price set and in the  multiselect box select the prices you want to use in that set (use ctrl to select more than one price).
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: JoelFan on October 20, 2010, 06:33:46 am
Hi Stramm, thanks for creating this plugin! I'm looking into the documentation now, but I just have one question:

Can this plugin be used to make CPG sort of a regular shopping cart for standard products? In other words - if I have a CPG full of pictures of t-shirts, could I reasonably use this plugin to allow people to order the shirts that they see in the pictures?

Thank you!
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on October 20, 2010, 06:52:51 am
yes
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 01, 2010, 04:14:06 pm
Any buddhists amongst you??  I need your patience and understanding. Stramm, I installed the download (cpgShop for cpg1.5)at the bottom of your thread into the Plugins, then went through admin to install it and now it's blocked up completely and I can't get into my site on www.pictorious.fi/coppermine! On the Mac it just says:
Fatal error: require_once() [function.require]: Failed opening required 'plugins/cpgshop/include/init.inc.php' (include_path='.:') in /var/www/vhosts/pictorious.fi/httpdocs/coppermine/plugins/cpgshop-2/codebase.php on line 167

On Windows it says nothing at all.  I really don't know what corrupted what, but has anyone had this problem? My web host says he'll try to look at it tomorrow (he'll have to because my site is blocked), but it sure would help if someone knew the solution to this.
Many thanks, I hope there's a simple solution, I'm not good at this!
John
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 01, 2010, 05:50:57 pm
Make sure you uploaded all files keeping the folder structure intact.
Don't play with pathes, cpgshop-2 won't work.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 01, 2010, 06:16:05 pm
Thanks very much, that sorted that out! (cpgshop-2 was renamed automatically because I had previously downloaded it already).
But now I get
"There was an error while processing a database query"
would this be the last hindrance or can there be more? Should I wait until all the bugs are found and exterminated? I don't want to be a burden here, though i really would like this brilliant plugin installed.
Thanks!

John
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 01, 2010, 06:28:54 pm
Uninstall the plugin using the plugin manager. Opt to delete the shops database. The reinstall the shop.
If the problem still occurs, enable debug mode and post the detailed error message.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 02, 2010, 09:51:59 am



The problem persists, this is the message, followed by the details.

Critical error

There was an error while processing a database query.

While executing query 'INSERT INTO cpg15x_plugins (name, path, priority) VALUES ('cpgShop', 'cpgshop', 1)' in include/plugin_api.inc.php on line 443 mySQL error: Duplicate entry 'cpgShop' for key 2


File: /var/www/vhosts/pictorious.fi/httpdocs/coppermine/include/functions.inc.php - Line: 263




USER:
------------------
Array
(
    [ID] => d71abf630eb8e9936a4f4a81ed39c159
    [lang] => english_gb
    [liv] => Array
        (
            [liv_a] => Array
        (
            [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 3
    [user_name] => admin
    [groups] => Array
        (
           
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [access_level] => 3
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [allowed_albums] => Array
        (
        )

)

==========================
Queries:
------------------
Array
(
    [include/plugin_api.inc.php:53] (0 ms)
    [2] => SELECT user_id, time FROM `houseof_coppermine`.cpg15x_sessions WHERE session_id = '406389730cd92c290e174432efb44d8a' [bridge/coppermine.inc.php:264] (0 ms)
    [3] => SELECT user_id, user_password FROM `houseof_coppermine`.cpg15x_users WHERE user_id = 3 [bridge/coppermine.inc.php:276] (1 ms)
    [4] => SELECT u.user_id AS id, u.user_name AS username, user_password AS password, u.user_group AS group_id FROM `houseof_coppermine`.cpg15x_users AS u LEFT JOIN `houseof_coppermine`.cpg15x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='3' [bridge/udb_base.inc.php:70] (0 ms)
    [5] => SELECT user_group_list FROM `houseof_coppermine`.cpg15x_users AS u WHERE user_id='3' AND user_group_list <> '' [bridge/coppermine.inc.php:202] (0 ms)
    [6] => 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(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, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS  priv_upl_need_approval FROM cpg15x_usergroups WHERE group_id in (1) [bridge/udb_base.inc.php:321] (0 ms)
    [7] => SELECT group_name FROM  cpg15x_usergroups WHERE group_id= 1 [bridge/udb_base.inc.php:325] (0 ms)
    [8] => SELECT lang_id FROM cpg15x_languages WHERE enabled='YES' [include/init.inc.php:329] (0 ms)
    [9] => SELECT user_favpics FROM cpg15x_favpics WHERE user_id = 3 [include/init.inc.php:387] (0 ms)
    [10] => DELETE FROM cpg15x_banned WHERE expiry < '2010-11-02 10:45:53' [include/init.inc.php:443] (0 ms)
    [11] => SELECT null FROM cpg15x_banned WHERE (user_id=3 OR '85.157.63.207' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:459] (0 ms)
    [12] => SELECT plugin_id FROM cpg15x_plugins WHERE path = 'cpgshop' [include/plugin_api.inc.php:126] (0 ms)
    [13] => SELECT priority FROM cpg15x_plugins ORDER BY priority DESC LIMIT 1 [include/plugin_api.inc.php:409] (0 ms)
    [14] => INSERT INTO cpg15x_plugins (name, path, priority) VALUES ('cpgShop', 'cpgshop', 1) [include/plugin_api.inc.php:443] (0 ms)
    [15] => SELECT COUNT(*) FROM cpg15x_pictures WHERE approved = 'NO' [include/functions.inc.php:2409] (0 ms)
    [16] => SELECT lang_id, abbr FROM cpg15x_languages WHERE available='YES' AND enabled='YES' [include/themes.inc.php:2315] (0 ms)
    [17] => DELETE FROM cpg15x_temp_messages WHERE time < 1288683953 [include/functions.inc.php:4911] (0 ms)
)

==========================
GET :
------------------
Array
(
    [op] => install
    [p] => cpgshop
    [form_token] => 8fb94634e83a4581d1ac528ff8a6f394
    [timestamp] => 1288687435
)

==========================
POST :
------------------
Array
(
    [submit] => Start
)

==========================
COOKIE :
------------------
Array
(
    [cpg15x_data] => YTo1OntzOjI6IklEIjtzOjMyOiJkNzFhYmY2MzBlYjhlOTkzNmE0ZjRhODFlZDM5YzE1OSI7czo0OiJsYW5nIjtzOjEwOiJlbmdsaXNoX2diIjtzOjM6ImxpdiI7YTo1OntpOjA7czoyOiIyMiI7aToxO3M6MzoiMjYwIjtpOjI7czoyOiIxNiI7aTozO3M6MzoiMjgxIjtpOjQ7czozOiIxMjQiO31zOjU6Imxpdl9hIjthOjI6e2k6MDtpOjE7aToxO2k6Mzt9czoyOiJhbSI7aToxO30=
    [901bfa47740504b5573f84bf3682e627] => 40298c25ac5e60e07a99fd8bf2e5ebde
    [9cb46d58df87746d331d2ced374fcf1f] => 15dece0571347b8f3b185eaac6c55c51
)

==========================
VERSION INFO :
------------------
PHP version        5.3.3-0.dotdeb.1      OK   
MySQL version      5.0.51a-24+lenny4-log OK   
Coppermine version 1.5.8                 stable

==========================
Module: GD
------------------
Exact version                    2.0.34                     
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                         
JPEG Support                     1                         
PNG Support                      1                         
WBMP Support                     1                         
XPM Support                      1                         
XBM Support                      1                         
JIS-mapped Japanese Font Support                           

==========================
Key config settings
------------------
site_url             http://pictorious.fi/coppermine/
charset              utf-8                           
allow_private_albums 1                               
cookie_name          cpg15x                         
cookie_path          /                               
impath               /                               
lang                 english_gb                     
main_page_layout     catlist/alblist                 
silly_safe_mode      0                               
smtp_host                                           
theme                rainy_day                       
thumb_method         gd2                             

==========================
Plugins
------------------
Name           cpgShop                                                                                                                 
Actions        plugin_install, plugin_configure, plugin_uninstall, plugin_cleanup, page_start, profile_display_form, profile_submit_form
Filters        register_form_create, register_form_submit, admin_menu, gallery_header, gallery_footer, file_data                       
--------------

==========================
Server restrictions
------------------
safe_mode                0                                         
safe_mode_exec_dir                                                 
safe_mode_gid                                                       
safe_mode_include_dir                                               
sql.safe_mode                                                       
disable_functions                                                   
file_uploads             1                                         
include_path             .:                                         
open_basedir             /var/www/vhosts/pictorious.fi/httpdocs:/tmp
allow_url_fopen          1                                         
max_execution_time       60                                         
max_input_time           120                                       
upload_max_filesize      20M                                       
post_max_size            21M                                       
memory_limit             256M                                       
suhosin.post.max_vars    1000                                       
suhosin.request.max_vars 1000                                       


==========================
Page (performance)
------------------
Parameter        Current  Peak   
Memory usage     5.30 MiB 7.32 MiB
Page generation  38 ms    38 ms   
Page query time  2 ms     2 ms   
Page query count 18       18     


==========================
               


Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 02, 2010, 11:11:07 am
This results from your attempt to install the plugin under another path.
With a tool like phpmyadmin delete the plugins database entry in the plugins table (by default that's cpg15x_plugins).
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 03, 2010, 06:44:04 am
screwed up, deleted cpg15x_plugins table, now can't get into coppermine. So I guess I have to re-install Coppermine, right? I refuse to accept that even at over 60 I can't get this right!!
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 03, 2010, 08:48:34 am
no, you shouldn't delete the plugins table but the shop plugin entry. Recreate the plugins table using phpmyadmin
Run that SAL in phpmyadmin when viewing the cpg database. Replace CPG_ with the prefix you're using eg. cpg15_

Code: [Select]
CREATE TABLE CPG_plugins (
  plugin_id int(10) unsigned NOT NULL auto_increment,
  name varchar(64) NOT NULL default '',
  path varchar(128) NOT NULL default '',
  priority int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (plugin_id),
  UNIQUE KEY name (name),
  UNIQUE KEY path (path)
) TYPE=MyISAM COMMENT='Stores the plugins';
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 03, 2010, 05:30:21 pm
I've lost you I'm afraid.... "run that SAL.........."  I've spent hours today trying to work it out, but it's beyond my depth. Is there another way?
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 03, 2010, 05:35:36 pm
copy the above code into sql/update.sql (at the very end is a good place) then run update.php ( http://www.pictorious.fi/coppermine/update.php ). When done remove the code you've added to update.sql.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 04, 2010, 12:26:27 pm
At last! Gee thanks very much for your help and patience, I very much appreciate it, and it's a brilliant program too! Hope I didn't take too much of your time.

All the best, John
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: dshelley on November 04, 2010, 02:56:59 pm
Stramm,

With the help you previously provided I have been able to get the shop configured and working - thanks!.

I have a question - I'm trying to use only COD as the gateway and I want the COD fee to be $0. If I set this in the config, I get this error on Checkout:

Error
There is a problem with cart or shipping data. Please go back and fix:

    * Data inconsistent: It seems that product data has changed since you're shopping. Please start the checkout again and verify the values

The only way to clear the error and finish checkout is to set the Gateway fee to something other than $0. Is this behaviour expected?

Regards,
Doug
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 04, 2010, 03:16:10 pm
If you do not want to charge a fee, then disable the fee
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: dshelley on November 04, 2010, 03:26:47 pm
Sorry, I should have added - if I disable the COD fee then I have no gateways, which doesn't work either. It won't the checkout continue if you have no gateways.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 04, 2010, 03:42:24 pm
You need a gateway... how do you want your customers to pay? The minimum is to display the wire information. That one you can customize to show the wire info or if you want, that your customers should bring cash when they pick up the goods.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: dshelley on November 04, 2010, 03:49:34 pm
At this point, my "market" is constrained to a group of people at a skating club so I print the photos and accept payment on delivery. The Wire Transfer options appears to work. How do I change the text of "Wire Transfer"? do I edit the language file?
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 04, 2010, 04:27:25 pm
yes, cpgshop_wire_enable is the key

However cod should work also if you enable cod but disable charging a fee for it
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: dshelley on November 04, 2010, 04:42:23 pm
ok, thx

On the COD, as far as I can tell I did enable it with 0 fee which generated the error that I put in one of my previous posts. The $0 fee seems to be triggering some condition that generates that error message during checkout.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 04, 2010, 04:47:56 pm
That's why I told you to disable charging a fee if you do not want to do it.

Edit: the error message is not really an error message. I use that to verify if the shops form data hasn't been modified in any way. If something seems to be fishy then you get tha 'data inconsistent' message.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 05, 2010, 10:29:31 am
Hi again. Having activated cpgShop in general shop settings and configured some settings, there appears no box or icon for the user to make a purchase, just a small window of "view cart(0)" which appears in all wndows, even in admin config windows.
Furthermore, (and I don't know if it's relevant but it didn't happen before I installed cpgShop), there comes an Error message when clicking on "Register" and "My profile."
Whenn clicking on My profile:

/include/functions.inc.php

    * Notice line 184: Undefined index: dbcharset

/plugins/cpgshop/libs/cpgTool.class.php

    * Notice line 197: Undefined variable: fileORcontent

/profile.php

    * Notice line 589: Undefined variable: lastComByText
    * Notice line 592: Undefined index: thumb
    * Notice line 593: Undefined variable: lastComDate
    * Notice line 600: Undefined variable: lastUploadByText

when clicking on Reigster:

/include/functions.inc.php

    * Notice line 184: Undefined index: dbcharset

/plugins/cpgshop/libs/cpgTool.class.php

    * Notice line 197: Undefined variable: fileORcontent
    * Notice line 197: Undefined variable: fileORcontent

/plugins/cpgshop/codebase.php

    * Notice line 384: Undefined variable: icon_array
    * Notice line 388: Undefined variable: icon_array
    * Notice line 388: Undefined variable: icon_array
    * Notice line 388: Undefined variable: icon_array
    * Notice line 388: Undefined variable: icon_array
    * Notice line 388: Undefined variable: icon_array
    * Notice line 388: Undefined variable: icon_array
    * Notice line 388: Undefined variable: icon_array
    * Notice line 390: Undefined variable: icon_array

Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 05, 2010, 10:39:47 am
That's debug output you probably have enabled in config. Disable it if it means nothing to you (that's not shop related).

Have you read the documentation of the shop and configured it properly? Otherwise you won't see purchease options.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 05, 2010, 03:22:46 pm
I've disabled debug..... I just wanted to show it to you. My problem is that when I disable plugins (cpgShop is the only one I use), the Registger and Profile work properly, but not when I enable the plugin.
If you like you're  welcome to get in there, but I'd need to let you have the password somehow.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 05, 2010, 04:35:48 pm
Switch to english and see if the login problem persists. And of course a testuser account would be useful.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 05, 2010, 05:09:50 pm
it IS in English, and there's a test user account that I use.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Αndré on November 05, 2010, 05:11:55 pm
there's a test user account that I use.
Stramm asked for the login details so he can perform some tests ::)
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 05, 2010, 05:15:54 pm
I'd like to give it, but on this public platform? (I'm a novice to forums)
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 06, 2010, 09:58:24 am
Stramm, how can I give you my password? Have you an e-mail address?
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 06, 2010, 11:12:19 am
Just give me a user/ password fo a non admin testuser account. That you can post here. If I should need an admin account later I'll send you a PM.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 06, 2010, 03:02:15 pm
user: miloff     Password: 20tanssi10       Albums  made inaccessible because they for restricted registered viewers, (ballet school pictures involving kids), but of course they are visible should you go through admin.... let me know.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: hfxmedic on November 07, 2010, 02:26:03 pm
Hello all:

I'm having a tough go at my install.  I have satisfied all the requirements for PAY integration however one demon has poked its head out that I cannot seem to squash.

My problem is that when I have the plugin installed it will not allow users to register and provides the following error:

Code: [Select]
Critical error
Invalid action for form creation select

File: /home/them1765/public_html/photographs/register.php - Line: 384

my debug txt shows:
Code: [Select]
USER:
------------------
Array
(
    [ID] => a0ac3493114a90e16aa881030e91a034
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 530
            [1] => 526
            [2] => 561
            [3] => 10
        )

    [liv_a] => Array
        (
            [0] => 29
            [1] => 1
            [2] => 5
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
            [0] => 3
        )

    [group_quota] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [can_post_comments] => 0
    [can_upload_pictures] => 0
    [can_create_albums] => 0
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 1
    [access_level] => 2
    [disk_max] => 0
    [disk_min] => 0
    [has_admin_access] => 0
    [group_name] => Guests
    [can_see_all_albums] => 0
    [group_id] => 3
    [allowed_albums] => Array
        (
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT name, value FROM cpg_config [include/init.inc.php:181] (1 ms)
    [1] => SELECT * FROM cpg_plugins ORDER BY priority [include/plugin_api.inc.php:54] (0 ms)
    [2] => SELECT user_id, time FROM `them1765_copp3`.cpg_sessions WHERE session_id = 'd51eb1c37062472075b95d6d0eb59289' [bridge/coppermine.inc.php:264] (0 ms)
    [3] => SELECT user_id, user_password FROM `them1765_copp3`.cpg_users WHERE user_id = 0 [bridge/coppermine.inc.php:276] (0 ms)
    [4] => 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(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, MAX(access_level) AS access_level, MIN(pub_upl_need_approval) AS pub_upl_need_approval, MIN( priv_upl_need_approval) AS  priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (3) [bridge/udb_base.inc.php:321] (0 ms)
    [5] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 3 [bridge/udb_base.inc.php:325] (0 ms)
    [6] => SELECT aid FROM cpg_albums WHERE moderator_group IN (3) [include/init.inc.php:271] (0 ms)
    [7] => SELECT lang_id FROM cpg_languages WHERE enabled='YES' [include/init.inc.php:329] (0 ms)
    [8] => SELECT * FROM cpg_plugins [plugins/slider/include/load_sliderset.php:23] (0 ms)
    [9] => SELECT * FROM cpg_plugin_slider [plugins/slider/include/load_sliderset.php:35] (0 ms)
    [10] => SELECT name, value FROM cpg_cpgshop_config [plugins/cpgshop/libs/cpgDB.class.php:24] (0 ms)
    [11] => DELETE FROM cpg_banned WHERE expiry < '2010-11-07 07:43:35' [include/init.inc.php:443] (0 ms)
    [12] => SELECT null FROM cpg_banned WHERE ('24.224.220.204' LIKE ip_addr ) AND brute_force=0 LIMIT 1 [include/init.inc.php:459] (0 ms)
    [13] => SELECT aid FROM cpg_albums WHERE (1  AND visibility != 0 AND visibility != 10000 AND visibility NOT IN (3)) [include/functions.inc.php:967] (0 ms)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
    [agree] => I agree
)

==========================
COOKIE :
------------------
Array
(
    [cpg15x_data] => YTo1OntzOjI6IklEIjtzOjMyOiJhMGFjMzQ5MzExNGE5MGUxNmFhODgxMDMwZTkxYTAzNCI7czoyOiJhbSI7aToxO3M6NDoibGFuZyI7czo3OiJlbmdsaXNoIjtzOjM6ImxpdiI7YTo0OntpOjA7czozOiI1MzAiO2k6MTtzOjM6IjUyNiI7aToyO3M6MzoiNTYxIjtpOjM7czoyOiIxMCI7fXM6NToibGl2X2EiO2E6Mzp7aTowO2k6Mjk7aToxO2k6MTtpOjI7aTo1O319
    [2f693be5e2e513e933fbdabdc840ac86] => f1f0c37d59582792c8b7bdfbcd931eda
    [cpg15x_cpgshop] => YToyOntzOjQ6ImNhcnQiO2E6MDp7fXM6NzoicHJvZmlsZSI7YTowOnt9fQ==
    [PHPSESSID] => 371a72bd182b5390e17a9b471a398949
)

==========================
SESSION :
------------------
Array
(
    [php_captcha] => 291574fd3034f61c524191033cc46c64
)

==========================
               


Any help would be appreciated.

the site:  www.photographs.themonkeysfist.ca
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: hfxmedic on November 07, 2010, 02:40:17 pm
oh... I've created a tester account as well (if by chance someone wants to help me out)

user: tester
passwrd: coppermine

thanks again.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 07, 2010, 04:17:58 pm
I see... give me some days
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 10, 2010, 04:32:50 pm
Stramm, I'm finding more bugs that prevent me from using the shop. For example the "view cart" ikon apears in all windows, including guests, showing what another visitor has got in it.
Also although I've set the prices  and options in their respective categories, I can't get the prices to show when making a "purchase". And as previously mentioned the "profile" and "register" buttons show "error" when cpgShop is active.
Just a little thing I'd like to mention Stramm, "Surname", "Name" and "Last Name" all mean the same thing, so I would advise to use "First Name" and "Last Name" to save any confusion?
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 10, 2010, 05:57:16 pm
Stramm, I'm finding more bugs that prevent me from using the shop. For example the "view cart" ikon apears in all windows, including guests, showing what another visitor has got in it.

The basket items are stored in a cookie. So it doesn't matter if you're shopping as a guest and then you log in. Once you checked out, the data is stored in the db an dbound to your account.

Quote
Just a little thing I'd like to mention Stramm, "Surname", "Name" and "Last Name" all mean the same thing, so I would advise to use "First Name" and "Last Name" to save any confusion?
If someone is willing to correct my english I won't mind at all.

Quote
Also although I've set the prices  and options in their respective categories, I can't get the prices to show when making a "purchase". And as previously mentioned the "profile" and "register" buttons show "error" when cpgShop is active.

Elaborate more.. I do not know what you mean and I can't replicate your issue with the register and profile. Make sure everything is uploaded correctly. Maybe reupload all files. If that doesn't help please post the php version you use.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 11, 2010, 08:44:09 am
1)OK, I'll check on another computer under another name and see if there's still thhat problem, but I think your explanation makes good sense.

2) your English is excellent, and most mistakes are trivial, but I felt I needed to point this one out, though I don't want to hurt any feelings!

3) I think you'd have to get  into my admin to see more precisely what I mean, so if you give me your mail address..... if cpgShop is active, it's not possible to register or look at profile.
PHP Version 5.3.3-0.dotdeb.1
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 11, 2010, 02:41:54 pm
Please check if it's working for you now (shame on me btw).
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 11, 2010, 03:16:29 pm
Great, thats the profile and register solved, thanks!
Do you think you could check the settings on the Price Manager, Price Set Manager and Options? , If I try to make a purchase it doesn't register or confirm the size or price.... but it might be just me not having set the thing right in the managers. In the options manager I tried to put 0.90/2.00/4.00 as values, but it only registers 0.90, and "0" when I try to  purchase a picture, and empty in the "Item and option price" window.
By the way, in the window "add image to shopping basket".....  what's the icon (an arrow) underneath the pictures which shows a small box when you click on it, but nothing happens?  (I know that the "add" box is on the right of the picture)
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: Stramm on November 11, 2010, 03:33:54 pm
You need to give price and option groups names. I use the names to identify the groups so the prices won't display without.
Check your 2010 album. Here I've reenabled the shop for the named groups.
Title: Re: [cpg1.5.x]: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 11, 2010, 05:05:06 pm
ok, gotcha.... thanks for the help! I'll work on this tonight..... getting there! There are some things I would reword for the customer, but I wouldn't maybe later when I get cleverer!
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 11, 2010, 08:20:04 pm
New version cpgShop 1.0.1 with  fix of the profile and regiter page issue is up. I've lso fixed the german lang file encoding.
Title: Re: cpgShop - a PayPal shopping cart
Post by: RVB Pixels on November 11, 2010, 10:15:48 pm
Hi,
First of all I would like to thank you for this fine work.
I've installed without too much problems..., although still testing.

One question, (well there will probably be more) is there a way to have the 'thank you' messages in differents languages.
I've translated and have a French language file for the plugin, but don't know how we can translate on the fly the thank you messages at the end of transactions.

OOps another question, to update to this new version 1.0.1 do we just overwrite the older files? There are no database changes?

kindest regards,
RVB
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 12, 2010, 12:26:21 am
No database changes in this version so just overwrite the files. You can read how to do a correct upgrade in the docs.

The language question. I had my thoughts on that already cause of the document management in the shop admin different languages aren't supported atm. However I intend to code some fallback so you can switch to a document management via lang files.
Title: Re: cpgShop - a PayPal shopping cart
Post by: hfxmedic on November 12, 2010, 03:44:33 am
Stramm,

Thank you very much for the update :)  Working perfectly now.
Title: Re: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 12, 2010, 07:53:45 am
Hi again! My wife wants to translate all the text (especially payment instructions) into Finnish. Is this possible, or do we have to be nuclear scientists?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 12, 2010, 09:32:01 am
It's easy. In the document management most used texts are stored (in english). Check the docs if you need to know what each file does. These you can modify as you wish.
The rest is done in a language file. Copy the contents of plugins/cpgshop/lang/english.php into a new text file and name it finnish.php. Now start translating (the text after => ). If the text is in double quotes, you need to escape double qoutes if you use them (with a /). Same for single quotes and the slash itself. Make sure you save the lang file utf8 encoded.
Title: Re: cpgShop - a PayPal shopping cart
Post by: ReVoX on November 12, 2010, 07:02:03 pm
It's my own spanish language language file. It's incomplete. If someone want to continue translating It into spanish please, do it and share It.
You only need upload the attached file in (CPG patch)/plugins/cpgshop/lang/
Title: Re: cpgShop - a PayPal shopping cart
Post by: RVB Pixels on November 14, 2010, 08:03:11 pm
Thanks for the reply Straam.
I've one or two problems with group options, but I'll have a closer look and if I can't find the answers, I'll have some questions ;-))

In the meantime, if anyone wants to use my French language file, it's downloadable here. There may be some French terms that need improved on, but the translation is complete.
Title: Re: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 15, 2010, 07:28:51 am
Hey great! I was going to tackle the French one after the Finnish! I'll make the Fin one public when it's ready. I also have problems with the group options, because they don't seem to appear when making a purchase, plus the fact that when I receive the order I don't see the (print) size or option (glossy or matt), just the price, so there's some work still to do, and Stramm as last resort  :)
Title: Re: cpgShop - a PayPal shopping cart
Post by: RVB Pixels on November 15, 2010, 09:38:08 am
Hi,
First of all, sorry for the spelling of your name Stramm.
I have those similar issues trying to get framed/unframed, coloured/black/white, glossy/matt as options, groups etc. although I do seem to get the print sizes to appear OK.

I have my print sizes at the beginning under prices but I'm not sure if this is the correct way

Example:
20 x 30 cm (framed)   55.00      5.70      €   Livraison   0
30 x 45 cm (framed)   80.00      5.70      €   Livraison   0
40 x 60 cm (framed)   95.00      5.70      €   Livraison   0

20 x 30 cm                 20.00      0.00      €   Livraison    0
30 x 45 cm                   45.00      0.00      €   Livraison   0
40 x 60 cm                   60.00      0.00      €   Livraison   0


Another issue found is when I use the french language file the delete button doesn't work, but when I switch to english it works fine.


Kind regards,
RVB
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 15, 2010, 10:11:01 am
Please overwrite plugins/cpgshop/libs/HTMLelement.class.php with the one in the attached zip.


Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 15, 2010, 12:42:14 pm
and if you mean 'delete' in the basket then that's working for me. The 'delete' text is a toggle all link. You need to tick the checkbox and click edit cart.
Title: Re: cpgShop - a PayPal shopping cart
Post by: RVB Pixels on November 15, 2010, 02:10:27 pm
Sorry I didn't explain myself correctly.
No, not the basket, this delete button works fine.
It's in the cpgShop configuration. All the delete buttons for 'price', 'price options', 'group', 'group options', 'country',... The add 'new' buttons next to these work OK. Maybe could be something with the checkboxes.
As I've said it works OK in english.

PS HTMLelement.class.php downloaded and overwritten.

kind regards,
RVB
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 15, 2010, 02:57:11 pm
For the lang file to work one line needs to be changed. That's cause of JavaScript using it and that's throwing out an error. So that's one exception where one needs to use html entities.

Maybe the author of the french lang file wants to redo his work a little bit and remove the html entities and instead will use plain text.

That's what needs to be changed
Code: [Select]
'are_you_sure' => "Vous &ecirc;tes s&ucirc:re ? Ce n'est pas r&eacute;versable !",
to
Code: [Select]
'are_you_sure' => "Vous &ecirc;tes s&ucirc:re ? Ce n&lsquo;est pas r&eacute;versable !",
Title: Re: cpgShop - a PayPal shopping cart
Post by: RVB Pixels on November 15, 2010, 03:40:23 pm
OK Thanks.

I've modified the french file and the delete buttons work fine now.

Updated french language below with all html entities changed.
Title: Re: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 15, 2010, 04:46:39 pm
Hi Stramm! I'm still having problems with the prices and options. As far as I can see they are correctly inserted, however when I receive the order by mail it arrives as such (layout slightly different but content the same):

he purchased the following:

Item name   Item and option price   Price each   Qty   Shp   Total
132|2008_Ruusunen-008.jpeg   Item price: € 4.00
________________________________________   € 4.00   1   delivery   € 4.00
685|2007_joutsenlampi-010.jpg   Item price: € 2.00
________________________________________   € 2.00   1   delivery   € 2.00
Cart total   € 6.00
Shipping fee (Standard)   € 2.00
Total   € 8.00
Includes VAT   € 1.84

You may view the order in the admin area. The order_id is View order

Where am I going wrong? (still have the admin u &p?)
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 15, 2010, 07:00:08 pm
Please overwrite plugins/cpgshop/libs/cpgTool.class.php with the one in the attached zip.
Title: Re: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 18, 2010, 02:01:08 pm
Did that, but not much difference. I put the original lang/english.php in again because I thought that the changes I'd made might be the cause, but it makes no difference either.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 18, 2010, 02:15:45 pm
Just that we talk about the same thing. I fixed a problem with option prices showing as 0 (zero) in certain cases while a price was definitely set.

You have options not showing in the email and pdf at all but in the cart? 
Title: Re: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 18, 2010, 06:09:19 pm
I have now deleted all in the options sections because I think I can do without them (tell me if I'm wrong), but the problem still persists, that  even though the customer choses the right article in the price choices, it will show the article to step 2 but disappears in step 3 onwards.
Another issue: when I press the "continue shopping" button in step 2, nothing happens.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 18, 2010, 07:17:31 pm
The problem was, that you had created option sets without giving them a name or with options that you deleted later. So when the shop tries to get the info for a option set, it got an empty entry and hence showed nothing.

Disable and enable the shop for some albums and retry.
Title: Re: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 19, 2010, 09:40:53 am
It just doesn't work. Can you explain from the following Stramm?:
Price Manager:all the prices are listed in 3 sizes, glossy or matt (6 choices)
Price set Manager: all prices grouped under "your Prints colour" and "Your Prints B & W" (both same set of sizes)
Can you now give me a concrete example of how I should set the Option Manager and Option Set Manager?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 19, 2010, 11:14:42 am
I've already fixed it for you (in option and option set manager). You just need to disable the shop for your pictures and then reenable it (button 'Enable/ disable CPGShop for pics in an album'). 
Title: Re: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 19, 2010, 12:03:02 pm
you mean the settings are right now?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 19, 2010, 01:22:27 pm
Yesterday I've corrected them for you.
Title: Re: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 19, 2010, 02:02:22 pm
I wasn't clear about that Stramm, sorry, I changed them again after that message thinking you were giving me instructions for solving the problem.... can you set them again please?
Title: Re: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 25, 2010, 02:48:55 pm
Stramm, although I have the options and option sets under some control, the Item doesn't show in the invoice confirmation to the customer,  or to the admins e-mail . I've tried many combinations, also in the pricing (part is below).... what's the solution? There are also question marks on the pdf invoice, obviously something that's missing there.

Item name   Item and option price   Price each   Qty   Ship   Total
461|2010_Defile-008.jpeg   Item price: € 4.00
________________________________________   € 4.00   1   delivery   € 4.00
Title: Re: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 26, 2010, 07:52:09 am
Does anyone know........

How do I enter the company details on the PDF and e-mail purchase confirmations/invoice?
How can I change the question mark on the PDF forms to a Euro sign?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 26, 2010, 09:08:49 am
Please read the docs. I think I've already answered this questions there.
Title: Re: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 27, 2010, 09:15:32 am
ok, managed to get the address done, but the ? sign is still on the PDF invoice instead of €  (not the mail confirmation) to the customer. Furthermore  the ä in Seinäjoki comes out as Seinäjoki, how do I rectify, Stramm?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 27, 2010, 11:11:26 am
Save the lang file in utf-8 encoding. The Windows editor is capable of doing that.
With the € sign... looks like I haven't written that down yet. Depending what libraray is available on your server to create pdfs it's necessary to edit the lang file. In the $currency_symbol array you'll find
Code: [Select]
'EUR' => '&#8364;',
 //'EUR' => '&#0128;',

uncomment the second entry and comment out the first
Code: [Select]
//'EUR' => '&#8364;',
 'EUR' => '&#0128;',

On your server GD is used to create the pdfs,not the best solution but at tleast it works (images not supported as far as I remember).
Title: Re: cpgShop - a PayPal shopping cart
Post by: johnbcheetah on November 27, 2010, 02:45:36 pm
Ok, works now...... thank you for your patience!
Title: Re: cpgShop - a PayPal shopping cart
Post by: ReVoX on December 04, 2010, 08:08:47 pm
Hi,
I need and idea about how to remove the shipping module. I will explain better, When a person make an order in my gallery with CPGshop, the client must pick up It in my physical shop.
It's possible? Thank you.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on December 04, 2010, 08:26:42 pm
There's a config entry for that

http://stramm.bplaced.net/wiki/doku.php?id=cpgshop#parcel_delivery_settings
Quote
Customers can pickup their items

(Yes/No) If you want to allow customers to come into your office and pick up their prints
Title: Re: cpgShop - a PayPal shopping cart
Post by: ReVoX on December 07, 2010, 08:32:52 pm
Yes I know It. I am searching for remove the shipping module. I don't want in the registration form anything about adress ect. In addition I want to remove the shipping module, skip this step.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on December 07, 2010, 08:53:00 pm
For registration you can make all the fields not mandatory but you can't skip the shipping part without changing code
Title: Re: cpgShop - a PayPal shopping cart
Post by: saleks on December 13, 2010, 12:51:32 pm
Hi,
it is great plugin. Congratulations!
I'm new in using Coppermine and have no experience. OK, I put album and photos, I enable cpgShop, make all settings, make Prices and Optoins, its work. Then I come to test with ordinary user account, go to album. There is Add to Cart everything else, but when click on photo it open in new window in full size and I can download. And why I to buy, when I can dounload in full size?
May be I wrong something with Settings?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on December 13, 2010, 01:02:25 pm
That's coppermine settings you need to change if you do not want your users to be able to download pics in full size.

Eg you could not display full sized images at all (config) but have them on your server (htaccess protected) so you can let your customers download images in the size you sold them. Or, you can upload lets say 4000x2000 and keep this as original, the fullsize you resize to 1024x800 and then you have your intermediate at 640x480. Set it up as you wish it to be.

Read the Coppermine docs and the plugin docs. If you still should have questions come back here.
Title: Re: cpgShop - a PayPal shopping cart
Post by: saleks on December 13, 2010, 02:57:28 pm
Hi,
I read all documents and again have problem. I set all like simple 'No full-size pop-ups':
Go to coppermine's config and set:

    * "Create intermediate pictures" to "no"
    * "Max width or height of an intermediate picture/video" to "800"
   * "Max width or height for uploaded pictures/videos" to "1024"
   * "Auto resize images that are larger than max width or height" to "Yes:Everyone"

and only see 800px in album, but can download fullsize 1024?
I can not find download settings anywhere?
I don't understand what is meaning of this, if users can download fullsize image how you to sell them?
May be put wattermark? Or sett see only thumbnails in registered users?

Title: Re: cpgShop - a PayPal shopping cart
Post by: saleks on December 13, 2010, 03:09:16 pm
I solve my problem! Thank you for help! :)
Title: Re: cpgShop - a PayPal shopping cart
Post by: Juztme on December 18, 2010, 12:19:20 pm
I hope that this is the correct place to post this. I want to change the valuta to KR (Danish Kroner), but when I do that, the prices end up being 0.00. If I then change valuta back to dollars, euro etc., it's not a problem. I have tried using codes like DKK. DKR, KR... I really want this to work, so please help...

And then I have tried to use option, but that won't work either...

In the title I write papertype...
In the next field I write mat|blank| Well I figured that out - foolish me I had fogotten one of the | There should be two of those between each option  ::) Never mind then...

But I need help with the valuta thingy...

Kind regards Susanne
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on December 18, 2010, 12:52:05 pm
You need to use DKK (cause of PayPal)... then  at two places you have to add that
1. lang file: array $currency_symbol... something like
Code: [Select]
$currency_symbol = array(
 'USD' => 'US $',
 'CAD' => 'CA $',
 'GBP' => '&#163;',
 'EUR' => '&#8364;',
 //'EUR' => '&#0128;',
 'JPY' => '&#165;',
 'DKK' => 'DKK',
);

and in libs/cpgTool.class.php
Code: [Select]
function currency_rate($currency) {
$exc_rate = array(
'USD' => 1,
'CAD' => 0.99597997037873,
'GBP' => 0.4914309894915,
'EUR' => 0.70526835460893,
'JPY' => 115.34663939629,
'DKK' => 1,

);
return $exc_rate[$currency];
}

the exchange rate doesn't matter as it's not used yet, just prepared for the future.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Juztme on December 18, 2010, 01:07:12 pm
Thank you very much... I just found it myself too using a seach for USD... Now it working perfectly...

Title: Re: cpgShop - a PayPal shopping cart
Post by: Juztme on December 18, 2010, 02:01:28 pm
Hmm another question, that I have tried to find the answer for... If I want to have the price last in the listbox, where do I do that??

Now it is written like this xx kr. (10x15 cm.) I want it to be 10 x 15 cm. - xx kr.

Is it difficult to get it written like that??

With Kind regards Susanne
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on December 18, 2010, 02:43:32 pm
libs/HTMLElement.class.php
have a look at the function advance_select
Title: Re: cpgShop - a PayPal shopping cart
Post by: Rockas on December 21, 2010, 01:33:34 pm
I'm not sure if this is the right place to ask this but looks like Stramm has private messages disabled.
i would like to know how can i get the full version of this plugin?

thank you for you time and great work
Title: Re: cpgShop - a PayPal shopping cart
Post by: Juztme on December 21, 2010, 05:07:42 pm
libs/HTMLElement.class.php
have a look at the function advance_select

Thank you so much - that worked perfectly....

Now I am almost there - and with a danish version of the languagefile. I will try to put it up here, when I have checked it over once more for spelling errors etc.

 
Title: Re: cpgShop - a PayPal shopping cart
Post by: papukaija on December 23, 2010, 12:06:00 am
@Rockas:
The plugin in its basic version doesn't come with PayPal IPN nor with digital image download support.
For a donation I'll send you the full version. Just leave a message here and I will contact you using the forums private messaging system.
(PMs are disabled for reasons explained in board rules).
Title: Re: cpgShop - a PayPal shopping cart
Post by: vanceb on December 26, 2010, 09:56:58 pm
HELP ;D
 Hi Stramm or anyone, I have managed to get every thing to work with this great program, but i am now lost on what to do to get the connection to paypal, I have read the theads and i am still confused, i looked at the open ssl but i have no idea how to use it, do i need to upload it to my server? and which one am i suppose to use? if anyone can help me with the final steps i would be happy to make a donation to you.. I am a photographer not a computer programer..LOL

Thank you in advance.

Vance
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on December 27, 2010, 09:35:45 am
PayPal IPN is not a feature of the basic (free) version as I've written in the announcement thread and the docs. So you won't have luck looking any further ;)

Quote
The plugin in its basic version doesn't come with PayPal IPN nor with digital image download support.
http://forum.coppermine-gallery.net/index.php/topic,67506.msg335122.html#msg335122
http://stramm.bplaced.net/wiki/doku.php?id=cpgshop
Title: Re: cpgShop - a PayPal shopping cart
Post by: Juztme on January 03, 2011, 09:52:02 pm
Just another little question about discounts. I am playing with that feature right now...

When I add a discount with a value of 10 kr, then it's okay in the cart, but in the orderconfirmations it's changed to 1 kr. And when I press "See order" it's also changed to 1 kr and the calculations uses this "1 kr!...

What is going wrong here/What am I doing wrong here?

Printscreen etc. is given if needed

With Kind regards
Susanne
Title: Re: cpgShop - a PayPal shopping cart
Post by: ChrisDennis on January 24, 2011, 09:39:56 pm
Two questions:

* under what licence is the cpgShop released?

* please can you contact me regarding the PayPal IPN feature?

regards

Chris
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on January 25, 2011, 09:24:38 am
The shop in its basic version is realeased under the GPL
The additional modules you may modify to your likings but not distribute them
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on January 25, 2011, 09:25:58 am
Two questions:

* under what licence is the cpgShop released?

* please can you contact me regarding the PayPal IPN feature?

regards

Chris

A link with a testuser login would be cool
Title: Re: cpgShop - a PayPal shopping cart
Post by: studentscene on January 25, 2011, 09:25:16 pm
Hi all,

I have the following issue:

When install the cpgshop plugin and do the database update I get "already done" for the following tables..

cpgshop_priceset
cpgshop_option
cpgshop_optionset

and they do not already exist...and dont get created in the database, checked with phpmyadmin. So I try to make them manually with SQL, but get an error back along the lines that "price_array cannot have a default value"

Any ideas?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Αndré on January 25, 2011, 10:36:53 pm
Remove the default value for price_array (and maybe other columes) in your SQL query/queries.
Title: Re: cpgShop - a PayPal shopping cart
Post by: studentscene on January 25, 2011, 10:47:28 pm
I changed all the "TEXT NOT NULL DEFAULT" in the 3 tables to "VARCHAR(255) NOT NULL DEFUALT" and it seems to work ok, but not sure if this is the correct way to fix this issue or why it happened on a fresh install?
Title: Re: cpgShop - a PayPal shopping cart
Post by: russell07 on January 26, 2011, 10:26:47 pm
Hello, is it possible to set a default pricing setup for new images automatically. I.e. so a user can upload their image and then buy it as a print?

Thank you
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on January 28, 2011, 02:31:57 pm
I changed all the "TEXT NOT NULL DEFAULT" in the 3 tables to "VARCHAR(255) NOT NULL DEFUALT" and it seems to work ok, but not sure if this is the correct way to fix this issue or why it happened on a fresh install?

Don't change the type but set no default value
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on January 28, 2011, 02:33:11 pm
Hello, is it possible to set a default pricing setup for new images automatically. I.e. so a user can upload their image and then buy it as a print?

Thank you

That's possible but it's not just changing a line of code. That's some more work that has to be done.
I'll keep it in mind as a nice new feature.
Title: Re: cpgShop - a PayPal shopping cart
Post by: dadepfan on February 14, 2011, 09:41:29 pm
Hi!

After reading this thread, my understanding is that the basic plugin requires manual interaction for purchase and delivery.  What I am trying to achieve is a simple shopping cart where guests or registered users can add digital photos to their shopping cart (all are the same price), then at checkout they would be connected to PayPal to make payment (PayPal will be the only payment method), and once the payment is verified, they would receive a link for downloading the original full-sized image (uploaded file has a watermark, buyer would download the version with the "orig_" prefix).

This requires some beyond-basic modules for a donation?  Can you please PM me here or at dadepfan@desautel.net to give me the particulars?

Thanks,
Dave
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on February 15, 2011, 07:46:54 am
What you describe are the two additional modules.
The enhancement for the payment process is, that PayPal IPN has been added (connects to PayPal, verifies if a payment has been made, if yes, some action is taken, eg. preparing the download, emailing the customer).
The download module creates a htpasswd protected download folder for the customer. You can specify different pic sizes the customers can purchease. It gets resized and copied into the download folder.
Title: Re: cpgShop - a PayPal shopping cart
Post by: dadepfan on February 15, 2011, 08:05:34 pm
Sounds what I need - how can I get them??

dadepfan@desautel.net
Title: Re: cpgShop - a PayPal shopping cart
Post by: calvinite on February 15, 2011, 11:24:41 pm
Stramm,

I recently upgraded my Coppermine gallery from 1.4.x to 1.5.12.  I wanted to try out your cpgShop plugin, so I installed it on a copy of my upgraded gallery, which is set up on a local dev server that isn't on the web. It seems to be working okay, as far as I have tested it, but i found one issue. The cpgShop configuration button on the Admin menu wasn't displaying like the other buttons. It was only a text link with the icon. I made changes in the codebase.php file and corrected the issue. Here's what I did.

In cpgforum/codebase.php, find:
Code: [Select]
$add_button = '<!-- BEGIN cpgshop_control   --><li><a href="index.php?file=cpgshop/cpgshop_config" title="'.$lang_cs_codebase['cpgshop_mgr'].'"><span>' . $cart_config_icon . $lang_cs_codebase['cpgshop_mgr'] . '</span></a></li><!-- END cpgshop_control -->';
and change to:
Code: [Select]
$add_button = '<!-- BEGIN cpgshop_control   --><div class="admin_menu admin_float"><a href="index.php?file=cpgshop/cpgshop_config" title="'.$lang_cs_codebase['cpgshop_mgr'].'"><span>' . $cart_config_icon . $lang_cs_codebase['cpgshop_mgr'] . '</span></a></div><!-- END cpgshop_control -->';
It will now display like the rest of the admin buttons.

And,
Quote
(I hope some native english speaker will correct my wording)
I also made extensive edits in the english.php file for you, to capitalize the titles of the buttons and column titles, to make them more consistent, as some of them were in caps and some were not. I think I corrected most of them, but could have missed a few. I've attached it as a text file for your review; and so you can find the edits I made I put a comment with my username, and what I did at the place of each edit.

Oh, and I also updated the currency symbols to include ISO 4217 currency abbreviations; i.e., United States Dollars (USD $), Canadian Dollars (CAD $), Great Britain Pound sterling (GBP £), Euro (EUR €), and  Chinese Yuan (CNY ¥).
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on February 16, 2011, 11:49:14 am
Hi calvanite, thanks for your lang file and the fix for the menu. I'll appreciate this a lot.
As I usually use the standard theme I didn't recognize the menu issue ;)

Thomas

Title: Re: cpgShop - a PayPal shopping cart
Post by: mikezeta on February 20, 2011, 08:44:16 pm
Hi, I started trying CPGShop Plugin, but I’m having trouble with it.
In  “price manager” I’m able to write down in the boxes some prices, but when I click on “enable/disable CPGShop for pics in an album” the drop down menu called “price” and  “option” doesn’t show anything and I can’t apply the prices to the pictures.
Can someone help me please?
(I use it with Coppermine 1.5.12)

Thanks in advance

Miguel
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on February 21, 2011, 06:47:49 am
You need to group the prices in sets, that's what you enable with “enable/disable CPGShop for pics in an album”
Title: Re: cpgShop - a PayPal shopping cart
Post by: mikezeta on February 23, 2011, 05:37:39 am
Thanks for your help and your time. You do a great job!
The next time I will read better the documentation.
Title: Re: cpgShop - a PayPal shopping cart
Post by: mikezeta on February 25, 2011, 02:24:19 am
Hi,
I need help again!
By the moment I had only enable “wire transfer
I have problems when I Make a purchase, when I click on “step 4 >>> “finalize your order” it doesn’t show the bank account data.
It only shows the “view cart” button
Do you have any suggestions? Is there a step I'm missing?
Thanks!
Title: Re: cpgShop - a PayPal shopping cart
Post by: mikezeta on March 03, 2011, 03:17:26 am
Hi,
I need help again!
By the moment I had only enable “wire transfer
I have problems when I Make a purchase, when I click on “step 4 >>> “finalize your order” it doesn’t show the bank account data.
It only shows the “view cart” button
Do you have any suggestions? Is there a step I'm missing?
Thanks!

the plugin doesn't work for me after step 4
I'm sending a test link.
Any idea?
http://www.fotosdemaraton.com/test/ (http://www.fotosdemaraton.com/test/)   user: test1    password: a6x1

Thanks in advance

Miguel

Title: Re: cpgShop - a PayPal shopping cart
Post by: mikezeta on March 03, 2011, 06:54:13 am
I could solve the problem. Tomorrow I'll tell you about this bug
Title: Re: cpgShop - a PayPal shopping cart
Post by: mikezeta on March 04, 2011, 07:08:24 pm
The problem happened when I configured the option "yes" in “Atach a pdf invoice to the order confirmation”
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on March 06, 2011, 08:06:42 am
Please export your shop config and email the sql to me.
Title: Re: cpgShop - a PayPal shopping cart
Post by: dudah84 on March 10, 2011, 05:56:40 pm
Stramm, would you please pm me, interrested in the full version :-)
Title: Re: cpgShop - a PayPal shopping cart
Post by: mikezeta on March 11, 2011, 08:15:46 am
Hi, I don´t know where send you the sql. please, send me email or pm.
Title: Re: cpgShop - a PayPal shopping cart
Post by: nickm321 on March 15, 2011, 01:53:28 am
Hi Stramm,
A couple of things:

1. Can you PM me re- full version?

2. How can I move/reformat the "View Cart" button?

Many thanks,
Nick M.
Title: Re: cpgShop - IPN SSL settings
Post by: camster on March 15, 2011, 10:39:57 pm
Hi Stramm
I've got your cpgShop set up and everything seems to be working great, nice work on this by the way. I've also purchased and installed an SSL certificate for my website and want to donate to receive the full version of the shop. The one part I'm running into a wall though is the paypal configuration involving the openSSL certificate settings and public certificates, key settings, ect.. I did a little research on how to set these up particularly the openSSL but this part is way over my head and further complicating this is I'm on a Mac. Is it possible to pay you to set this part up (over and above the donation). If you could let me know.

Thanks
Title: Re: cpgShop - a PayPal shopping cart
Post by: christianr on March 16, 2011, 08:52:58 pm
The plugin in its basic version doesn't come with PayPal IPN nor with digital image download support.
For a donation I'll send you the full version. Just leave a message here and I will contact you using the forums private messaging system.

How I can donate ? Amount ? For the full version ?
I have 325 albums to adapt with paypal shop plugin, is there a quick way to add the plugin for all the folders in 1 time, now I have to check every folder.
http://www.christianrevivalnetwork.com/

Great work !


cpgShop - a PayPal shopping cart.
Updated: 11.11.2010 - actual version cpgShop 1.0.1

This plugin is based on the beta cpgmart plugin that has been coded by foulu for cpg 1.4x some years back.

Here are some of it's features.

  • Sell downloadable pictures
  • Downloadable content resized on the fly
  • Password protected download folders
  • Sell for print pictures
  • Various shipping methods
  • Additional shipping fees for certain prices
  • Additional shipping fees for differnt countries
  • PayPal support
  • PayPal IPN
  • PayPal IPN logging
  • Encrypted PayPal buttons
  • Cash on delivery support
  • Wire transfer
  • Item options
  • Discounts (codes)
  • Customer needs to agree to TOS (optional)
  • Modified register page with mandatory address fields
  • Modified profile page to reflect this new fields
  • Easily make these fields not mandatory
  • All email templates can be modified in a web backend
  • Invoices (text, html, pdf)
  • Customer can be informed about order state changes
  • Workflow with virtual folders - incoming, paid, printed, processed.
  • On status changes orders can automatically be moved into their corresponding folders.
  • Customer has a order history
  • Customer can check the order status
  • Customer has the possibility to resend his download password and invoice
  • Customer can cancel orders as long the order state has not changed from incoming
  • Admin can lock the download folder
  • Admin can resend the download password
  • Admin can resend the invoice
  • Admin can delete the download folder
Just try it and see what this plugin can do for you.

Currently this language files are included
- english (I hope some native english speaker will correct my wording)
- german

The plugin in its basic version doesn't come with PayPal IPN nor with digital image download support.
For a donation I'll send you the full version. Just leave a message here and I will contact you using the forums private messaging system.

Please use this thread for your suggestions and ideas. Of course you can ask questions here as well or post if you have problems.


Read the cpgShop documentation (http://stramm.bplaced.net/wiki/doku.php?id=cpgshop)
View the cpgShop changelog (http://stramm.bplaced.net/wiki/doku.php?id=cpgshop_changelog)


Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on March 17, 2011, 09:48:40 am
2. How can I move/reformat the "View Cart" button?

The wording you can change in the lang file (plugin dir /lang/country.php)
The css is a standard CPG one (class buttonlist) . That you can modify in your themes css file (themes/your theme/style.css)
Title: Re: cpgShop - IPN SSL settings
Post by: Stramm on March 17, 2011, 09:59:25 am
Hi Stramm
I've got your cpgShop set up and everything seems to be working great, nice work on this by the way. I've also purchased and installed an SSL certificate for my website and want to donate to receive the full version of the shop. The one part I'm running into a wall though is the paypal configuration involving the openSSL certificate settings and public certificates, key settings, ect.. I did a little research on how to set these up particularly the openSSL but this part is way over my head and further complicating this is I'm on a Mac. Is it possible to pay you to set this part up (over and above the donation). If you could let me know.

Thanks

I hesitate creating the keys for you as these should stay 'private' and are an essential part of your shops security. Creating these keys isn't very difficult if you follow exactly my directions (copy/ paste) http://stramm.bplaced.net/wiki/doku.php?id=cpgshop#ssl_certificates_and_keys . OpenSSL is available for Mac as well... (Macports) so you shouldn't run into problems at all.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on March 17, 2011, 10:08:23 am
I have 325 albums to adapt with paypal shop plugin, is there a quick way to add the plugin for all the folders in 1 time, now I have to check every folder.

I've added this functionality into the 'enable cpgshop for certain albums' dialog.

Next to an album click 'Enable/ disable CPGShop for pics in an album'. Now scroll down to the bottom and in the dropdown box select 'Show pictures from all albums' instead of 'From the selected album only'. As a result all images of the entire shop get shown. With the quick edit dialog at the top you can enable/ disable the shop for all shown pics. Mark the checkbox to enable the shop, unmark, to disable it. Choose price and option groups and hit edit.

 edit button.
Title: Re: cpgShop - a PayPal shopping cart
Post by: camster on March 19, 2011, 02:47:11 pm
Thanks Stramm, I got MacPorts working and followed your instructions under how to create the "SSL certificates and keys".
1.) I believe it generated a Private Key but I'm not sure what part is the key. Theres a series of dots and plus signs followed by a letter and and a series of numbers, some with brackets
for example  (not actual) 
 ..................+++++
........................................++++++
c is 86792 (0x20003)
can you tell me what part is the key, all of the above or just the letters and numbers?
2.) Public certificate
"Answer the questions and you're done with the key generation. Just move the cert and the key to the place where you store your keys. By default that is for cpgShop the plugins/cpgshop/keys directory."
I entered the command "openssl req -new -x509 -key own_privk.pem -out own_pubk.pem -days 365" and answered the questions starting with country name and ending with email address, but after email address it asks for a new command? did it create the certificate somewhere?
Probably elementary questions here but OpenSSl is completely new to me, if you can help me get over this bump I should be able to get the PayPal settings done.

Thanks

Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on March 20, 2011, 11:08:06 am
http://stramm.bplaced.net/wiki/doku.php?id=cpgshop#ssl_certificates_and_keys

first you need to generate the private key. Cause it's easier browse to the directory where oipenssl is installed. Then type (copy/ paste) the command I've written down in the link above.
A private key with the name own_privk.pem will be created within the openssl dir. You can add a path to the name to let openssl create it somewhere else.

Then type the second command. It requires the private key. If it's not in the openssl dir, you need to attach the path to it. As out filename I've chosen own_pubk.pem. It'll get created in the openssl dir, too. With adding a path to it, you can create it elsewhere...

Upload the pub key to paypal and pick up your CERT ID, enter it in the shops config, download paypals pub key. All keys you need to upload in a directory to your server. Best is, to keep them somewhere not accesible from the web. Enter the key path/ names into the shop config.




 
Title: Re: cpgShop - a PayPal shopping cart
Post by: camster on March 23, 2011, 06:50:21 pm
Ok I think I've got it, MacPorts is little different but going from your guide and post I think I have it figured out. I'll list here if there are other Mac users.
If you are on Mac you need MacPorts as your OpenSSL
- Using Terminal type the first command as described in the SSL Security section[http://stramm.bplaced.net/wiki/doku.php?id=cpgshop]of the CPGshop guide
- That command creates the key for the certificate
- Using Terminal type the second command as described in the SSL Security section[http://stramm.bplaced.net/wiki/doku.php?id=cpgshop] of the guide
- This creates the certificate for  own_pubk.pem (in my case in the top level of my hard drive)
- Click on the file own_pubk.pem and it will open an App called Keychain Access.
- You can then view the certificate and all important CERT ID
- Copy the CERT ID and paste into your PayPal settings as described in the guide.

Thanks Stramm hopefully I got this right.
Title: Re: cpgShop - Data Inconsistent Issue
Post by: camster on March 23, 2011, 07:03:26 pm
I've set up all of my cart settings and inserted prices/groups and everything including cart seems to be working great until "Finalize your Order"
When that is clicked I get this error message.

Error
There is a problem with cart or shipping data. Please go back and fix:

    * Data inconsistent: It seems that product data has changed since you're shopping. Please start the checkout again and verify the values.

The first time I logged out and logged back in but got the same message, The last time I changed any data (pricing ect.) was about 1 week ago but I get the same message? I tried on a different computer as well thinking it might be a cookies issue.
Any ideas on how to fix this would be great.
Title: Re: cpgShop - a PayPal shopping cart
Post by: JPSantos on March 25, 2011, 12:50:53 pm
Hi...

I have a problem here... In Portugal we have to pay 23% of taxes...

Well when i put 23% in config panel, it works great, but i discover a little problem...

The taxes are calculating like this exmpl:

5€ x 23% = 1,15€

This result are wrong, because it should be like this...

5€ x 100 / 123 = 4.07 -> this is the valor without taxes...

And the tax is 0.93€

Now if you make the math 4.07 (valor without tax) + 0.93 (tax valor) = 5€

Now i will prove my teory that cant be directli mutiplied...

If you have 5€ x 23% = 1,15€

5€ - 1,15€ = 3,85€ (valor without tax)

3,85€ * 23% = 0,89

So 3,85€ + 0,89€ = 4,74€ this diferente from the original valor of 5€

So the right equation it should be

5€ * 100 / 123 = 4,07 (valor without tax)

5€ (valor with tax) - 4,07 (valor without tax) = 0,93€ (valor of taxes)

So

4,07 / 100 * 123 = 5€

This is the right equation to calculate taxes...

Now pls where i can modify the equation?

Sorry my english... im portuguese.

:)

Title: Re: cpgShop - a PayPal shopping cart
Post by: kuul on March 27, 2011, 04:40:08 pm
Hello,

I am having problems uploading the 1.5 cpgshop...I wanted to do this during the summer but that is when visitors are reviewing my site.  Now that I have read all of the paypal instructions (codes) and the coopermine instructions, it will not let me upload the plugin because of line 537 in the plugin manager.  Could you help please.  Also, your feature says that this allows the sale of the photo and available for a viewer to download.  I want to sale the item in the photo, not the photo itself. kuulkreations.com/gallery

thanks
Title: Re: cpgShop - a PayPal shopping cart
Post by: JPSantos on April 04, 2011, 11:59:36 am
Hi there i have managed to resolve tax problem...

So in line 918 of cgpTool.class file.

I have changed to this:

//returns the included tax
   function calculate_tax($total){
      global $CONFIG;

      $tax = -$total*100/123+$total;
      return $tax;
   }

And it Works... :)
Title: Re: cpgShop - a PayPal shopping cart
Post by: johny000 on April 17, 2011, 11:07:53 am
hello thank you soo much for the  nice plugins i like to ask you onething how can i make the guest order the photo with out login

b/c i telling me Please log in or register!  & idon't want my guest to register i want them just order  with out login or register!
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on April 17, 2011, 01:44:51 pm
No, that's not possible atm as I haven't coded this with anon ordering in mind. Cause I like to know with whom I make contracts customers should tell me their names. If they already do, then it's just the password that makes the difference.
Title: Re: cpgShop - a PayPal shopping cart
Post by: johny000 on April 20, 2011, 09:52:04 am
i know but they are too lazy to register so please can you help me some way so they don't have to register

thank you
Title: Re: cpgShop - a PayPal shopping cart
Post by: johny000 on May 09, 2011, 08:21:59 am
so there is no way at all?

My users are too lazy to register so please can you help me some way so they don't have to register



No, that's not possible atm as I haven't coded this with anon ordering in mind. Cause I like to know with whom I make contracts customers should tell me their names. If they already do, then it's just the password that makes the difference.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on May 09, 2011, 09:41:21 am
Customers need to give their names and addresses. No way round that. So if 'registering' is annoying for your customers, rename that to 'necessary info for the order process' or something similar.

Title: Re: cpgShop - a PayPal shopping cart
Post by: Juztme on May 10, 2011, 10:48:09 pm
I think that I have done something wrong....

When I preview cart or wiew cart og get the invoice, I can't see what my costumers have ordered. I can see the price, but that's it. I can see thumbnail, name (of img), the price of the picture, price each, qty, type (wich shows deliverymethod) and total. I would really like to see what thay have orderet e.g. print 10 x 15 cm. I do hope that you understand what I mean...
Title: Re: cpgShop - a PayPal shopping cart
Post by: Juztme on May 12, 2011, 01:35:28 pm
I do not know, if there hasn't been any answers because my question wasn't understood, or something else, but I will ask in another way...

When I look at the order in email, pdf or in the shop as a admin or customer. Where can I see what kind of picture I have ordered? The way I see it now, I can only see the price, but not if the picture is a 10x 15 cm., or printede in canvas or maybe a digital image. Where should I look for getting that written in the order? I may have up 3 different prices with the same value in a priceset, and it can be tricky to guess what the customer wanted...

I do not know if I have done something wrong. I have tried to upload a new shop, but in that I couldn't se what kind of image there was bought either. I can see, that the price is picked up from the table pictures, but there is not a row for the title (seen in the table cpgshop_prices).

I have asked for something with discount before. That still doesn't work for me... And I do not know if it was me you asked for a testuser, as you used the reply after me as a quote.

Kind Regads...
Susanne
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on May 12, 2011, 04:36:24 pm
Please post a URL to your gallery
Title: Re: cpgShop - a PayPal shopping cart
Post by: Juztme on May 12, 2011, 04:59:35 pm
Please post a URL to your gallery


Here it is. In Danish... but I hope that will do...

With Kind Regards
Susanne
Title: Re: cpgShop - a PayPal shopping cart
Post by: Juztme on May 12, 2011, 05:36:43 pm
Here it is. In Danish... but I hope that will do...

With Kind Regards
Susanne

DOH!! Here it is: http://www.kundegalleri.hvitfeldt.eu/thumbnails.php?album=13
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on May 12, 2011, 09:26:04 pm
in the basket I can see the necessary info. Without a testuser login I can not check any further. Nevertheless you should use that info as 'name' within the price manager. That's shown then everywhere. Here you specify if it's a digital download, too (you've selected 'print' for both of your test types)
Title: Re: cpgShop - a PayPal shopping cart
Post by: photocornwall on June 13, 2011, 11:36:44 am
Hi all
Please can anyone explain how to save changes made within the shop manager? I change settings, but they disapear when I move to the next set of drop-down options....ie Pricing, Paypal email, currency etc.
Thanks
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on June 16, 2011, 09:26:27 am
Hi there

I am currently installing and testing Coppermine 1.5.x and cpgShop. I have been using 1.4 for a long time and it works great. But now it is time for renewal.

I have a test album and are trying to enable the Shop and then I get the following message

Fatal error: Undefined class name 'self' in /hsphere/local/home/stockitd/boesenfoto.dk/gallery/plugins/cpgshop/libs/HTMLelement.class.php on line 917 

My gallery is on the following address:

http://boesenfoto.dk/gallery/index.php

Do I need to create a user account with certain rights for you?!

And another question... Is there any way that I can add DKK as a currency?

Thanks for your time and a great Program and Plugin!
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on June 16, 2011, 12:23:29 pm
I figured out the currency thing... But I still can't seem to activate the use of the shop in the gallery.... Am I missing something?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on June 16, 2011, 12:32:53 pm
Have you read the docs?
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on June 16, 2011, 01:53:03 pm
I believe I have, but apparently not good enough :-/

I keep getting the following Error:

Fatal error: Undefined class name 'self' in /hsphere/local/home/stockitd/boesenfoto.dk/gallery/plugins/cpgshop/libs/HTMLelement.class.php on line 917 

And have no idea what it can be....
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on June 16, 2011, 02:15:07 pm
The plugin requries PHP 5 (see docs -> cpgShop requirements). With PHP 4 it won't work. You could try to replace self:: with $this-> but I think there are other PHP 5 only functions.
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on June 16, 2011, 02:28:14 pm
Ok, I missed that. So it is my webhost who need to upgrade! Thought by default that a host would be updated :-/

I will look into that.

How can you/I see what kind of PHP I use?
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on June 16, 2011, 02:35:59 pm
Have now asked my host to upgrade my website to PHP5. They were running PHP4, but there is a free service to be upgraded. I just had to ask for it ... somewhat stupid, they don't just do it.... PHP5 is like three years old and 6 is coming ...

Thanks!
Title: Re: cpgShop - a PayPal shopping cart
Post by: sibster on June 22, 2011, 11:56:41 pm
Hi all, new to all this but getting through fine.

Even a bigger idiot as i posted this on the wrong thread a  min ago.

I managed to install coppermine and the cpg-shop.
That but is all good.

Now i'm trying to set the shop up so people can buy there images and i read the docs file that came with it REF the watermarking. i moved the .htacces file to the albums folder, that didnt work so i put it in the userpics one aswell lol and so far no water mark. Am i just being a numpty and putting it in the wrong place.
The site is www.kamibo.co.uk only 2 images up (and far from my best just wanted to get it all working.)

Thanks for any help.
Steve
Title: Re: cpgShop - a PayPal shopping cart
Post by: sntechsnaps on July 05, 2011, 02:04:44 pm
Hi Stramm,

I would like to purchase the full version, please email me : admin@inversesquare.co.uk

Cheers!
Title: Re: cpgShop - a PayPal shopping cart
Post by: sntechsnaps on July 06, 2011, 04:41:52 pm
or PM me on here :)
Title: Re: cpgShop - a PayPal shopping cart
Post by: uk_tomcat_fan on July 07, 2011, 12:52:18 pm
Hi Stramm

Please could you send me the details on how to donate, im interested in the IPN and digital download functionality

However I would like to confirm the paypal part works prior to this, could you do a step by step on how to use the sandbox?

Martin
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on July 07, 2011, 01:00:09 pm
The PayPal sandbox is pretty straight forward.
First you need to register (developer), then setup a sandbox merchant and customer. The sandbox merchants email you have to enter into the shop's paypal config and here switch to the sandbox.

Do some test purcheases and checkout... you'll see that you end up on paypal's sanbox site. Use the sandbox customer to pay.

That's it pretty much. If it doesn't work, log into your paypal developer acc to refresh the cookie.
Title: Re: cpgShop - a PayPal shopping cart
Post by: uk_tomcat_fan on July 07, 2011, 01:07:15 pm
The PayPal sandbox is pretty straight forward.
First you need to register (developer), then setup a sandbox merchant and customer. The sandbox merchants email you have to enter into the shop's paypal config and here switch to the sandbox.

Do some test purcheases and checkout... you'll see that you end up on paypal's sanbox site. Use the sandbox customer to pay.

That's it pretty much. If it doesn't work, log into your paypal developer acc to refresh the cookie.

Hmm every time i try and log on as the sandbox seller i get system error, am I doing this right as I would have thought I would have had to configure the Public keys

Martin
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on July 07, 2011, 01:12:52 pm
Just to make sure we're talking about the same

log into https://developer.paypal.com/
click test accounts and create a merchant and a customer - do the setup for the merchant as you'd do with your regular account.
At the bottom of the site (test accounts) is a button enter sandbox test site - try it
That's all...
 
Title: Re: cpgShop - a PayPal shopping cart
Post by: uk_tomcat_fan on July 07, 2011, 01:17:38 pm
exactly what i did, must be a problem with Paypal :(
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on July 07, 2011, 01:21:08 pm
I've just tried... working for me. You need to be patient with paypal. Sometimes the sandbox doesn't work at all and sometimes it's boring slow. Coding the IPN feature was a lot of fun that way ;)
Title: Re: cpgShop - a PayPal shopping cart
Post by: uk_tomcat_fan on July 07, 2011, 01:28:12 pm
now I can log in but I receive:

We were unable to authorize the transaction. Please contact your merchant.

any idea?
Title: Re: cpgShop - a PayPal shopping cart
Post by: uk_tomcat_fan on July 07, 2011, 01:30:28 pm
actually... i think i worked out that prob... i didnt have a buyer!
Title: Re: cpgShop - a PayPal shopping cart
Post by: uk_tomcat_fan on July 07, 2011, 01:35:58 pm
logged in with the buyer account, still doesnt work :(

Martin
Title: Re: cpgShop - a PayPal shopping cart
Post by: uk_tomcat_fan on July 07, 2011, 01:46:59 pm
interesting if I disable the encrypt it seems to work

Could this be because I have self certified my webserver?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on July 07, 2011, 03:26:26 pm
Are you talking about encrypted buttons or connections
Title: Re: cpgShop - a PayPal shopping cart
Post by: uk_tomcat_fan on July 07, 2011, 03:30:27 pm
Here is a screenshot of the settings which work
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on July 07, 2011, 03:58:35 pm
http://www.sslshopper.com/ssl-checker.html#hostname=widowmaker.is-a-geek.com/
Title: Re: cpgShop - a PayPal shopping cart
Post by: emerym on August 13, 2011, 11:30:51 am
Hi,

cgpShop looks like just the thing I'm after, I better get https access sorted out. I could use Smugmug but want to work with the local UK lab that I know and trust.

Are you developing cgpShop still, if so what are your rates for doing further enhancements?

I'd like the system to make up a zip file with the images and printing instructions.  I have the Dropbox client working on my server already, I'd just need the files put into the right directory. When the lab powers up their server in the morning any outstanding printing jobs would sync to it. I'd also need an email to them to make them aware of each work package.

Regards,
Mark
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on August 14, 2011, 12:12:57 pm
I'll send you a PM
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on August 22, 2011, 02:49:34 pm
Hmm another question, that I have tried to find the answer for... If I want to have the price last in the listbox, where do I do that??

Now it is written like this xx kr. (10x15 cm.) I want it to be 10 x 15 cm. - xx kr.

Is it difficult to get it written like that??

With Kind regards Susanne

And this was your answer

libs/HTMLElement.class.php
have a look at the function advance_select

I tried to have a look but I really can't figure out what to change... as Susanne dig :-/

Can you please help?!

Michael
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on August 22, 2011, 02:59:47 pm
Within the mentioned function you can find two occurances of
Code: [Select]
{$currency_symbol[$CONFIG['cpgshop_currency']]} {$data[0]} ({$data[1]}){$currency_symbol[$CONFIG['cpgshop_currency']]}
is the currency, in your example kr.
{$data[0]} the value - you said xx
{$data[1]} the price title - 10x15 cm.

so just move things around a lil bit
Code: [Select]
{$data[1]} - {$data[0]} {$currency_symbol[$CONFIG['cpgshop_currency']]}
Title: Re: cpgShop - a PayPal shopping cart
Post by: theramius on August 23, 2011, 09:48:32 am
hi stramm,

please pm me about donation for a full version :-)

thank you

best regards,
Stefan
Title: Re: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on August 24, 2011, 11:42:42 am
Within the mentioned function you can find two occurances of
Code: [Select]
{$currency_symbol[$CONFIG['cpgshop_currency']]} {$data[0]} ({$data[1]}){$currency_symbol[$CONFIG['cpgshop_currency']]}
is the currency, in your example kr.
{$data[0]} the value - you said xx
{$data[1]} the price title - 10x15 cm.

so just move things around a lil bit
Code: [Select]
{$data[1]} - {$data[0]} {$currency_symbol[$CONFIG['cpgshop_currency']]}

Thanks so much... worked just as I wanted!
Title: Re: cpgShop - a PayPal shopping cart
Post by: sntechsnaps on September 01, 2011, 12:01:57 am
Hi Stramm,

I have been working with the purchased version and all is going nicely on the development server we are using, one point has come up so far...

On the order manager, clicking on an order, brings up all the address details etc etc and at the bottom there is a thumbnail of the ordered photo, the item name, item price etc - all working fine. However how can I add in the name of the item here? I have a vareity of different print sizes at different prices, but would like the invoice/order screen to state the "name" of the option ordered, like "10x8" Print" not just the price of that option..possible easily?

Cheers.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on September 01, 2011, 07:05:36 am
It should be there and is already fixed in my new version. However there is another glitch I need to take care of. Probably next week I can send you the actual version.
Title: Re: cpgShop - a PayPal shopping cart
Post by: cheercity on September 16, 2011, 07:14:07 pm
Hi,

is it possible to change the user group membership after payment e.g. with payal? All in without admin´s help?

Thanks

Holger
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on September 16, 2011, 07:20:53 pm
With some extra coding that's possible
Title: Re: cpgShop - a PayPal shopping cart
Post by: cheercity on September 16, 2011, 07:34:13 pm
ok
sorry I am not able to send you a pm.
do you offer such coding?
Title: Re: cpgShop - a PayPal shopping cart
Post by: jonahnaylor on October 08, 2011, 08:19:28 pm
Hi Stramm, just wondered also about this Data Inconsistant error. how much is your pro version and how do I PM you, the forum won't allow it and your signature website is broken? Thanks.
Title: Re: cpgShop - a PayPal shopping cart
Post by: neilfs on October 11, 2011, 01:44:28 pm
I'm unable to PM, I guess because I am a new member to this forum - interested in donating to gain the full version of this software. neil ..at.. xtremeaction ..dot.. co ..dot.. uk thanks.
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on October 24, 2011, 10:34:23 am
Hi Stramm,

I have been working with the purchased version and all is going nicely on the development server we are using, one point has come up so far...

On the order manager, clicking on an order, brings up all the address details etc etc and at the bottom there is a thumbnail of the ordered photo, the item name, item price etc - all working fine. However how can I add in the name of the item here? I have a vareity of different print sizes at different prices, but would like the invoice/order screen to state the "name" of the option ordered, like "10x8" Print" not just the price of that option..possible easily?

Cheers.

Hi Stramm

I have just stumbled on the exact same problem. Though I am using the free version. Is there a fix for that version as well?

Thanks,

Michael
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on October 26, 2011, 02:32:58 pm
I'm working on the next update that fixes some bugs including that one. Initially I wanted to have it online two weeks ago but I'm still busy. So hopefully it's up this weekend.
Title: Re: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on October 26, 2011, 02:57:14 pm
I'm working on the next update that fixes some bugs including that one. Initially I wanted to have it online two weeks ago but I'm still busy. So hopefully it's up this weekend.

Sounds great! Looking forward to it!
Title: Re: cpgShop - a PayPal shopping cart
Post by: computel on October 27, 2011, 04:23:37 pm
OK I will be having different people uploading pictures for sale and was wondering if there is a way to add the album name to the order so I knoiw who to send a commision to?

Also is there a way to have the price list name in the order details?

this is for a 16 x 20 Poster but no where in the order or email does it state this.

as this is all that shows in the email and order

Code: [Select]
Item name Item and option price Price each Qty Shp Total
2|IMG_0760_640x427.jpg Item price: CA $ 29.99
--------------------------------------------------------------------------------
 CA $ 29.99 1 delivery CA $ 29.99
Cart total CA $ 29.99
PayPal fee CA $ 0.00
Shipping fee (Standard) CA $ 9.99
Weight additon CA $ 5.00
Total CA $ 44.98
Includes VAT CA $ 5.85


Thanks
Title: Re: cpgShop - a PayPal shopping cart
Post by: infobar on November 03, 2011, 11:59:19 pm
Hi Stramm,

Is there some option to pay You implementation plugin on my gallery :
www.infobar.ba/photo

I will give all instruction about price and delivery

Regards
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 04, 2011, 11:54:47 am
New version 1.0.3 is up
Title: Re: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on November 04, 2011, 12:32:55 pm
New version 1.0.3 is up

Thanks!
Title: Re: cpgShop - a PayPal shopping cart
Post by: Guerrilla on November 15, 2011, 03:51:57 am
Hi guys.

Can anyone, please, post the link to his Gallery to see how the Shopping Cart is working. I also want to implement it on my site but first want to see how it works.

Thanx a million in advance !!!
Alexey
Title: Re: cpgShop - a PayPal shopping cart
Post by: miwei69 on December 08, 2011, 05:33:31 pm
Hello Stramm!

I´m also interested to donate in order to receive the Pro version. Since I cannot write personal messages, I have to "request" it in here :)

Thanks for your answer!

Best Regards,

Michael

P.S.: A working link would be appreciated as well to see the plugin in action! Thanks! :)
Title: Re: cpgShop - a PayPal shopping cart
Post by: sterfry on December 15, 2011, 06:39:53 pm
I would like to make a donation to you.  I cannot send a private message, please let me know a way to get money to you.

Thanks,

Sterling
Title: Re: cpgShop - a PayPal shopping cart
Post by: mwl1983 on December 21, 2011, 10:42:27 am
Hi Stramm,
I just started a website for my photography business.  I know earlier this year you said anon ordering was not possible because, atm, this plugin was not written for that.  I was wondering if that would be chaning any time soon?  I am looking to utilize this as a way to give my wedding customers a web-hosted album and for all of the guests to be able to come on and view the photographs from the wedding with the ability to order prints.

However, I do not need them to create an account, and I am afraid that may make them shy away from ordering.

If this is not going to be an option in the near future, does anyone know of any other shopping carts available that would be compatible with 1.5?

Thanks,
Mike
Title: Re: cpgShop - a PayPal shopping cart
Post by: mwl1983 on December 21, 2011, 11:15:07 pm
Forgot to mention, I am willing to pay/donate for the full version.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Monsterous69 on January 12, 2012, 01:29:54 pm
Please can you PM me about purchasing the cart plugin - many Thanks.
Title: Re: cpgShop - a PayPal shopping cart
Post by: anndonnelly on January 17, 2012, 03:24:43 pm
As someone posted before, but I didn't see a resolution... I am getting "Data inconsistent: It seems that product data has changed since you're shopping. Please start the checkout again and verify the values." when order if finalised.

The solution given was to disable a fee for the payment option -- I am using PayPal.  Fee for using PayPal is disabled.  I also tried enabling it and adding a price and still got this error.

Any other ideas? Is there another setting I should look at?
Title: Re: cpgShop - a PayPal shopping cart
Post by: computel on January 17, 2012, 04:31:35 pm
I was wondering how I can sell photos and beable to tell which album it's sold from as I have many people that upload photos and I want to pay them when they are sold but the description doesn't say much

Item name Item and option price Price each Qty Shp Total
2|IMG_0760_640x427.jpg Item price: CA $ 29.99
--------------------------------------------------------------------------------
 CA $ 29.99 1 delivery CA $ 29.99
Cart total CA $ 29.99
PayPal fee CA $ 0.00
Shipping fee (Standard) CA $ 9.99
Weight additon CA $ 5.00
Total CA $ 44.98
Includes VAT CA $ 5.85


is there any way to say the album it came from or the members name?

What features does the cpgshop that you pay for have?

 thanks
Title: Re: cpgShop - a PayPal shopping cart
Post by: sheriffles on January 27, 2012, 06:23:04 pm
Please PM me with details of how to donate for the full version of the cpgShop

Thanks

Les
Title: Re: cpgShop - a PayPal shopping cart
Post by: nicholosophy on February 03, 2012, 02:43:59 am
Hi,

This looks great. I'd like to donate for the full version please.

Cheers,
Nick
Title: Re: cpgShop - Nice - But Unclear
Post by: JUSTINTIME on February 05, 2012, 03:24:21 am
Yeah, this is nice addition to Coppermine which currently I am testing - no errors yet but some things just don't work or are just plain weird

1 - There is NO "Add This Item To Cart Button"
2 - Cannot delete PRICES, OPTIONS created with any Manager - Absolutely nothing happens
3 - Cannot Edit PRICES, OPTIONS,  - there is only a NEW and DELETE button - EDIT button is an absolute must
4 - What on earth are these ? Add new option
                                         Title    
                                         Title ( it1||it2||it3 )    
                                         Value ( vl1||vl2||vl3 )

5 - Cannot add SHOP to User Groups
6 - By changing the words PICTURE / PICS that you use everywhere to just plain "ITEMS" then you make it easy for people to use CPG Shop for just about anything (Yes it can be changed in the LANG file but that should not be necessary)

Like I said is nice work and with some additional "polishing" you certainly will have a very nice Plugin worth purchasing.

Any ideas anyone on the above issues?
Title: Re: cpgShop - Strange Coding Logic
Post by: JUSTINTIME on February 05, 2012, 06:38:33 am
Hi

well yes I am going to hit hard here with the logic behind cpgShop - this is not intended to "insult" anyone - simply a direct method to get to a good working code...

I will be "donating/paying" for this regardless of the outcome of my "issues" although I do hope to find satisfactory solutions/mods/updates...

From the very first step - this is the very first thing a visitor sees upon entering your website with cpgShop incorporated....

1 - The Add To Cart/View Cart/Order History are visible everywhere, on every page and even pages that are totally irrelevant - I want them to be visible only for registered users who have paid for a membership account and only on pages where there is actually a product/item for sale... this is important for SEO - to accomplish this please use a global variable declared in index.php, displayimage.php, and thumbnails.php and add a  php "if" statement in themes.inc.php - if you are not sure how please let me know - I already have the solution, but that does not help the rest of your followers.

2 - The above are strangely located - How to change that?

3 - Registering with cpgShop enabled is weird - (CPGShop)Title (Mr. or Mrs) and (CPGShop)Country are totally irrevelevant and should not be present on the registration form as required information - in a nutshell, I don't give a s**t whether you are a male or female or where you come from - the price of an item is the same whatever gender you are are from where ever you are "connected"

4 - Registering an account offers the ability to purchase items - No account means you can see the items, but not download them

There you have some basic stuff in a nutshell, no beating about the bush - please do not take offence at my style  ;D
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on February 05, 2012, 11:38:09 am
Please read the docs. Most of your questions are covered there. For the rest come back here. However if you ask for additioanl coding then I'm afraid I do not have time for that.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on February 05, 2012, 11:39:44 am
I was wondering how I can sell photos and beable to tell which album it's sold from as I have many people that upload photos and I want to pay them when they are sold but the description doesn't say much

Item name Item and option price Price each Qty Shp Total
2|IMG_0760_640x427.jpg Item price: CA $ 29.99
--------------------------------------------------------------------------------
 CA $ 29.99 1 delivery CA $ 29.99
Cart total CA $ 29.99
PayPal fee CA $ 0.00
Shipping fee (Standard) CA $ 9.99
Weight additon CA $ 5.00
Total CA $ 44.98
Includes VAT CA $ 5.85


is there any way to say the album it came from or the members name?

What features does the cpgshop that you pay for have?

 thanks

Should be possible without much effort. I'll take a look...
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on February 05, 2012, 11:42:29 am
As someone posted before, but I didn't see a resolution... I am getting "Data inconsistent: It seems that product data has changed since you're shopping. Please start the checkout again and verify the values." when order if finalised.

The solution given was to disable a fee for the payment option -- I am using PayPal.  Fee for using PayPal is disabled.  I also tried enabling it and adding a price and still got this error.

Any other ideas? Is there another setting I should look at?

I've fixed that some time back but will need to checkout a newer version. In the meanwhile delete values in config, that do not get used.
Title: Re: cpgShop - Strange Coding Logic
Post by: Stramm on February 05, 2012, 11:56:53 am
4 - Registering an account offers the ability to purchase items - No account means you can see the items, but not download them

Yes, basically the shop is intended for photographers who want to sell prints. Still there's the possibility to sell downloadable content in various resolutions. Of course you don't make the resolution you want to sell accessible from the web. That's what the shop's doing. It copies the (real) fullsized (or any resolution you wish) into the customers download folder.
So without purcheasing you can see the pics the admin made accessible.

In general the shop can be used by all visitors as I hope all my visitors by my content (even if they are not yet registered users). So I want them to add content to the cart and once they want to spend money they should give me some personal details (mainly address so I can ship the prints - for me it's important to know how the title of the person for the invoice I send them). As I know that some webmasters don't care about such nullities and even do not have to deal with tax and hence invoices I made required fields configurable.
Title: Re: cpgShop - a PayPal shopping cart
Post by: JUSTINTIME on February 06, 2012, 08:02:36 am
Yes thanks Stramm

I have managed to get some elements working now... however since I have audio included (mp3 files) that I wish to include as saleable items (my own creations) I did have everything working perfectly and have the "Custom Thumbnail" plugin installed so that I could add personal thumbnails to each audio track. That was also working perfectly, however, after installing the cpgShop I now get this error when I try to add a custom thumbnail:

Fatal error: Class 'cpgTool' not found in /home/glzwxkxf/public_html/mediaza/plugins/cpgshop/codebase.php on line 251

And the ability to upload a thumbnail fails with that error... any ideas about that one?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on February 06, 2012, 11:38:18 am
Maybe it helps if you change the plugin order within the plugin manager. If not, please post a link to the other plugin.
Title: Re: cpgShop - a PayPal shopping cart
Post by: hunterjo2 on February 06, 2012, 09:08:07 pm
Hi Stramm,

I am using the chaoticsoul theme but I cant get the shop to display.  I have followed all the instructions but I am now at a loss.

http://www.rallyimage.com

Any help would be greatly appreciated

Joe
Title: Re: cpgShop - a PayPal shopping cart
Post by: JUSTINTIME on February 07, 2012, 11:34:51 pm
Hi Stramm

The Custom Thumb plugin that I am using (re: above message) is found on this page:

http://forum.coppermine-gallery.net/index.php?topic=60272.0 (http://forum.coppermine-gallery.net/index.php?topic=60272.0)

It is the V1.7 by Andre

I have looked at the code but cannot as yet find where/why it causes the error. Both cpgShop and Custom Thumb plugins install fine, and Custom Thumb causes no error with cpgShop, however it seems cpgShop causes the error with the Custom Thumb.

I'll get back on this one.
Title: Re: cpgShop - a PayPal shopping cart
Post by: JUSTINTIME on February 08, 2012, 12:09:06 am
This is more of a dialog than an error, however it is an area that perhaps needs more clarification - I would be interested to hear other opinions/ideas

While I see that cpgShop would work best for "non-download" items, the option is included in cpgShop for "Downloadable" items - this is good but causes me the following predicament:

Many of my original pictures are up to 10 megabytes in size - if someone were to add 50 such pictures to their shopping basket that would present cpgShop - and my hoster with a huge half a gigabyte file to zip ! Compressing the images is not acceptable  - these are "originals"

 The problem is somewhat worse where if someone wanted to purchase 20 WAV music tracks (each is around 30 to 80 megabytes - this would be presenting to the cpgShop zip function and likewise to my hoster a huge 1 gigbyte file to zip.

 All it would take is one bright spark to add 100 WAV music tracks/albums (even if they have been paid for) and that would definately kill my hosting server and most probably my account also. I doubt that most hosts would welcome this use of resources.

While I like the idea of putting a time limit for Downloads (already included in cpgShop) that might not be so convenient. This leaves me with the idea of permiting single Downloads only for registered accounts - ie:

Example 1 - $10.00 = 20 individual Downloads permitted over a reasonable time frame - NO Cart and NO Zipping into 1 huge file
OR
Example 2 - Users pay for a One Day Pass and can download whatever they want during a 24 hour period - NO Cart, NO Zipping - (this is open to abuse though)
OR
Example 3 - Users can add to their Cart until the number of items added reaches a certain number/value, and once paid for they recieve Download Links - NO Zipping

Ideas welcome on these and other methods to "offer" and "control" Paid/Purchased Downloads
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on February 08, 2012, 01:21:14 pm
Zipping is optional cause of your mentioned reasons.
If a customer wants to download an item, a download folder's created, then the pic's getting copied there. If you wish, that folder's emptied after a certain timeframe. After that time the customer still can access that folder and initiate the copy process again. 
There's functionality within the order manager to manually lock a download folder.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on February 08, 2012, 03:11:38 pm
Hi Stramm,

I am using the chaoticsoul theme but I cant get the shop to display.  I have followed all the instructions but I am now at a loss.

http://www.rallyimage.com

Any help would be greatly appreciated

Joe

The chaoticsoul theme has a good bunch of changes compared to the standard (curve) theme. Therefore you'll ahve to adapt the shop themeing, too.
For the add_to_cart form you'll have to edit template/blog_add_to_cart.tpl
remove the tr and td tags before
Code: [Select]
<fieldset and after
Code: [Select]
</fieldset>
That should do... and you're free to edit the templates to your likings ;) just leave the functionality intact (fields, forms)
Title: Re: cpgShop - a PayPal shopping cart
Post by: JUSTINTIME on February 10, 2012, 10:41:47 am
Hi Stramm

RE: Fatal error: Class 'cpgTool' not found in /home/glzwxkxf/public_html/mediaza/plugins/cpgshop/codebase.php on line 251

I have done some testing, and, as you suggested changed the ORDER of installing the plugins and that seems to have solved the problem.

I uninstalled both Custom Thumbnail Plugin and cpgShop AFTER backing up my database and all php files

Next I reinstalled cpgShop first and added one half of my items to the shop but left another half NOT added so as to test with and without cpgShop

Next I reinstalled Custom Thumbnail Plugin V1.7 (same as before) and tested it on included cpgShop items and NON cpgShop items and everything worked as it should - no errors - no problems.

So we can call this little problem solved although I can't seem to find a "Solved" button anywhere  ??? (Firefox V9.0.1)
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on February 10, 2012, 11:19:54 am
Thanks for coming back and solvin your issue ;)
and solved buttons do exist only for entire threads. So your last answer should be enough.
Title: Re: cpgShop - a PayPal shopping cart
Post by: JUSTINTIME on February 13, 2012, 10:57:49 am
Hi Stramm

Well ok its the end of the weekend  and so back to work again...

Working my way through spgShop I now encounter the probelem of ubication... I cannot progress because the script wants my country... this should be available as irrelevant because I am offering downloads, but I cannot progress through the script because it is telling me that my country is not acceptable...

I have tried deleting the account - does not work - no option to delete account

I have tried changing my country - not saved - changes are not saved

I have tried adding all countries - does not work - script still says my country is not accepted

Edit Details - Does not work - cannot change my supposed country

Any ideas about this?

Regards

Errm PS: if my email is visible please send me your costs for full version - if my email is not visible please tell me how to find out more  :)

Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on February 17, 2012, 02:33:31 pm
Have you disabled the country as mandatory field (lang file)? Then add all countries to allowed countries in the shop's config. If that doesn't work please ask me again and I'll have to check the code/ your site.
Title: Re: cpgShop - a PayPal shopping cart
Post by: JUSTINTIME on February 22, 2012, 07:05:44 am
Hi Stramm,

Sorry about late reply, it was a tough week after having my laptop stolen, followed by flu (stress and sleepless nights) and then having my German Shepherd disappear (not good, he is too aggressive - more stress and more sleepless nights).

Well, finally recovered from the flu, my German Shepherd came back healthy (so far no complaints from anyone) but my laptop is sadly gone forever.

Anyway, down to work again - Yes I made the changes in the language files as per your documentation, however the country field still appears as "necessary" - whether I add all countries or not does not seem to make any difference, even so I do not want this option included anyway since I am only dealing with digital downloads and "country" would be irrelevant anyway. Perhaps I can ask is it possible for me to remove all php code references to Street, Address, Town, City, Country and Zip codes since it is really only the email that PayPal is interested and certainly in my own PayPal purchases that is all I have ever needed to enter.

Meanwhile, I have gone back to starting at the very top of the shop process:

This is the method that seems to offer me the best scenario, perhaps you can help steer me in the right direction (I appreciate your time on this and other projects that you have, so I am looking more for some simple advice rather than coding examples)

First I have Coppermine set so that all casual non-registered visitors can see all images (except full size originals) and listen to all music but they cannot download full size originals or music tracks, however there will be random freebies available. This setup is mostly accomplished using standard Coppermine "Congifuration" options.

The next level of access to the media would be the CPGShop level. At this moment I have decided that I like this following method:

A Paid Registered Account - Users simply buy a membership and can see and download all full size images and music for a given time period or for a predetermined number of downloads. In this example therefore, add to cart/and cart options are not really necessary. To accomplish this a user who registers is sent to Paypal - to complete the registration process a PayPal payment must be made, and once payment is recieved this user becomes "registered" and as such gains access to all full size originals and download links. Once again, the Coppermine "Configuration" options are enough to manage media access control but it appears that this would not be monitored by cpgShop (number of downloads/download time limits etc. which would need to be implemented in another manner since selected items are not being added to a cart)

My question on this point is would I really need cpgShop at all, or is it better to continue with cpgShop for it's PayPal options (this is not intended as an attempt to bypass cpgShop, rather the contrary, cpgShop has many useful features worth retaining, however I guess I would need to strip out/hide lots of code and add further modifications). Any ideas?

Best Wishes
Title: Re: cpgShop - a PayPal shopping cart
Post by: JUSTINTIME on February 22, 2012, 10:38:14 pm
Paid Membership Periods

Continuing the above post I have come up with this process in laymans terms which I would like to implement:

A user decides to create a paid membership and clicks on the standard CPG "Register" button (renamed to something more apt perhaps)

There may be more than one Membership type available based on "Time" - User selects Membership "Type"

They are then presented with the cpgShop Register form

Upon correctly filling in the form and clicking on the "Pay Now" button their currently (correct) entered details are sent to the CPG and / or cpgShop database but marked as "Inactive" along with a current date stamp. (this is done just in case they don't complete the payment process which could be for any number of reasons  apart from lack of funds such as having to attend the bathroom, power failures, BSOD's etc - also it would mean there is no need for them to re-enter their registration data in the future)
(INSERT into USERS "name,email=$email,status=inactive,time=$getcurrenttime,membershiplan=0,paymentamount=0");

Upon receipt of a valid PayPal payment the users database entry is updated to "Active" and a new time stamp created - the time is required for Memberships that are for pre-selected memberships, such as daily, weekly, etc. but may only be "one time"
(UPDATE USERS where ' email=$email,status=active,time=$getcurrenttime, membershiplan=$membershiplan,paymentamount=$paymentamount');


As a now active member, the user has full access to CPG gallery according to the User Group Policies selected in Coppermine's standard Configuration Options.

When a pre-selected membership time expires their database details are not deleted but reset to "Inactive" providing the possibility of purchasing further memberships in the future.

Now comes the difficult part....

To make this process more automated I suspect CronJobs would need to be used - I am not sure too clearly if PayPal sends a "time up" marker that can be used to reset the database to "Inactive".

An hourly CronJob would simply read through the database, and taking each payment plan currently active it would calculate time remaining (might be useful to echo this to the users screen) or whether or not a members allocated membership period has been completed, thus resetting his / her account to inactive, deleting any relevant cookies and forcing a "LogOff" so that the user is now just like any other guest and cannot continue downloading media (unfortunately this does not take into account those persons that have previously lined up huge amounts of downloads that are currently "In Process")

The only other things to take into account in the above sketch are that Download Buttons/Options are only visible to registered users and not to guests.

I understand that cpgShop is not really designed this way, however I can see a way of modifying it to make it work this way.

Any ideas/opinions anyone?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on February 23, 2012, 08:52:58 am
Possible, if you want to modify it. A few things are redundant, some are lil bit complex. You create a subscriber/ member table. Here you sava all the info for reference. Once PayPal IPN messages a successful payment you start a script that enables the user (user table) and modifies the subscriber / member table.   

Cron is not necessary. You can move that to the init process (2 if clauses).
Title: Re: cpgShop - a PayPal shopping cart
Post by: hwelman on March 10, 2012, 08:44:12 am
What you describe are the two additional modules.
The enhancement for the payment process is, that PayPal IPN has been added (connects to PayPal, verifies if a payment has been made, if yes, some action is taken, eg. preparing the download, emailing the customer).
The download module creates a htpasswd protected download folder for the customer. You can specify different pic sizes the customers can purchease. It gets resized and copied into the download folder.

Hi Stramm

Please PM me. i am interested in the full version.
I will donate for your efforts

thanks
Title: Re: cpgShop - a PayPal shopping cart
Post by: hwelman on March 11, 2012, 12:00:36 pm
Anyone know how i can get hold of Stramm?
Title: Re: cpgShop - a PayPal shopping cart
Post by: hwelman on March 11, 2012, 02:18:37 pm
I cant reply through Coppermine.can you please e-mail me through my personal address? hein@visionsofnature.co.za
Title: Re: cpgShop - a PayPal shopping cart
Post by: hwelman on March 11, 2012, 03:41:01 pm
Thanks, i send you a email
Title: Re: cpgShop - a PayPal shopping cart
Post by: circus79 on March 13, 2012, 10:39:35 am
Hi Stramm,
Very good job! i'm interested to have the both additional modules.

cyrille_kaldor@hotmail.com
Title: Re: cpgShop - a PayPal shopping cart
Post by: markt8 on March 13, 2012, 09:51:34 pm
cpgShop - a PayPal shopping cart.
....

....The plugin in its basic version doesn't come with PayPal IPN nor with digital image download support.
For a donation I'll send you the full version. Just leave a message here and I will contact you using the forums private messaging system.


I am interested in the full version, can you please pm me the details?

Regards
Mark
Title: Re: cpgShop - a PayPal shopping cart
Post by: UNBLIND on March 17, 2012, 01:49:18 pm
Entschuldigt bitte, wenn ich hier deutsch schreibe.
@Stramm
Könntest du mich bitte kontaktieren wegen einer Vollversion.
Das Plugin ist super. Die alte Version war schon klasse und jahrelang bei mir im Einsatz.
Das Einzige was mich stört, ist dass der Kunde zwei Mal seine Anschrift eingeben muss.
Einmal beim Registrieren und ein Mal als Rechnungsanschrift.
Kann man das ändern?
Vielleicht habe ich ja etwas falsch gemacht?
LG
peter
Title: Re: cpgShop - a PayPal shopping cart
Post by: Dieter M. on April 08, 2012, 12:27:48 am
Hallo Stramm,

könntest Du mich bitte kontaktieren wegen Details zur Vollversion.

mfg
Dieter
Title: Re: cpgShop - a PayPal shopping cart
Post by: EndlessQuest on April 13, 2012, 02:28:02 pm
Hello Stramm, or anyone else that might be able to help me.

I have installed the CPGshop and it is all working as I would like it to work.
There is however something I would like to change; If someone chooses to pay by wire transfer and has passed step 4, in the conformation window, everything is in English, while it should be in Dutch. I can`t find out where and how to change the language, because it`s not in the language file. I did find the corresponding text in the install.sql file, but changing that doesn`t help. So where do I change this?

The second thing is that I would also like the confirmation email to be in Dutch, and now it`s in English as well. Where can I change that?

Thanks in advance!

www.richards-fotos.nl/test/index.php
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on April 13, 2012, 02:35:04 pm
Hava a look at the shop admin -> documents
Title: Re: cpgShop - a PayPal shopping cart
Post by: EndlessQuest on April 13, 2012, 02:38:51 pm
 :-[ Sorry, I looked everywhere, but there. Thank you so much!
Title: Re: cpgShop - a PayPal shopping cart
Post by: alex2310 on April 18, 2012, 01:36:12 pm
Nice work Stramm!

1. Its not possible to fill the cpgShop user fields (Title, Country, Address etc) from admin/users/add new user or admin/users/edit user profile? Only from Registration (new user)? I want to "register" my own users to give access... I don't want the CPG option "register new user" on.
2. How can i set a field (Title, Country etc) as NON mandatory?
3. What about donation for full version?

Thank you
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on April 18, 2012, 03:34:32 pm
1. There was a change in register.php regarding the plugin system. To make the shop work again as expected register.php needs to be modified.
find:
Code: [Select]
CPGPluginAPI::action('register_form_submit', $user_array);and change to
Code: [Select]
CPGPluginAPI::filter('register_form_submit', $user_array);
2.
Please read http://stramm.bplaced.net/wiki/doku.php?id=cpgshop#editing_required_profile_fields
Title: Re: cpgShop - a PayPal shopping cart
Post by: alex2310 on April 18, 2012, 05:10:04 pm
1. I just want, when i log in as admin, and i go to Users->Add new user, to see (and fill) the CPGShop fields. I only see the CPGshop field in "MY profile". I don't want to change my profile but i want to fill CPGshops fields in a new user's profile. Sorry for my terrible english...
2. Ok, i found it and i change it. I can't test it now. I will do it later

Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on April 19, 2012, 11:37:12 am
There are no plugin hooks within the usermanager. Therefore I can't extend the backend there. To edit the the addional files as admin you need to use a tool like phpmyadmin and look for the user in question in the users table.
Title: Re: cpgShop - a PayPal shopping cart
Post by: DirkG on May 01, 2012, 05:16:37 pm
Small question about the resend invoice option.. I have a few orders on which the customer hasn't paid yet.
I resent the invoices but received them in my own mailbox for some odd reason (also addressed to me...). Is this just a resend notification or do I have to re-configure this option in order for it to work?

Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on May 01, 2012, 05:37:28 pm
If I remember it correct, then you as admin will get a copy of the invoice when the config option 'Notify on new orders' is enabled.
Title: Re: cpgShop - a PayPal shopping cart
Post by: DirkG on May 01, 2012, 06:36:59 pm
That option is indeed enabled. Thanks! :)
Title: Re: cpgShop - a PayPal shopping cart
Post by: EndlessQuest on May 01, 2012, 10:33:31 pm
I need some help again.

I succesfully installed the shop on my gallery and everything works just fine. The only thing that is not correct, is that the emails the customer receives on the proces steps are not correct. If the status is set to "sent" the customer receives the email "processed" again. I did draft different messages (txt, html, pdf) for the different process stept. I can`t find out why the wrong message is sent?

Here is my gallery
www.richards-fotos.nl
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on May 02, 2012, 08:48:36 am
Please recheck your settings (shop admin -> documents) and verify if state_change_sent_txt, state_change_sent_subj and state_change_sent_html reflect the messages you want to send.

I checked on my end (testbed) and things work smooth.
Title: Re: cpgShop - a PayPal shopping cart
Post by: jedart on May 20, 2012, 08:34:46 am
quick question - I found that PhotoShop does not work with 1.5.X - where can one get this cgpShop plugin - its not on the coppermine gallery plugin page ?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on May 20, 2012, 10:04:53 am
It's attached to the very first post of this thread.
Title: Re: cpgShop - a PayPal shopping cart
Post by: jedart on May 21, 2012, 01:00:13 am
Thanks. Seems to work fine for me. If I want to add currency $AU for Australia any tips?
Title: Re: cpgShop - a PayPal shopping cart
Post by: jedart on May 22, 2012, 12:51:40 am
Forget my previous statement - I figured out how to add a different currency by just updating english.php and cpgTools.php in the plugin.
I did notice that deleting an item in a cart will just toggle the checkbox - it seems like the delete above the checkboxes should be renamed to 'select all' and the delete should be a non hyperlink title under the select all. The way the delete hyperlink currently is gives the impression that after you select the checkbox and click delete you expect the selected row to be deleted not toggled on checkbox!
Also the edit cart button should really say 'update cart' since you are already able to edit the form, update just finalizes your editing.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on May 22, 2012, 08:29:04 am
Thank you for your recommendations. I'll use them to improve the shop for the next update ;)

Somewhere within this thread I've described how to add other currencies. Just for the reference.
Title: Re: cpgShop - a PayPal shopping cart
Post by: jedart on June 11, 2012, 06:33:15 am
Thanks, I have updated the english.php module with the suggestions and other fixes, and corrected the english in the install.sql, happy to swap those for your process and ipn functions so I can get the downloads to work from the email. (RE: Just leave a message here and I will contact you using the forums private messaging system.)
Title: Re: cpgShop - a PayPal shopping cart
Post by: jedart on June 16, 2012, 01:25:06 pm
I have also noticed that people can download the original, by bypassing the payment, when they see the filename on the intermediate file, or the shopping cart, especially if they know that the gallery is coppermine. Most times if they put the url of the gallery and add albums/userpics/10001/orig_<filenamedisplayed.jpg> they get instant access to the original.
Not sure if that is a bug or a back door feature - but seems to question why anyone would pay for a download if they worked this out? I'd still like the PROCESS DOWNLOADS and PAYPAL IPN if possible.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on June 16, 2012, 01:32:30 pm
http://stramm.bplaced.net/wiki/doku.php?id=cpgshop#securing_your_images

When I'm back home I'll contact you.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Areinu on July 05, 2012, 12:03:13 am
Hi, I've registered just to give you some feedback on this plugin. I'll start with critical bug, that makes the script unusable for me:

1) Once you get 36 pictures into cart(37 different images, not 1 image with value 37 in quantity) and try to add 37th new picture will overwrite 36th in the cart. Always. This means that once you get to 36 pictures in the cart you cannot add any more. Cart shouldn't be filled with just that :( There's no setting for max number of files per order, so I'm positive it's a bug.

Now, when we have that done, there are features and improvements that I would like to suggest:

1) Make it possible to set it so "Add to cart" button redirects back to the page with the picture instead of going to the cart. Also show notification "picture added", so the user will know it worked. With bigger orders going to cart every single time makes the plugin almost useless, as most users will give up after just few pictures.

2) Make it possible to "save order as draft" if you're logged in, so person can continue their order during few sessions(I know cookies remember the state of the cart, but I would like it to work between computers).

3) Make it possible in settings to activate "add to cart" button under the photos in miniature view, for quick adding.

4) Least important of all of them - ability to add many folders to the shop plugin at once. This has to be done only be admin and only once, so even though it was irritating for 200+ albums that I had on my site it's manageable.

Suggestions 1-3 are pretty important, as they increase the ease of use and make the plugin more user friendly. The easier it is to order stuff the more people will order, and the more money goes to the sellers. Even so I will be really happy if you just quickfix the 36 limit issue.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on July 05, 2012, 11:09:41 am
The 37 problem: hmm.. that's really bad. It's reaches the cookie limit and with the additional serialisation even faster. That means a bigger rewrite of the shop and not to store the basket data within the cookie but in the db. However that would make your feature request 2 a breaze (however I doubt that many people will use it).

Your suggested additional features:
1. There are probably just this two possibilities to handle the process (your suggestion and how the shop works atm). However it's a valid request and if you want to sell huge amounts of pics the better way.

2. see above

3. I have added something similar to the old shop (or I told some guy how to do it). However it makes the thumb view confusing and with the possibility of the options it'll be a mess. So I'm not yet sure about that.

4. atm you can select certain pics or the entire album (or all pics of the gallery). I know that it's lacking comfort and I already intended to add something on a per album basis with checkboxes.


Title: Re: cpgShop - a PayPal shopping cart
Post by: Areinu on July 05, 2012, 03:44:24 pm
Yeah, I reached conclussion it has to be cookies too, when I was checking out your code and testing yesterday. I increased cookie size to max on my server, and it helps at least in IE(went up from 37 to ~50), but doesn't help on chrome. I've never coded much around cookies, only modded some forum software before, so I'm not 100% sure if IE just go lucky with smaller data amount per photo, or the browsers store cookies differently.

I hacked a bit around you code yesterday and made first suggestion on my own. I just added header() after adding picture. I'll just make "Added successfully" string appear on the reloaded site if it finds such info in _GET. Simple, naive and not perfect, but enough for now.

I guess fixing the cart limit would require save() to insert into database instead of making cookies, and functions that take stuff from cookies would instead need to connect to database. That really seems like a lot of work, as it's complete change in the plugin logic :(
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on July 05, 2012, 03:54:11 pm
It's not that bad... however it requires a lot of testing afterwards. The cookie's still needed to identify the customer.

In a few days I'll come up with a fix.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Areinu on July 05, 2012, 10:27:18 pm
That's amazing news! Good luck with that :)
Title: Re: cpgShop - a PayPal shopping cart
Post by: Loox on July 06, 2012, 11:21:40 am
Hi Stramm,

please send me a PM about donation for a full version.

Thank you

Best regards,

Eugen
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on July 06, 2012, 06:50:13 pm
Areinu, may I abuse you as my beta tester? ;)

Loox, I'll send you a PM when the new version is up (2-3) days.

Title: Re: cpgShop - a PayPal shopping cart
Post by: Loox on July 09, 2012, 09:23:22 am
Ok, thanks!
Title: Re: cpgShop - a PayPal shopping cart
Post by: Areinu on July 09, 2012, 11:16:17 pm
Sure. I was away from anything network related during this weekend, but now I can help you :)
Title: Re: cpgShop - a PayPal shopping cart
Post by: Loox on July 20, 2012, 04:14:15 pm
Hello Stramm!

I need a module which what the buyer gets a link to download, after paying an image (for example via PayPal). Which module of the both you listed in PM I need?

P.S. Please send me your PayPal account information.

Thank you

Best regards,

Eugen
Title: Re: cpgShop - a PayPal shopping cart
Post by: PatrickV_NL on August 01, 2012, 02:41:58 pm
please send me a PM about donation for a full version.
Title: Re: cpgShop - a PayPal shopping cart
Post by: s5iztok on August 17, 2012, 08:05:19 am
Hi, please send me a PM about donation for a full version.

Thank you

Best regards,

Iztok
Title: Re: cpgShop - a PayPal shopping cart
Post by: jsturrtle on August 21, 2012, 06:53:16 pm
Hi, please send me a PM about donation for a full version.

Thank you
Title: Download Module
Post by: johanlast on August 28, 2012, 12:48:19 pm
Hello. We implemented the cpgShop module into Coppermine Gallery and setup everything and everything is working perfectly. Could you please contact me in connection with the Download Module for cpgShop because we would really love to be able to send a "download link" to the customers to get their photos (manually sending photos is a bore). Could you please tell me how much it will be. And if we do implement it, will there be any change needed to be made to our setup which currently works.

Thank you
Title: Re: cpgShop - a PayPal shopping cart
Post by: lowlightimages on August 29, 2012, 09:34:28 pm
Hi Stramm

I'd like to know what the cost of the full module is please. I'm considering moving from Gallery to Coppermine as G3 doesn't have a decent cart ut I want to know what I'm letting myself in for first :)

Cheers
Dave
Title: Re: cpgShop - a PayPal shopping cart
Post by: mbarb on September 03, 2012, 10:27:13 pm
Hi Stramm,

please send me a PM about donation for a full version.

Thank you

Best regards,
Title: Re: cpgShop - a PayPal shopping cart
Post by: c.gaillard on September 04, 2012, 10:05:54 am
Hi Stramm,
I install cpgshop plugins,for a friend photographer, and it works perfectily, 
great job you've done!
I'd like to know what the cost of the full module is please, an sorry for my bad english
Thank you

Best regards,
Title: Re: cpgShop - a PayPal shopping cart
Post by: s2sinner on September 24, 2012, 05:18:15 pm
@Stramm
Hi there. I like to use the pluging for digital downloads only. Please contact me for details.

Thanks

Vassilis
Title: Re: cpgShop - a PayPal shopping cart
Post by: DesMas on November 04, 2012, 03:27:09 pm
Hi Stramm

I'm currently migrating a cpg1.4 "PictureShop" site with your old photoshop cart plug-in included.
Therefore I noticed some of your new options in the the plug-in like the price groups.
As I first read this, I started with the creation of three groups like
and added various prices to these groups. But then I noticed, that only one group seems to be able to be activated per album.
Is there a way to extend the shop's functionality, so I can activate multiple payment-groups per album.
That would lead into a better organization :) I know this would need some more parts of the shop to be adjusted.

I also noticed that the Options-Manager seems to have a bug, or I'm too stupid :)
If I enter the values like defined as 0.0|0.5|1.0 for example the saved value results in 0.
>> It seems like that there is a number converter active to keep the value clean from wrong data types.
If I enter the values as 0.0||0.5||1.0 they stay saved but cannot be displayed correctly in the Options-Manager.

BTW: I walked through the german language file added some missing translations and fixed some others.

May you also send me an PM for the payment information to gain the full version?


Title: Re: cpgShop - a PayPal shopping cart
Post by: shutter13 on November 10, 2012, 11:02:01 pm
Hello, I am hoping someone can help me.

I have been using this plug in for awhile and it has worked great, however I just noticed that the prices and options are truncated when the item is viewed in internet explorer. It works great in Firefox and safari, but not in IE.

You can see what I mean here http://www.naturecoastphotography.com/displayimage.php?album=6&pid=5979#top_display_media

In firefox and safari it works fine, but no go in IE.
Title: Re: cpgShop - a PayPal shopping cart
Post by: ratte-rizzo on November 17, 2012, 12:23:09 pm
Please drop me a line for the full version.

Thanks
Daniel
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on November 26, 2012, 08:04:05 pm
Hi

I have downloaded the 1.0.4 version. Currently using the 1.0.0... How do I update to the newest version? Do I just overwrite the current files or do I have to backup and save certain files etc?

Thanks!

Michael
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on November 26, 2012, 08:05:49 pm
Sorry finally found the documentation on how to update!
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on November 27, 2012, 07:48:31 am
Ok, now I updated but is still having a problem. Once a customer register in Coppermine and enters all his/hers information, then I choose photos and go to the Cart and wants to finalize the order, then they have to enter their billing/shipping information (again - is it possible to transfer the original info entered automatically).

My problem now is that they enter their information and hit "continue". But the information is not showing. So they have to enter it again. Or at least it looks like that. I tested and apparently if I just continues to next page (Gateway - I believe) then the information is acutally there. But the customer doesn't know that.

I have not seen that problem before until yesterday....

I updated to the newest version 1.0.4, but still get the same problem...

This is the gallery I am refering to

http://boesenfoto.dk/gallery/index.php

Ps I have a similar problem when trying to delete users/bots... Then I delete them, but they still appear on the list. If I try yo delete again, then it just says that they don't exist. I know it is a Coppermine problem, not cpgShop, but could it be related?!

Thanks for your time

Michael
Title: Re: cpgShop - a PayPal shopping cart
Post by: DesMas on December 13, 2012, 06:18:02 pm
Hi Stramm

I have here a little "correction" for a function in the codebase.php.
the admin menu links have changed in 1.5.x from <li> to <div> as far as I can see

Code: [Select]
function cpgshop_config_button($admin_menu){
global $CONFIG, $lang_cs_codebase;

if ($CONFIG['enable_menu_icons'] > 0) {
$cart_config_icon = '<img src="plugins/cpgshop/images/shop.png" border="0" alt="" width="16" height="16" class="icon" />';
} else {
$cart_config_icon = '';
}
/* old style
$add_button = '<!-- BEGIN cpgshop_control --><li><a href="index.php?file=cpgshop/cpgshop_config" title="'.$lang_cs_codebase['cpgshop_mgr'].'"><span>' . $cart_config_icon . $lang_cs_codebase['cpgshop_mgr'] . '</span></a></li><!-- END cpgshop_control -->';
*/
$add_button = '<!-- BEGIN cpgshop_control --><div class="admin_menu admin_float"><a href="index.php?file=cpgshop/cpgshop_config" title="'.$lang_cs_codebase['cpgshop_mgr'].'"><span>' . $cart_config_icon . $lang_cs_codebase['cpgshop_mgr'] . '</span></a></div><!-- END cpgshop_control -->';
$to = '<!-- END plugin_manager -->';
$admin_menu = str_replace($to, $to. $add_button , $admin_menu);

return $admin_menu;
}
Title: Address not changeable in order process
Post by: DesMas on December 27, 2012, 02:29:29 pm
Hi Stramm

While implementing an "user data exchange" inside the coppermine shop with a bridged Joomla 2.5 i noticed some mistake in one of the querys.
Class: HTMLelement::check_user_info()

here the fixed snipped (marked with "FCA 20121227 - fixed query"):
Code: [Select]
//we save the billing address in the users table if not bridged
if (UDB_INTEGRATION == 'coppermine' && $type == 0 ) {
$result = cpgDB::runQuery("UPDATE {$CONFIG['TABLE_USERS']} SET title = '$title', surename = '$surename', lastname = '$lastname', street = '$street', city = '$city', zip = '$zip', state = '$state', phone = '$phone', country = '$country' WHERE user_id = '".USER_ID."';");
} else {
$data = cpgDB::fetchRow("SELECT sid FROM {$CONFIG['TABLE_CS_ADDRESS']}  WHERE type = {$type} AND user_id ='" . USER_ID . "' ");
//a shipping address already exists -> update
if(isset($data['sid'])){
//FCA 20121227 - fixed query
//$result = cpgDB::runQuery("UPDATE {$CONFIG['TABLE_CS_ADDRESS']} SET title = '$title', surename = '$surename', lastname = '$lastname', street = '$street', city = '$city', zip = '$zip', state = '$state', phone = '$phone', country = '$country' WHERE sid = '{$data[sid]}';");
$result = cpgDB::runQuery("UPDATE {$CONFIG['TABLE_CS_ADDRESS']} SET title = '$title', surename = '$surename', lastname = '$lastname', street = '$street', city = '$city', zip = '$zip', state = '$state', phone = '$phone', country = '$country' WHERE sid = '{$data['sid']}';");
} else {
//insert new shipping address
cpgDB::runQuery("INSERT INTO `{$CONFIG['TABLE_CS_ADDRESS']}`
    (sid, user_id, type, title, surename, lastname, street, city, zip, state, phone, country)
    VALUES
    ('','".USER_ID."', '$type', '$title', '$surename','$lastname','$street', '$city', '$zip', '$state', '$phone', '$country');");
}

Title: Re: cpgShop - a PayPal shopping cart
Post by: DesMas on December 28, 2012, 02:19:34 pm
Hi Stramm

I may suggest an addition for definition of a shipping address. in the original implementation, the fields are all blank if the user wants to define a shipping address the first time.
Normally the personal data stays the same and only some address parts change. So it would be, from my point of view, good if the user data from the billing address will be used as prefill for the shipping address.
Therefor I added some lines to the cpgHTML.class.php file inside the function edit_address().
Maybe you want to takeover this for the original version:
Code: [Select]
                //FCA 20121228
                //if no shipping address exists, prefill with billing address
                if(empty($prefill)){
                $prefill = cpgDB::fetchRow("SELECT sid, title, surename, lastname, street, city, zip, state, phone, country FROM {$CONFIG['TABLE_CS_ADDRESS']}  WHERE type ='0'  AND user_id ='" . USER_ID . "' ");
                }

complete function:
Code: [Select]
    // -----------------------------------------------------------------------------------------
    // EDIT/ ADD ADDRESS --- atm used for shipping address
    // -----------------------------------------------------------------------------------------
    function edit_address()
    {
        global $CONFIG;
        global $lang_cs_profile, $lang_common, $lang_cs_cart, $lang_cs_error, $icon_array, $cpg_udb, $user_id, $cpgshop;

        if (!is_object($cpgshop)) $cpgshop = new cpgShop();
        // check no item and logged in
        cpgTool::check_enabled();
        cpgTool::check_cart($cpgshop);
        cpgTool::check_user();
        // delete shipping address
        $task = cpgTool::get_var('task');
        if ($task == 'delsph') {
            $result = cpgDB::runQuery("DELETE FROM `{$CONFIG['TABLE_CS_ADDRESS']}` WHERE type = '1' AND user_id = '" . USER_ID . "' LIMIT 1;");
            if ($result) {
                msg_box($lang_cs_cart['success'], $lang_cs_cart['shipping_adr_deleted'], "<span class=\"button button_normalfont\">" . $lang_common['continue'] . "</span>", "index.php?file=cpgshop/cpgshop_cart&page=verify_address", 'success');
            }
        } else {
            // shipping or billing address
            if (cpgTool::post_var('type') == false) {
                $type = cpgTool::get_var('type');
            } else {
                $type = cpgTool::post_var('type');
            }
            if (!$type) $type = '0'; //get/post don't like 0 so we set to 0 if null
            if (UDB_INTEGRATION == 'coppermine' && $type == 0) {
                $prefill = $cpg_udb->get_user_infos(USER_ID);
            } else {
                $prefill = cpgDB::fetchRow("SELECT sid, title, surename, lastname, street, city, zip, state, phone, country FROM {$CONFIG['TABLE_CS_ADDRESS']}  WHERE type ='" . $type . "'  AND user_id ='" . USER_ID . "' ");
                //FCA 20121228
                //if no shipping address exists, prefill with billing address
                if(empty($prefill)){
                $prefill = cpgDB::fetchRow("SELECT sid, title, surename, lastname, street, city, zip, state, phone, country FROM {$CONFIG['TABLE_CS_ADDRESS']}  WHERE type ='0'  AND user_id ='" . USER_ID . "' ");
                }
            }

            $required = cpgTool::required_fields();
            foreach($prefill as $key => $data) {
                if ($key == 'country') {
                    $data = cpgTool::country_by_code($data);
                }
                if ($key == 'title') {
                    $data = $lang_cs_profile["$data"];
                }
                if ($required[$key] == 1) {
                    $lang_cs_profile[$key] .= "<span class=\"smallfont\"> *</span>";
                }
            }

            $def_array = cpgTool::profile_definition_array();
            $form_data[] = array('select', 'title', $icon_array['blank'] . $lang_cs_profile['title'], cpgTool::profile_titles());
            foreach ($def_array as $key) {
                if ($key == 'country' || $key == 'title') continue;
                $form_data[] = array('input', $key, $icon_array['blank'] . $lang_cs_profile["$key"], 255);
            }
            $form_data[] = array('select', 'country', $icon_array['blank'] . $lang_cs_profile['country'], cpgTool::countries());
            $form_data[] = array('hidden', 'type', $type);

            echo <<<EOT
    <form name="cpgform" id="cpgform" method="post" action="index.php?file=cpgshop/cpgshop_cart&page=edit_address&type={$type}" onsubmit="return checkRegisterFormSubmit();">

EOT;
            starttable($CONFIG['picture_table_width'], $lang_cs_profile[$type], 2);
            HTMLelement::edit_address_form($form_data, $prefill);
            endtable();
            echo <<<EOT
    </form>
EOT;
        }
        return;
    }
Title: cpgShop: french translation
Post by: TheCosmo on December 28, 2012, 03:22:15 pm
Hi Stramm,

Would you be interested in an enhanced french translation? I've seen in basic version of the package a translation file, with some untranslated and other mis-translated items.

As a donation for accessing the full version, would you accept translation files?

Cheers,

Cosmo
Title: Bug in DOMPDF ?! -fixed-
Post by: DesMas on December 28, 2012, 05:25:32 pm
Hi Stramm

It seems like there is an error in the file "dompdf_config.inc.php" which has been modified by you according to the original version of DOMPDF.
There is a typo in here:
Code: [Select]
/**
 * DOMPDF autoload function
 *
 * If you have an existing autoload function, add a call to this function
 * from your existing __autoload() implementation.
 *
 * @param string $class
 */
function DOMPDF_autoload($class) {
  $filename = mb_strtolower($class) . ".cls.php";
  require_once(DOMPDF_INC_DIR . "/$filename");
}

corrected version:
Code: [Select]
function DOMPDF_autoload($class) {
  $filename = DOMPDF_INC_DIR . "/" . mb_strtolower($class) . ".cls.php";
  if(is_file($filename)){
  require_once($filename);
  }
}

But this alone brought also an error up in my implementation of the shop due some mislink.
I checked the version 0.6 of DOMPDF and found that there is a file named "autoload.inc.php" linked with some additional code.
By implementing this into the version of the shop, the autoloader of the class works, so i add here the complete autoloader logic for the file "dompdf_config.inc.php" as replacement:
Code: [Select]
/**
 * DOMPDF autoload function
 *
 * If you have an existing autoload function, add a call to this function
 * from your existing __autoload() implementation.
 *
 * @param string $class
 */
//function DOMPDF_autoload($class) {
//  $filename = mb_strtolower($class) . ".cls.php";
//  require_once(DOMPDF_INC_DIR . "/$filename");
//}
function DOMPDF_autoload($class) {
  $filename = DOMPDF_INC_DIR . "/" . mb_strtolower($class) . ".cls.php";
  if(is_file($filename)){
  require_once($filename);
  }
}
// If SPL autoload functions are available (PHP >= 5.1.2)
if ( function_exists("spl_autoload_register") ) {
  $autoload = "DOMPDF_autoload";
  $funcs = spl_autoload_functions();
 
  // No functions currently in the stack.
  if ( !DOMPDF_AUTOLOAD_PREPEND || $funcs === false ) {
    spl_autoload_register($autoload);
  }
 
  // If PHP >= 5.3 the $prepend argument is available
  else if ( PHP_VERSION_ID >= 50300 ) {
    spl_autoload_register($autoload, true, true);
  }
 
  else {
    // Unregister existing autoloaders...
    $compat = (PHP_VERSION_ID <= 50102 && PHP_VERSION_ID >= 50100);
             
    foreach ($funcs as $func) {
      if (is_array($func)) {
        // :TRICKY: There are some compatibility issues and some
        // places where we need to error out
        $reflector = new ReflectionMethod($func[0], $func[1]);
        if (!$reflector->isStatic()) {
          throw new Exception('This function is not compatible with non-static object methods due to PHP Bug #44144.');
        }
       
        // Suprisingly, spl_autoload_register supports the
        // Class::staticMethod callback format, although call_user_func doesn't
        if ($compat) $func = implode('::', $func);
      }
     
      spl_autoload_unregister($func);
    }
   
    // Register the new one, thus putting it at the front of the stack...
    spl_autoload_register($autoload);
   
    // Now, go back and re-register all of our old ones.
    foreach ($funcs as $func) {
      spl_autoload_register($func);
    }
   
    // Be polite and ensure that userland autoload gets retained
    if ( function_exists("__autoload") ) {
      spl_autoload_register("__autoload");
    }
  }
}
if ( !function_exists("__autoload") ) {
  /**
   * Default __autoload() function
   *
   * @param string $class
   */
  function __autoload($class) {
    DOMPDF_autoload($class);
  }
}

// ### End of user-configurable options ###
Title: view order: missing data
Post by: DesMas on December 29, 2012, 05:48:44 pm
Hi Stramm

It seems there is another little bug in the order display detail page.
The header starts with the back button and a title that should display order number and date.
But due a lack in the language files an the code, this will not happen.
For example it is displayed as
Quote
Details der Bestellung: Bestell-Nr
and not as
Quote
Details der Bestellung: Bestell-Nr 30 vom 28. Dezember 2012 um 15:15
I first thought it was my fault by editing the language file not correctly, but the english translation has the same missing data, so its a general bug.

To fix this, as first the language file needs to be corrected:
As second, an unset variable must be set. Therefore inside the cpgHTML.class.php search for
Code: (PHP) [Select]
                // start with the output of the back button
                starttable($CONFIG['picture_table_width'], $lang_cs_order['order_detail'] . ': ' . sprintf($lang_cs_order['orderid'], $oid, $date)); // .$lang_cs_order['orderid'] . ' ' . $oid . ' - ' . $date);
Replace it with:
Code: (PHP) [Select]
                if($result['time'] != 0) {
                $date = localised_date($result['time'], $lang_date['log']);
                }
                // start with the output of the back button
                starttable($CONFIG['picture_table_width'], $lang_cs_order['order_detail'] . ': ' . sprintf($lang_cs_order['orderid'], $oid, $date)); // .$lang_cs_order['orderid'] . ' ' . $oid . ' - ' . $date);
(It should exist two times, one in the history function and one in the order function, both need to be corrected as far as i can see)

Little remark at the end:
From my point of view the textarea field for the additional info the user may have added is wasting some possible space. This can be fixed by increasing the line number for it.

Therefore inside the cpgHTML.class.php search for
Code: (PHP) [Select]
'{TEXTFIELD}' => HTMLElement::text_area('additional_info', $additional_info, 50, 4)
and replace it with
Code: (PHP) [Select]
'{TEXTFIELD}' => HTMLElement::text_area('additional_info', $additional_info, 50, 8)
little image attached how it shouls look like :)
Title: additional user data for invoice
Post by: DesMas on December 30, 2012, 03:30:16 pm
Hi Stramm

I'm working atm on the invoice the user will be send via mail, and if enabled with pdf attachment.
It would be nice, if some more elements of the user data are available, like surename and lastname.

I therefore extended the function "cpgshop_order_confirmation_mail" inside the "cpgTool.class.php".
marked with
Quote
//FCA 20121230 added
Code: (PHP) [Select]
//send email to customer
$html_mail = cpgTemplate::set(html_entity_decode($MAIL['email_checkout_user_html']), array(
'{DATE}' => localised_date(-1, $lang_date['register']),
'{CUSTOMER_ADDRESS}' => $billing_address_html,
'{SITENAME}' => $CONFIG['gallery_name'],
'{TITLE}' => $billing_user_title,
'{LASTNAME}' => $user_data['lastname'],
'{ORDER_ID}' => $oid,
'{PAYMENT}' => $payment_info_html,
'{LINK}' => $link_html,
'{SHOP_ADDRESS}' => html_entity_decode($MAIL['email_checkout_address_html']),
'{CART}' => $cart_html,
//FCA 20121230 added
'{LASTNAME}' => $user_data['lastname'],
'{SURENAME}' => $user_data['surename'],
'{CUSTOMER_ID}' => $user_id,
));
$txt_mail = cpgTemplate::set(html_entity_decode($MAIL['email_checkout_user_txt']), array(
'{DATE}' => localised_date(-1, $lang_date['register']),
'{CUSTOMER_ADDRESS}' => str_replace("<br>", "\n", $billing_address_html),
'{SITENAME}' => $CONFIG['gallery_name'],
'{TITLE}' => $billing_user_title,
'{LASTNAME}' => $user_data['lastname'],
'{ORDER_ID}' => $oid,
'{PAYMENT}' => $payment_info_txt,
'{LINK}' => $link_txt,
'{SHOP_ADDRESS}' => html_entity_decode($MAIL['email_checkout_address_txt']),
'{CART}' => $cart_txt,
//FCA 20121230 added
'{LASTNAME}' => $user_data['lastname'],
'{SURENAME}' => $user_data['surename'],
'{CUSTOMER_ID}' => $user_id,
));

require_once('include'.DS.'mailer.inc.php');
if($CONFIG['cpgshop_pdf_invoice']){
require_once('plugins'.DS.'cpgshop'.DS.'libs'.DS.'pdf'.DS.'dompdf_config.inc.php');

$pdf_mail = cpgTemplate::set(html_entity_decode($MAIL['email_checkout_user_pdf']), array(
'{DATE}' => localised_date(-1, $lang_date['register']),
'{CUSTOMER_ADDRESS}' => $billing_address_html,
'{SITENAME}' => $CONFIG['gallery_name'],
'{TITLE}' => $billing_user_title,
'{LASTNAME}' => $user_data['lastname'],
'{ORDER_ID}' => $oid,
'{PAYMENT}' => '',
'{SHOP_ADDRESS}' => html_entity_decode($MAIL['email_checkout_address_html']),
'{CART}' => $cart_html,
//FCA 20121230 added
'{LASTNAME}' => $user_data['lastname'],
'{SURENAME}' => $user_data['surename'],
'{CUSTOMER_ID}' => $user_id,
));
Would be nice if these addition will make it into the next release.
Title: cpgShop - DOMPDF 0.6
Post by: DesMas on December 31, 2012, 01:53:37 pm
Hi Stramm

I just replaced the DOMPDF implementation of version 0.5.1 with 0.6.0beta3 and it seems to be running nearly fine out of the box.
This allows more detailed CSS controlled invoices :)

So my post earlier from the 28th becomes partly obsolete if you would implement that release of DOMPDF in your next shop release.

ATM i have some trouble with the basepath that can be set. Seems not to be working correctly, but i'm on it...
Title: Re: cpgShop - a PayPal shopping cart
Post by: Phill Luckhurst on January 03, 2013, 03:36:32 pm
Feel free to contribute your work DesMas.
Title: Re: cpgShop - a PayPal shopping cart
Post by: DesMas on January 05, 2013, 09:32:51 pm
Hi Stramm

I'm still at to point to build up a complete invoice as PDF that satisfies the given law restrictions; and by this also has a nice layout..
Therefore i have come to the conclusion, that th shop should have an extra section in the "cpgShop configuration", that gives the admin the possibility to declare some properties for a more dynamically usage inside the generated mails and invoice.

To solve this a few files have to be modified:
- First, the admin.inc.php need a new subarray inside the config_data array:
Code: (PHP) [Select]
'cpgshop_shopcontact' => array(
'cpgshop_shopcontact_name' => array(
'type' => 'textfield',
),
'cpgshop_shopcontact_street' => array(
'type' => 'textfield',
),
'cpgshop_shopcontact_zip' => array(
'type' => 'textfield',
),
'cpgshop_shopcontact_city' => array(
'type' => 'textfield',
),
'cpgshop_shopcontact_phone' => array(
'type' => 'textfield',
),
'cpgshop_shopcontact_fax' => array(
'type' => 'textfield',
),
'cpgshop_shopcontact_mobile' => array(
'type' => 'textfield',
),
'cpgshop_shopcontact_mail' => array(
'type' => 'textfield',
),
),

- This will also need some new language tags, which i added to $lang_cs_config array inside the german.php.
(for other languages this has to be redone)
Code: (PHP) [Select]
'cpgshop_shopcontact' => "erweiterte Kontakdaten",
'cpgshop_shopcontact_name' => "Name / Ansprechpartner",
'cpgshop_shopcontact_street' => "Strasse",
'cpgshop_shopcontact_zip' => "Postleitzahl",
'cpgshop_shopcontact_city' => "Stadt",
'cpgshop_shopcontact_phone' => "Tel-Nr.",
'cpgshop_shopcontact_fax' => "Fax",
'cpgshop_shopcontact_mobile' => "Mobil",
'cpgshop_shopcontact_mail' => "E-Mail",

- As third we need some new fields inside the database table for the config, which can be simply done with
Code: (SQL) [Select]
Insert into cpg_cpgshop_config (`name`,`value`) Values
('cpgshop_shopcontact_name', ''),
('cpgshop_shopcontact_street', ''), 
('cpgshop_shopcontact_zip', ''),
('cpgshop_shopcontact_city', ''),
('cpgshop_shopcontact_phone', ''),
('cpgshop_shopcontact_fax', ''),
('cpgshop_shopcontact_mobile', ''), 
('cpgshop_shopcontact_mail', '');

Now we have a new section inside the configuration to define values for this :)

To bring them to live inside the mails the function "cpgshop_order_confirmation_mail()" inside the "cpgTool.class.php" needs some extension.
As in a earlier post it are the variables "$html_mail", "$txt_mail", "$pdf_mail" where we need to extend with:
Code: (PHP) [Select]
'{SHOP_MAIL}' => $CONFIG['cpgshop_notify_email'],
'{SHOP_ROUTING}' => $CONFIG['cpgshop_wire_routing'],
'{SHOP_ACCOUNT}' => $CONFIG['cpgshop_wire_account'],
'{SHOP_BANK}' => $CONFIG['cpgshop_wire_bank'],
'{SHOP_SWIFT}' => $CONFIG['cpgshop_wire_swift'],
'{GALLERY_NAME}' => $CONFIG['gallery_name'],
'{SHOP_NAME}' => $CONFIG['cpgshop_shopcontact_name'],
'{SHOP_STREET}' => $CONFIG['cpgshop_shopcontact_street'],
'{SHOP_ZIP}' => $CONFIG['cpgshop_shopcontact_zip'],
'{SHOP_CITY}' => $CONFIG['cpgshop_shopcontact_city'],
'{SHOP_PHONE}' => $CONFIG['cpgshop_shopcontact_phone'],
'{SHOP_FAX}' => $CONFIG['cpgshop_shopcontact_fax'],
'{SHOP_MOBILE}' => $CONFIG['cpgshop_shopcontact_mobile'],
'{SHOP_MAIL}' => $CONFIG['cpgshop_shopcontact_mail'],

With this we now have the ability to use these {} tags inside the documents "email_checkout_user_pdf" as well as "email_checkout_address_html"

By adding this i noticed that there is atm no tag existing for the invoice date, that is listing the correct date if the admin is resending the invoice.
To fix this, the function "cpgshop_order_confirmation_mail()" inside the "cpgTool.class.php" need again to be extended.

Directly below the line:
Code: (PHP) [Select]
$user_info = $cpg_udb->get_user_infos($user_id);

i added the following:
Code: (PHP) [Select]
$result = cpgDB::fetchRow("SELECT time FROM {$CONFIG['TABLE_CS_ORDER']} WHERE oid='" . $oid . "' LIMIT 1;");
$orderDate = $result['time'];
mysql_free_result($result);

Now we can use the date for a tag inside the variables "$html_mail", "$txt_mail", "$pdf_mail" where we ad it as
Code: (PHP) [Select]
'{ORDER_DATE}' => localised_date($orderDate, $lang_date['register']),

I'm looking forward that u will find this extension idea useful and transfer them into your source code.

I think i will add a pdf example for an invoice and the html source the next days that show the results :)

//EDIT 06.01.2013
It seems that the wire data for the shop config is missing also an IBAN field.
To add this only a few things need to be adjusted:
- inside the language file (here german.php) add the following entry to the $lang_cs_config array
Code: (PHP) [Select]
'cpgshop_wire_iban' => "IBAN",
as it seems, the language file is there not totally free of redundancy, so a corresponding entry should also be added to the $lang_cs_cart array:
Code: (PHP) [Select]
'wire_iban' => "IBAN",

- inside the admin.inc.php add the following code snippet
Code: (PHP) [Select]
'cpgshop_wire_iban' => array(
  'type'      => 'textfield',
),
below this snipped:
Code: (PHP) [Select]
'cpgshop_wire_bank_address' => array(
  'type'      => 'textfield',
),

- now we only need a database field entry for the config which can be created via the phpadmin console with
Code: (SQL) [Select]
Insert into cpg_cpgshop_config (`name`,`value`) Values('cpgshop_wire_iban', '')

- as the wire information is loaded dynamically, only the html processing thank_you() inside the cpghtml.class.php need to be extended a little (marked with  //FCA 20130106 added):
Code: (PHP) [Select]
// atm we just need that to populate the paypal button
            switch ($cpgshop->profile['gateway']['method']) {
                case ('paypal'):
                    $billing_extra_info = "{$LINEBREAK}<div align=\"center\">" . HTMLElement::paypal_button($oid) . "</div>";
                    break;
                case ('wire'):
                    $billing_info_array = array($lang_cs_cart['wire_routing'] . ':' => html_entity_decode($CONFIG['cpgshop_wire_routing']),
                        $lang_cs_cart['wire_account'] . ':' => html_entity_decode($CONFIG['cpgshop_wire_account']),
                        $lang_cs_cart['wire_bank'] . ':' => html_entity_decode($CONFIG['cpgshop_wire_bank']),
                        $lang_cs_cart['wire_bank_address'] . ':' => html_entity_decode($CONFIG['cpgshop_wire_bank_address']),
                        $lang_cs_cart['wire_swift'] . ':' => html_entity_decode($CONFIG['cpgshop_wire_swift']),
                        //FCA 20130106 added
                        $lang_cs_cart['wire_iban'] . ':' => html_entity_decode($CONFIG['cpgshop_wire_iban']),
                        );
                    $gateway_extra_text .= "</td></tr><tr><td><table width=\"80%\"align=\"center\">";
                    foreach($billing_info_array as $key => $data) {
                        if ($key)
                            $gateway_extra_text .= "<tr><td width=\"50%\" align=\"right\"><strong>{$key}</strong></td><td width=\"50%\">{$data}</td></tr>\n";
                    }

                    $gateway_extra_text .= "</table></td></tr><tr><td class=\"thank_you\">";

                    break;
                case ('cod'):
                    break;
                default: ;
            //free download
            $billing_extra_info = "{$LINEBREAK}<div align=\"center\">" . $lang_cs_cart['free_download'] . "</div>";
            } // switch
Title: Re: cpgShop - a PayPal shopping cart
Post by: kristade on January 06, 2013, 06:57:13 pm
Hi Stramm,

I am new to Coppermine and new to your shopping cart.  I tried to read through the forum to see if this question had been asked, but I did not see it.

I am going to be doing custom engraving for the customers and was wondering if there was a spot for the customer to leave  "custom text" for up to 4 lines of engraving? I hope this makes sense to you.

Thanks in advance for any help
Krista

Title: Re: cpgShop - a PayPal shopping cart
Post by: DesMas on January 07, 2013, 08:55:31 pm
Hi Stramm,

I am new to Coppermine and new to your shopping cart.  I tried to read through the forum to see if this question had been asked, but I did not see it.

I am going to be doing custom engraving for the customers and was wondering if there was a spot for the customer to leave  "custom text" for up to 4 lines of engraving? I hope this makes sense to you.

Thanks in advance for any help
Krista

Hi Krista

From my point of view of the code, there is no option to enter a "per image text" for the "item/picture" to purchase.
ATM there is only an option for the user to leave a custom message per order at the end of the "order process".
Title: Re: cpgShop - a PayPal shopping cart
Post by: DesMas on January 13, 2013, 06:32:05 pm
Hi Stramm

while creating the style of the invoice pdf i noticed, that the system does not support an invoice number for the created pdf files.
Due to the fact that most shop systems use their own syntax, i implemented a field inside the configuration to define a sinple syntax depending on the existing data.

What we need for this is:
- a little SQL tp extend the configuration
Code: (SQL) [Select]
INSERT INTO cpg_cpgshop_config( `name` , `value` )
VALUES (
'cpgshop_order_invoice_number', ''
)


- an extra field description in the admin.inc.php
add below
Code: (PHP) [Select]
'cpgshop_customer_cancel' => array(
  'type'          => 'radio',
  'options'       => array(
  $lang_cs_config['no'],
  $lang_cs_config['yes'],
  ),
),
the following:
Code: (PHP) [Select]
'cpgshop_order_invoice_number' => array(
'type'      => 'textfield',
),

- now we need some text in the language file for it (here german.php), added to the "$lang_cs_config" array
Code: (PHP) [Select]
'cpgshop_order_invoice_number' => "Rechnungsnummer. Sie können folgende Platzhalter verwenden: {CUSTOMER_ID} {ORDER_ID}, [YY]",

- To bring them to live inside the mail, the function "cpgshop_order_confirmation_mail()" inside the "cpgTool.class.php" needs some extension.
As in a earlier post it are the variables "$html_mail", "$txt_mail", "$pdf_mail" that need to be extended with:
(Add this as first entry to each array to be sure the placeholders inside will be replaced correctly)
Code: (PHP) [Select]
'{INVOICE_NUMBER}' => str_replace("[YY]", date("y"), $CONFIG['cpgshop_order_invoice_number']),

In the shop configuration, the invoice number can no be customized, f.ex like: "{CUSTOMER_ID}-IV-[YY]{ORDER_ID}"
This allows the admin to specify a number mixed out of fixed text, order-id, customer-id and a 2-digit year.

As posted earlier i add the html an css code to style a nicely invoice sheet:
- code for the document "email_checkout_user_pdf" (plz note that the css file has no relative path due to some lack in the basepath logic of DOMPDF that i could not resolve till now):
Code: (HTML) [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link media="all" type="text/css" rel="stylesheet" href="http://192.168.0.220/SSG3/coppermine/plugins/cpgshop/css/invoice.css">
</head>
<body>
<div id="head">
<div class="left w50percent text-center">
<img src="http://192.168.0.220/SSG3/coppermine/plugins/cpgshop/images/invoiceLogo.jpg" />
</div>
<div class="right w50percent">
{SHOP_ADDRESS}
</div>
<div class="w100percent clear">
<span class="addressline">{SHOP_NAME} - {SHOP_STREET} {SHOP_ZIP} {SHOP_CITY}</span>
</div>
<div class="w45percent left border">
<p class="text-left m5px">
{CUSTOMER_ADDRESS}
</p>
</div>
<div class="w45percent right border">
<p class="text-center">
<span class="text16px bold">Rechnung</span>
</p>
<p class="text-left m5px">
<table>
<tr>
<td>Rechnung-Datum:</td>
<td>{ORDER_DATE}</td>
</tr>
<tr>
<td>Rechnung-Nr:</td>
<td>{INVOICE_NUMBER}</td>
</tr>
<tr>
<td>Kunden-Nr:</td>
<td>{CUSTOMER_ID}</td>
</tr>
<tr>
<td>Bestell-Nr:</td>
<td>{ORDER_ID}</td>
</tr>
</table>
</p>
</div>
</div>
<div id="cart">
<div class="w100percent">
<p class="text-left">
<span class="text16px bold">Bestelldaten</span>
</p>
</div>
<table width="w100percent">{CART}</table>
</div>
<div id="footer">
<p class="text-left">
Frei von Umsatzsteuer gem. §19 Abs. 1 UStG.<br />
Zahlungsweise: Gesamtsumme ohne Abzüge innerhalb von 14 Tagen nach Rechnungszustellung
<br />
</p>
<table style="width: 100%">
<tr>
<td>E-Mail: {SHOP_MAIL}</td>
<td>Tel.: {SHOP_PHONE}</td>
<td>Fax: {SHOP_FAX}</td>
<td>Mobil: {SHOP_MOBILE}</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<td>Bank: {SHOP_BANK}</td>
<td>Kto: {SHOP_ACCOUNT}</td>
<td>BLZ: {SHOP_ROUTING}</td>
<td>SWIFT: {SHOP_SWIFT}</td>
<td>IBAN: {SHOP_IBAN}</td>
</tr>
</table>
</div>
</body>
</html>

- the placeholder "{SHOP_ADDRESS}" is defined in the document "email_checkout_address_html"
Code: (HTML) [Select]
<p class="text-right">
<span class="shopname">{GALLERY_NAME}</span>
</p>
<p class="text-right">
<span class="shopaddress">
{SHOP_NAME}<br />
{SHOP_STREET}<br />
{SHOP_ZIP} {SHOP_CITY}
</span>
</p>
<p class="text-right">
<span class="shopcontact">
Tel.: {SHOP_PHONE}<br />
Fax.: {SHOP_FAX}<br />
Mobil: {SHOP_MOBILE}<br />
E-Mail: {SHOP_MAIL}
</span>
<p class="text-right">
<span class="shopcontact">
Kto: {SHOP_ACCOUNT} BLZ: {SHOP_ROUTING} Bank: {SHOP_BANK}
</span>
</p>

- The CSS file is located inside the css folder of the cpgshop (coppermine/plugins/cpgshop/css):
Code: (CSS) [Select]
html, body {
margin : 0;
padding : 0;
}

/* print margins */
body {
margin-left : 50px;
margin-right : 40px;
margin-top : 40px;
margin-bottom : 40px;
font-family : Verdana,Geneva,Arial,sans-serif;
font-size : 14px;
font-weight : normal;
}
/* specific tags */
#head {
width : 100%;
height : 400px;
overflow : auto;
display : block;
}
.logo {
background-image : url("http://192.168.0.220/SSG3/coppermine/plugins/cpgshop/images/invoiceLogo.jpg");
background-repeat : no-repeat;
background-position : top center;
height : 220px;
}
span.shopname {
font-weight : bold;
margin-bottom : 10px;
}
span.shopcontact {
margin-bottom : 10px;
}
span.addressline {
font-size : 9px;
text-decoration : underline;
margin-bottom : 10px;
display : block;
}
#cart {
width : 100%;
overflow : auto;
}
#footer {
position : fixed;
bottom : 70px;
height : 70px;
border-top : 2px ridge #000;
overflow : auto;
display : block;
width : 100%;
}
/* general tags */
p {
margin : 0px;
padding : 0px;
margin-bottom : 5px; 
}
.left {
float: left;
}
.right {
float: right;
}
.clear {
clear: both;
}
.w45percent {
width: 45%;
}
.w50percent {
width: 50%;
}
.w100percent {
width: 100%;
}
.border {
border: 1px solid #000;
}
.text-right {
text-align: right;
}
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}
.text10px {
font-size: 10px;
}
.text12px {
font-size: 12px;
}
.text14px {
font-size: 14px;
}
.text16px {
font-size: 16px;
}
.normal {
font-weight: normal;
}
.bold {
font-weight: bold;
}
.m5px {
margin: 5px;
}

Plz note:
- this invoice sheet is only rendered correctly with DOMPDF >= 0.6.0
- relative path to the css file sees not to work
- background images of <div> tags seem not to work, so use an <img> tag for logos, etc
Title: Re: cpgShop - a PayPal shopping cart
Post by: mikezeta on February 20, 2013, 04:12:40 am
Hi Stramm

please send me a PM about donation for a full version.

Thank you

Best regards,
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on February 25, 2013, 02:53:13 pm
Hi DesMas,
thanks for your efforts. I'll check into your changes and move everything working smooth into my cvs so it's included into the next version of the shop.

Thomas
Title: Re: cpgShop - a PayPal shopping cart
Post by: gmc on March 19, 2013, 03:05:10 am
Hi Stramm,
Thank you for your work on this plugin..
I've installed it to my gallery - and having a couple of issues:

When registering a new user - enter country, name, address, etc - yet when going to checkout, that information wasn't saved and has to be re-entered... Once entered during checkout, it seems to be saved for future.
I would expect this information to be saved during registration since it is prompted for.

If Cash on Delivery - Enable COD fee is set to no - a fee is still displayed when selecting COD unless COD fee is also set to 0... (It isn't added in to the final cart, but I would expect if the fee was not enabled, any specified fee value would be ignored?)

I want the user to have a choice of standard shipping or pickup...
I set options as:
   Parcel delivery settings:
   Enable a fee for standard delivery    Yes
   Fee for standard delivery       4.00
   Customers can pickup their items    Yes
   Enable pickup fee          No | Yes (I tried both values)
   Pickup fee             0.00   
The user doesn't seem to have a way to select pickup over shipping??

Notes on mods made:
In this gallery, I will only have ordering enabled for select albums - most people won't see it - so I didn't want the cart buttons on every page...
A quick mod to codebase.php (starting at line 267 of 1_0_4 version) only displays the cart buttons if there is something in them.
  //Add view cart & checkout buttons
  //* GMC - alter compare to suppress cart and checkout buttons if cart is empty..
  //* GMC if ($item_in_cart > -1 && $CONFIG['cpgshop_enable']) {
  if ($item_in_cart > 0 && $CONFIG['cpgshop_enable']) {  //* GMC changed compare to > 0
It does mean a user must have something in the cart to get the button to view their history - but worth the tradeoff I think.
(Would be nice to have a config option to show/not show these buttons based on empty cart...)

English language file (lang/english.php) updated to change text for 'Surename' to 'First name' (3 places) (someone mentioned this in earlier post - but seemed it hadn't been updated in the 1_0_4 zip file attahced to first post.)

Gallery info:
My gallery is at http://greggallery.gmcdesign.com  running Version 1.5.22
Plugins: minicms and shopcpg
Mods: cpmfetch
Test id: cpgtest  (non-admin)
Test pwd: testcpg
Ordering is ONLY turned on in a SINGLE album right now... Under 'Sporting Events' Album '2011 Coach Eric's 14U'.
Based on mod above - the cart buttons won't appear until an item is added to the cart.

Thanks for any help/suggestions you can provide.
Greg
Title: Re: cpgShop - a PayPal shopping cart
Post by: bladerunner on March 26, 2013, 10:04:19 pm
italian translation front and back
Title: Re: cpgShop - a PayPal shopping cart
Post by: hunterjo2 on April 13, 2013, 05:32:42 pm
Hi Stramm,

I am getting the following error after upgrading to 1.5.22 and upgrading cpgshop

Fatal error: Undefined class name 'self' in /rallyimage.com/gallery/plugins/cpgshop/libs/HTMLelement.class.php on line 806

Any ideas?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on April 13, 2013, 07:07:15 pm
You're still on PHP4?
Title: Re: cpgShop - a PayPal shopping cart
Post by: azzy768 on April 24, 2013, 04:50:06 pm
Hi Guys, can anyone help please. I've set up coppermine 1.5.20 and cpgshop 1.0.3. Everything appears to be working ok except:
1. with multiple purchases which have a weight addition value - the value only shows for one purchase at the gateway stage and then in the total price.
2. The country charge shows correctly at the gateway stage but does not appear in the next stage in the total price.

Has anyone else come across this and found a solution? Please help!
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on May 06, 2013, 10:31:53 am
Hi Stramm

or anybody else who might have an answer

I have been having trouble with the registration of customers on the webshop on my website

http://www.boesenfoto.dk/gallery/index.php

The user register in Coppermine which works fine. Then they add photos and go to the check out procedure. On the first page, they are told that the address etc is missing (it is a shame that it just doesn't copy from the original registration). Then they enter all the information again hit next page only to be informed that the information is still missing.

If I just hit next anyway and procede to finalize the order... I get an error saying there is a problem with the address and it has been changed. Go back...

I have deleted the cpgshop and reinstalled it... version 1.0.4... But the problem remains...

Any suggestions?

BR, Michael
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on May 06, 2013, 11:09:30 am
And another question... When I delete a user, then he still appears on the user list. At least until I have logged out and in again...

Probably a cookie thing, but stills strikes me odd

Still on

http://www.boesenfoto.dk/gallery/

BR Michael
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on May 06, 2013, 11:13:48 am
And another question... When I log out and the Shopping cart still appears to have photos in it. I go to the cart, choose delete photo and hit edit cart. Then I just get the message that the cart is empty...

Probably a cookie thing, but stills strikes me odd

Still on

http://www.boesenfoto.dk/gallery/

BR Michael
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on May 06, 2013, 01:56:26 pm
Just a small thing I have been noticing and maybe I am wrong since nobody has mentioned it... but as I believe

Surename (Surname) is actually the same as "Last Name"....

Correctly is should be "First Name"...

Just in case you want it corrected in future updates
Title: Re: cpgShop - a PayPal shopping cart
Post by: computel on May 08, 2013, 08:53:24 am
Not sure how to setup items and prices here is what my old cart looked like on 14.25 of copermine

Please help as the items and prices are not working for me as I really don't get the price manager, Price Set Manager and Option Manager & Option Set Manager.

I just want to sell Photo's and images on CD

Thanks
Title: Re: cpgShop - a PayPal shopping cart
Post by: MapleKing on May 30, 2013, 10:23:57 pm
Hi Stramm,

I'm interested in creating a download site - can you PM me about making a donation for the full version?  Thx.
Title: Re: cpgShop - a PayPal shopping cart
Post by: g.witton on June 23, 2013, 02:03:53 pm
Hi Stramm,
I'm trying to setup cpgShop and i having trouble working out how the price structure works, and how i can get it to work for me.

The documentation link is broken, im sure you have the structure in this.

Can you send me a PM on full version & a link to download the documentation so i can try and configure the price structure to work for my needs.

Many thanks
Title: Re: cpgShop - a PayPal shopping cart
Post by: MarioLaul on June 28, 2013, 12:21:04 pm
how does works download choise for price set?

people how bought picture don't download picture, what is wrong?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Dj-Viper on June 30, 2013, 09:25:31 pm
Hi,

Is it possible with this plugin too :

Vistors can order without registering to gallery ?
Instead of using paypal that the order is just send with email to me so i can handle all things ?

Greetings, Anne
Title: Re: cpgShop - a PayPal shopping cart
Post by: kotazzu on July 30, 2013, 07:57:14 pm
Hello Stramm,
I'm trying to build a site for selling my photos.
Please contact me privately.
K
Title: Re: cpgShop - a PayPal shopping cart
Post by: Aeronautic on August 09, 2013, 12:35:54 am
The documentation page link in the original post is returning a 404 error for me. Same for the changelog linked. Are there new links for these I missed in the six pages of this thread?

Thank you!
Title: Re: cpgShop - a PayPal shopping cart
Post by: tenacjed on August 09, 2013, 01:21:44 am
Does anyone have the documentation for this plugin, links do not work as others have stated.

Really appreciate the work that has been done with this plugin, love it. 

The only thing I was wondering is if it is possible to not require registration to my site to use the cart?  I do not want to save carts, I just want someone as a guest to be able to add items to cart and then direct that to paypal without logging into my site.


Thanks for any help or feedback,

John W
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on August 09, 2013, 09:54:20 am
A new wiki will be up soon
Title: Re: cpgShop - a PayPal shopping cart
Post by: tenacjed on August 11, 2013, 05:26:35 pm
I believe I found a new bug.  Receive the following error and debug info when attempting a search when the cpgShop plugin is installed.  When I removed the plugin the error went away.  Happens as guest or when logged in.

Critical error

There was an error while processing a database query.

File: /home1/waggone1/public_html/gallery2/include/functions.inc.php - Line: 272 

While executing query 'SELECT COUNT(*) FROM cpg_pictures AS p
            LEFT JOIN `waggone1_copp1`.cpg_users AS u ON p.owner_id = u.user_id
            WHERE ((keywords LIKE '%brown%' OR title LIKE '%brown%' OR caption LIKE '%brown%')) AND approved = 'YES' ' in include/search.inc.php on line 267

mySQL error: Column 'title' in where clause is ambiguous


Debug Output: show / hide
 
Notices   
/plugins/mass_import/codebase.php•Notice line 22: Use of undefined constant GALLERY_ADMIN_MODE - assumed 'GALLERY_ADMIN_MODE'
 
/plugins/cpgshop/libs/cpgTool.class.php•Notice line 212: Undefined variable: fileORcontent
 
/plugins/cpgshop/codebase.php•Notice line 259: Undefined property: cpgShop::$cart
 
/include/search.inc.php•Notice line 34: Undefined index: owner_name
 
Title: Re: cpgShop - a PayPal shopping cart
Post by: tenacjed on August 14, 2013, 01:12:10 am
I have verified that the search issue that is caused by cpgShop is from the title field within the cpgUsers table.  Once I removed this entry from the database the error went away.  Of course now cpgShop does not work, lol.  It looks like there is a conflict with the field being named title since coppermine uses this field in the database already. Also if I do a search with deselecting the title field the error does not happen either.

Is there anyway to get this bug fixed?  I know that the title field is referenced in most of the files for this plugin.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on August 14, 2013, 08:11:39 am
in search.inc.php within the query try using p.title instead of title
Title: Re: cpgShop - a PayPal shopping cart
Post by: tenacjed on August 16, 2013, 12:59:03 am
Stramm... Thank You!!!

I was not sure where to modify title within the file, so I ended up modifying a little here and there and eventually the error went away and the results that showed worked properly.  I think I ended up modifying every entry from title to p.title except for the very first entry in the file.

Thank you again!

John W
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on August 18, 2013, 10:54:08 pm
Have been trying to ask several questions in here, because I am having so many issues with the cpgshop.... Apparently I guess there are nothing to do....

But one last try

A customer just gave up and send me the following screendump

Nothing really works.... Can you give me any idea what it can be? Or should I just disable the shop?

THe shop is used here

http://www.boesenfoto.dk/gallery/


Title: Re: cpgShop - a PayPal shopping cart
Post by: tenacjed on August 21, 2013, 06:56:06 pm
I was having the same problem when I first setup my cart.  I went through and configured all the settings that I wanted, even settings I was not planning on using.  It is most likely a setting is disabled, but you still configured it.  I ended up uninstalling the cart, then installing it again.  I only set the bare minimum settings to get everything up and running like Stramm has suggested to others.  I was able to get it up and running at that point, and only configured a couple of more settings after that to get the cart working like I wanted.


Have been trying to ask several questions in here, because I am having so many issues with the cpgshop.... Apparently I guess there are nothing to do....

But one last try

A customer just gave up and send me the following screendump

Nothing really works.... Can you give me any idea what it can be? Or should I just disable the shop?

THe shop is used here

http://www.boesenfoto.dk/gallery/
Title: Re: cpgShop - a PayPal shopping cart
Post by: tenacjed on August 21, 2013, 07:10:32 pm
Sorry, couldn't figure out how to modify an existing post, and don't want to spend too much time looking.  This is the post from Stramm on the basic configuration to get it up and running with bare minimum settings.  I followed this, and once working modified a couple of more items to get the cart working.  I did not touch any settings that I did not care about.

To make th first steps with the shop start it simple. Use 'print' images, add three prices and group them into a set. Later add options, set some prices for downloads etc.

At that time I suggest to restart with prices and a group. If the problem persists, let me know.



I was having the same problem when I first setup my cart.  I went through and configured all the settings that I wanted, even settings I was not planning on using.  It is most likely a setting is disabled, but you still configured it.  I ended up uninstalling the cart, then installing it again.  I only set the bare minimum settings to get everything up and running like Stramm has suggested to others.  I was able to get it up and running at that point, and only configured a couple of more settings after that to get the cart working like I wanted.
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on August 22, 2013, 10:22:08 am
Thank you so much for taking your time to help...

My host have looked into the problems and wrote back about some Private Caching, which should be turned off now..

I still had problems with the shop. Something about inconsistant data. Figured out that happened because I allowed only Wire Transfer and turned the other options off. Apparently that is not a good idea ;-)

Seems to be working now... keeping my fingers crossed
Title: Re: cpgShop - a PayPal shopping cart
Post by: staniwr on September 17, 2013, 07:54:49 am
Hey Stramm, I want to donate to get the full version.  I need to PayPal IPN ...
Title: Re: cpgShop - a PayPal shopping cart
Post by: sntechsnaps on October 13, 2013, 07:49:26 pm
Hi all,

Recently updated MySQL to 5.6.14 and CPGShop is now showing an error when customers go to complete an order:

Critical error
There was an error while processing a database query

While executing query 'INSERT INTO `cpg15x_cpgshop_order`
                   (`oid`, `user_id`, `user_name`, `gross`, `item_count`, `cart`, `profile`, `time`, `status`, `txnid`, `payment`, `delivery`, `tax`, `log`, `note`, `tos`, `cdown`, `cship`, `paid`, `sent`, `new`, `archive`)
                   VALUES
                   ('','1', 'administrator', '41.48', // edited to remove name and address details etc // '1', '0', '1', '', '', '1', '1');' in plugins\cpgshop\libs\cpgDB.class.php on line 24

mySQL error: Incorrect integer value: '' for column 'oid' at row 1

Any ideas how I can fix this?
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on November 06, 2013, 10:13:21 am
Hello

I have been trying to see the documentation, but ends up with some download or watch option, that looks strange...

So here is my question. I have tried to activivate the possibility to download purchased images. It all seems to work ok and I get an email with a link and a password to my download directory...

But where do I locate that Directory???

The site is:
http://boesenfoto.dk/gallery/index.php

Thanks in advance...
Title: Re: cpgShop - a PayPal shopping cart
Post by: DesMas on November 12, 2013, 08:14:25 pm
Hi all,

Recently updated MySQL to 5.6.14 and CPGShop is now showing an error when customers go to complete an order:

Critical error
There was an error while processing a database query

While executing query 'INSERT INTO `cpg15x_cpgshop_order`
                   (`oid`, `user_id`, `user_name`, `gross`, `item_count`, `cart`, `profile`, `time`, `status`, `txnid`, `payment`, `delivery`, `tax`, `log`, `note`, `tos`, `cdown`, `cship`, `paid`, `sent`, `new`, `archive`)
                   VALUES
                   ('','1', 'administrator', '41.48', // edited to remove name and address details etc // '1', '0', '1', '', '', '1', '1');' in plugins\cpgshop\libs\cpgDB.class.php on line 24

mySQL error: Incorrect integer value: '' for column 'oid' at row 1

Any ideas how I can fix this?

Hi

That may be related with one of the mysql 5.6 changed to auto increment columns => problem here the '' for the oid column should be set to null

Try to change the query defined in plugins\cpgshop\libs\cpgHTML.class.php @ line 944 to
Code: (PHP) [Select]
$result = cpgDB::runQuery("INSERT INTO `{$CONFIG['TABLE_CS_ORDER']}`
    (`oid`, `user_id`, `user_name`, `gross`, `item_count`, `cart`, `profile`, `time`, `status`, `txnid`, `payment`, `delivery`, `tax`, `log`, `note`, `tos`, `cdown`, `cship`, `paid`, `sent`, `new`, `archive`)
    VALUES
    (NULL,'" . USER_ID . "', '" . USER_NAME . "', '" . (float)$gross . "', '" . (int)$item_count . "', '" . serialize($cpgshop->cart) . "','" . serialize($cpgshop->profile) . "','" . $time . "', 'ordered', '', '" . $cpgshop->profile['gateway']['method'] . "', '" . $cpgshop->profile['delivery']['method'] . "', '" . (float)$CONFIG['cpgshop_tax_fee'] . "', '', '$additional_info', '" . $tos . "', '" . $download . "', '" . $shipping . "', '', '', '1', '1');");

Note: not tested yet.
Title: Re: cpgShop - a PayPal shopping cart
Post by: DesMas on November 12, 2013, 08:44:52 pm
Hello

I have been trying to see the documentation, but ends up with some download or watch option, that looks strange...

So here is my question. I have tried to activivate the possibility to download purchased images. It all seems to work ok and I get an email with a link and a password to my download directory...

But where do I locate that Directory???

The site is:
http://boesenfoto.dk/gallery/index.php

Thanks in advance...

Hi

The gallery creates an download folder inside the /albums directory (config variable 'fullpath') if not existing
Then creates inside a folder named like "UserId"_"OrderId"

Does this help you?
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on November 13, 2013, 10:43:03 am
Hi

The gallery creates an download folder inside the /albums directory (config variable 'fullpath') if not existing
Then creates inside a folder named like "UserId"_"OrderId"

Does this help you?

I receive an email with username and password and a link. When clicking the link it just open a blank version og my Coppermine Gallery. No directory....

I located an folder called download on my FTP with a subfolder called gallery/albums/downloads/1_51 with a index.html file.. Entering that url... I get the opportunity to enter the username/password.... which apparantly works, but just opens a blank (all white) web page
Title: Re: cpgShop - a PayPal shopping cart
Post by: DesMas on November 14, 2013, 07:51:01 pm
This sounds like two problems
- one with the mail
- one with the download folder

I'll try to check this

I'm a little bit confused... the download link in the mail references a "dead" function:
Code: (PHP) [Select]
    // -----------------------------------------------------------------------------------------
    // PROCESS THE DOWNLOADS
    // -----------------------------------------------------------------------------------------
    function process()
    {
       return;
    }
Stramm, is this as it should be?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on November 15, 2013, 08:36:04 am
Quote
The plugin in its basic version doesn't come with PayPal IPN nor with digital image download support.
Title: Re: Re: cpgShop - a PayPal shopping cart
Post by: DesMas on November 15, 2013, 06:41:44 pm


Ups, should have noticed this :)
Title: multiple price sets per album
Post by: DesMas on November 24, 2013, 05:06:37 pm
Hi stram

Have you planned an option to activate multiple price sets per album.
For example if i have:
I can only activate one set at a time per album.

As workaround the sets have be created with mixed contents what does not satisfy me.

If not, or it's not part of the full version, I would try to implement this myself.
Might be some kind of tricky, with the option groups but I'm not using them at the moment.

Title: Re: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on November 26, 2013, 08:25:52 am


Ok, that explain it ;-)

How much is the full version and how do I go about getting it?
Title: Re: cpgShop - a PayPal shopping cart
Post by: mboesen on December 04, 2013, 02:32:41 pm
Please contact me for details about getting a full version
Title: Re: cpgShop - a PayPal shopping cart - Stupic Me ... Please Help
Post by: JohannM on December 06, 2013, 09:20:18 pm
Maybe I am just plain stupid ... but I have tried various ways to have both "Printed" and "Download" options ... but It just give me one option ...

What I want to do below the image where you have the "Add to shopping Basket" the following options:

* Download Options : Downlaod This Image  $ 10.00
                              Download Complete Album $ 125.00

* Printed Options : Postcard Print $ 5.00
                          A 5 Print $ 25.00
                          A 4 Print $ 35.00

Can someone tell me how to do this ? Please.

Title: Re: cpgShop - a PayPal shopping cart
Post by: PhilD_UK on December 22, 2013, 12:54:28 am
Hi All,
I'm new to both Coppermine and cpgshop, so please be gentle.

Both programs are superb .... better than anything else I have tried. (And I have tried a few in the last three weeks!). I bow to the programmers .... :)

I have a gallary working fine, but can't get the price options to work in the shopping cart. I have tried looking for the "help" documentation and only get broken links. Has anyone a download of the help files that they can forward to me, or is there another link?

Or failing that, can someone please post an idiots guide on how to set them up?
Title: Re: cpgShop - a PayPal shopping cart
Post by: DesMas on December 22, 2013, 09:56:40 am
Hi PhilD_UK, Hi JohannM

As I posted three entries above, I also have my trouble with the price sets.
It seems to me that this is not working correctly.

Sadly, Stramm is not able to participate as often as he wants, for some personal reasons.
He wants to bring up a new documentation as soon as possible, but this still may take some time.

So I noted for myself to take a look into the code over Christmas time but I cannot say how far I will get.
Title: Re: cpgShop - a PayPal shopping cart
Post by: PhilD_UK on January 02, 2014, 10:54:43 pm
Hi again,
Sorry to bump a post, but I really need some help with setting up the price options for the shopping cart.
I have tried all sorts of settings, but without some sort of documentation I am lost.
Can anyone help with basic settings for 4 print options (6x8, 10x8, 12x10, 16x12) and four prices?
I really need to have this set up by the end of the weekend ...
Also, should the shopping cart be available to view (with contents) to all even if the album is password protected and you are not logged in?
Title: Re: cpgShop - a PayPal shopping cart
Post by: gmc on January 03, 2014, 01:13:24 am
Been a while since I set this up... but a 'Quick Start' list:
Likely more than one way to group things - I'm basing this on what I did... you need to determine if it is suitable for your needs...

Start in CPGSHop Configuration:
In Price Manager - Add a line for each size print you want with Title like '8x10 Print', the price, any additional shipping charge for the item, and select download or ship as type.

In Price Set Manager - add a price set Title like 'Color Prints' - and highlight each price item you want included in the price set.

In Option Manager - add a line for each option you want them to select from. I've used this for print finish as example with Title of 'Finish', Title ( it1||it2||it3 ) of Matte||Gloss and Value ( vl1||vl2||vl3 ) of 0||0  (no extra charge for either in my case - but this would be the cost...)

In Option Manager Set - add an option set Title like 'Prints' and highlight each option you want included in this set...

OK... hard part done...
Now go to your album list view - and each album should have a button 'Enable/Disable CPGShop for pics in an album'
Click...
For all pics in album, use top entry... Or you can choose individual pictures...
Select an available Price Set and Option Set for each - and click th Edit button (either just below the 'all' info - or at the bottom of page if doing individually.

That should do it...  When you view an intermediate image now - you should see the CPGShop options below the image.

If you go to:
http://greggallery.gmcdesign.com/index.php?cat=17 - select the 2013 album to see a very simple (one price/one option) setup - or the 2012 album, I just activated a more detailed setup with additional choices to demonstrate.

Note I did make one change to CPGShop - you will not see the 'View Cart' button until something is actually in the cart... Personal Preference.

Remember the download and Paypal automation is NOT included in the base plugin...
You can still take an order with the option of download - but you will need to handle making the image available for downloading...

Hope that helps!
Title: Re: cpgShop - a PayPal shopping cart
Post by: PhilD_UK on January 03, 2014, 05:06:05 pm
Been a while since I set this up... but a 'Quick Start' list:
Likely more than one way to group things - I'm basing this on what I did... you need to determine if it is suitable for your needs...

Start in CPGSHop Configuration:
In Price Manager - Add a line for each size print you want with Title like '8x10 Print', the price, any additional shipping charge for the item, and select download or ship as type.

In Price Set Manager - add a price set Title like 'Color Prints' - and highlight each price item you want included in the price set.

In Option Manager - add a line for each option you want them to select from. I've used this for print finish as example with Title of 'Finish', Title ( it1||it2||it3 ) of Matte||Gloss and Value ( vl1||vl2||vl3 ) of 0||0  (no extra charge for either in my case - but this would be the cost...)

In Option Manager Set - add an option set Title like 'Prints' and highlight each option you want included in this set...

OK... hard part done...
Now go to your album list view - and each album should have a button 'Enable/Disable CPGShop for pics in an album'
Click...
For all pics in album, use top entry... Or you can choose individual pictures...
Select an available Price Set and Option Set for each - and click th Edit button (either just below the 'all' info - or at the bottom of page if doing individually.

That should do it...  When you view an intermediate image now - you should see the CPGShop options below the image.

If you go to:
http://greggallery.gmcdesign.com/index.php?cat=17 - select the 2013 album to see a very simple (one price/one option) setup - or the 2012 album, I just activated a more detailed setup with additional choices to demonstrate.

Note I did make one change to CPGShop - you will not see the 'View Cart' button until something is actually in the cart... Personal Preference.

Remember the download and Paypal automation is NOT included in the base plugin...
You can still take an order with the option of download - but you will need to handle making the image available for downloading...

Hope that helps!

This worked a treat!! Thank You!

As I had a basic price list, I didn't include any option sets, and it let me order right through to Paypal login.
Thanks very much!.

I would like to hide the empty cart button as well .... could you please tell me what to change in the coding? (preferably in basic steps if possible ... coding is a mystery to me).

Had a play with your site, and I notice that you also require users to login/register ... I take it that is a requirement of Coppermine? Though having enabled "save cart" that could be a bonus.

Thanks again

Philip
Title: Re: cpgShop - a PayPal shopping cart
Post by: gmc on January 03, 2014, 07:14:49 pm
You're welcome.. Glad it worked for you...

To suppress display of 'view cart' button when the cart is empty - in codebase.php:
find:
Code: [Select]
  //Add view cart & checkout buttons
  if ($item_in_cart > -1 && $CONFIG['cpgshop_enable']) {
and replace with: (just changing -1 to 0... with comments)
Code: [Select]
  //Add view cart & checkout buttons
  //* GMC - alter compare to suppress cart and checkout buttons if cart is empty..
  if ($item_in_cart > 0 && $CONFIG['cpgshop_enable']) {  //* GMC changed compare to > 0
Remember you will need to redo this change any time you upgrade CPGShop.

CPGShop requires registration/login to process a shopping cart. It adds several columns to the cpg_users table containing name, address, phone to be able to process an order - and that table is only populated when a user registers.
I've had too many problems with 'false' registrations by spammers - adding id's to my gallery - so registrations are now password protected as well.  That's a tradeoff of course - as I have to provide the password those wishing to register. My usage so far has been targeted at specified groups - so been simple to provide the password to the group with the ordering instructions.
Title: Re: cpgShop - a PayPal shopping cart
Post by: PhilD_UK on January 03, 2014, 07:28:45 pm
Thanks for your quick reply.
I'll add the code when I get a moment.

As my target audience is primarily schools and private functions, any password protection is probably a good thing in retrospect. It will also allow traceability of users, as the link will only be given to clients.

Regarding my PM to you regarding the welcome box .... I sorted that ... "anycontent.php" solved my problem.
The more I dig around the forum, the more I learn .... so thank you to all contributors!
Title: Re: cpgShop - a PayPal shopping cart
Post by: gmc on January 05, 2014, 12:46:00 am
Had a chance to go back and look at an old issue I reported..
When registering a new user - enter country, name, address, etc - yet when going to checkout, that information wasn't saved and has to be re-entered... Once entered during checkout, it seems to be saved for future.
I would expect this information to be saved during registration since it is prompted for.

The 'register_form_submit' function was not being invoked - as it is specified in the plugin codebase as a filter rather than an action.

In cpgshop/codebase.php, find:
Code: [Select]
// register form filter
$thisplugin->add_filter('register_form_create', 'cpgshop_register_form_create');
$thisplugin->add_filter('register_form_submit', 'cpgshop_register_form_submit');
and replace with:
Code: [Select]
// register form filter/action
$thisplugin->add_filter('register_form_create', 'cpgshop_register_form_create');
$thisplugin->add_action('register_form_submit', 'cpgshop_register_form_submit'); //**GMC changed filter to action

All data now added properly when a user registers to the gallery. :)
Title: Re: cpgShop - a PayPal shopping cart
Post by: PhilD_UK on January 06, 2014, 06:58:48 pm
When making a purchase, I am getting the following message when I get to step 4 .... whether or not I select the payment gateway. (Which is configured for Paypal £ 0.00).

"Error
There is a problem with cart or shipping data. Please go back and fix:

•Data inconsistent: It seems that product data has changed since you're shopping. Please start the checkout again and verify the values."

Looking through the forum, it appears to have been a problem before, but with no definitive fix explained.
Could someone help please?

Title: Re: Re: cpgShop - a PayPal shopping cart
Post by: tenacjed on January 12, 2014, 11:51:47 pm
Had a chance to go back and look at an old issue I reported..
The 'register_form_submit' function was not being invoked - as it is specified in the plugin codebase as a filter rather than an action.

In cpgshop/codebase.php, find:
Code: [Select]
// register form filter
$thisplugin->add_filter('register_form_create', 'cpgshop_register_form_create');
$thisplugin->add_filter('register_form_submit', 'cpgshop_register_form_submit');
and replace with:
Code: [Select]
// register form filter/action
$thisplugin->add_filter('register_form_create', 'cpgshop_register_form_create');
$thisplugin->add_action('register_form_submit', 'cpgshop_register_form_submit'); //**GMC changed filter to action

All data now added properly when a user registers to the gallery. :)

A big thank you for this!  I made the suggested changes and tested it out, works perfectly!


John W
Title: Re: cpgShop - a PayPal shopping cart
Post by: PhilD_UK on January 13, 2014, 12:12:11 am
When making a purchase, I am getting the following message when I get to step 4 .... whether or not I select the payment gateway. (Which is configured for Paypal £ 0.00).

"Error
There is a problem with cart or shipping data. Please go back and fix:

•Data inconsistent: It seems that product data has changed since you're shopping. Please start the checkout again and verify the values."

Looking through the forum, it appears to have been a problem before, but with no definitive fix explained.
Could someone help please?

I notice the fix for this I put up before the down time has disappeared ... so here's the fix again.

The cart needs both Paypal and a shipping option selected in the config to work .... even though shipping is not wanted or charged for.
Added a shipping option with no charge ... error went away.
Title: Re: cpgShop - a PayPal shopping cart
Post by: tenacjed on January 14, 2014, 01:02:15 pm
gmc,

My post was lost during the crash, but I wanted to thank you for your recommendation. 

I had replied to someone else's post about being able to set multiple products on the same gallery.  My scenario was different though, with different print size options for different pictures.  You pointed out that this is currently possible.  I do not know what I did wronge the first time, but I was able to accomplish different print size options to different pictures within the same gallery.  So thank you again for the recommendation to try it again!

John W
Title: Re: cpgShop - a PayPal shopping cart
Post by: gmc on January 14, 2014, 01:52:31 pm
John,
You're welcome.. I've looked for the lost posts in google cache, but couldn't find them...
A summary in case it helps others..

DesMas posted that he would like to be able to assign multiple price sets to a single item - for example one that gives 'print' options and one that gives 'mug' options - rather than having one price set containing a mix of different media choices for printing...
That isn't possible in current code to my knowledge, and I don't know what it would take to implement...

You were looking to offer different choices (print sizes) for different photos in the same album (as some sizes don't make sense based on aspect ratio, etc) - and this IS possible today...

When setting pricesets - set the option the will be used for the majority of the photos for the album and save... You can then scroll down the list of photos - and change the priceset (and/or options) for any individual picture(s) and save.

Glad it worked for you...

Greg
Title: Re: cpgShop - a PayPal shopping cart
Post by: liquid-motion on February 11, 2014, 04:01:06 pm
The link to the documentation is not working. Can you please fix it in the first post?

Please contact me about the full version. Thanks in advance!
Title: cpgShop - Need help with Discounts
Post by: tenacjed on February 24, 2014, 06:21:24 pm
Is it possible to have a discount code use % instead of currency?  I was able to get % working cpgShop Config\Discounts based on items purchased.  But when it is changed over to discount code it always does currency.  Also is it possible to specify, or change within the database the discount code, that way it is not random? 

Thanks for any help/feedback anyone might be able to offer up!

John W

http://www.waggonerphotography.com/home.shtml
Title: Re: cpgShop - a PayPal shopping cart
Post by: rogeriogal on February 25, 2014, 09:24:03 pm
please contact me using private messages. I will try to shoot you an e-mail. I want to donate to get the full plugin. I already have photo_shop plugin running nicely on 1.4.26 hope I can upgrade to 1.5.26 which I'm quite please to do.

Thanks Stramm

r.

Just leave a message here and I will contact you using the forums private messaging system.
Title: Re: cpgShop - a PayPal shopping cart
Post by: sindbad5 on February 26, 2014, 06:29:45 am
Hi Stramm, I like to get the full plugin. Please contact me.

Tom
Title: Re: cpgShop - a PayPal shopping cart
Post by: olastudio on March 06, 2014, 06:55:00 am
Hi,
Can anyone help to add a shopping cart to my coppermine gallery in such a way that by checkout it will give an option of Paying later to send the item through Email or formail or pay by Paypal.
2.Can you help adding a shopping cart just for my clients to select their choosing photos without need of paying by checkout.
I dont mind of paying please any helper.
thks
OLA
Title: Re: cpgShop - a PayPal shopping cart
Post by: Phill Luckhurst on March 06, 2014, 10:47:02 am
Please do not duplicate your posts, there are 3 copies of it around now.

Best bet is to try and use this cart (getting the full version from Stramm first) then use a freelancer to modify it to your needs. the changes should be quite simple.
Title: Re: Purchase of Full Version
Post by: Aeronautic on March 08, 2014, 07:02:44 pm
Stramm,

Please contact me via the DM system to arrange purchase of full version.

Thanks!
Title: Re: Purchase of Paid Version of cpgShop
Post by: Aeronautic on March 17, 2014, 05:43:57 pm
I by no means wish to seem impatient but has anyone heard from Stramm?

I did not get a DM regarding purchase... is it/he still active?

Thank you!
Title: Re: cpgShop - a PayPal shopping cart
Post by: Phill Luckhurst on March 17, 2014, 07:28:51 pm
He was last online on the 10th but not sure if he has read your message.
Title: Re: Re: cpgShop - a PayPal shopping cart
Post by: Aeronautic on March 19, 2014, 08:30:17 pm
He was last online on the 10th but not sure if he has read your message.

Thanks Phill!

I certainly know he has other things to do than contact me. :)

Hopefully this cool plug-in is still alive and well - and so is Stramm!
Title: Re: cpgShop - a PayPal shopping cart
Post by: lcursino on April 08, 2014, 07:48:54 am
How is charging the full plugin?

Not working in Coppermine.

Thanks
Title: Re: cpgShop - a PayPal shopping cart
Post by: Aeronautic on April 08, 2014, 11:53:14 pm
A month has now passed since I asked for purchase information.

Not a complaint, but it would be helpful to know if this plugin is available for purchase or if it is discontinued and no longer supported.

It does appear he is visiting the forum from his profile. I hope he is well, I'd just like some insight into what is going on.

Those of you who may be devs or know him, if you could pass along this request, it would be gratefully appreciated. Thanks!  :)
Title: Re: cpgShop - a PayPal shopping cart
Post by: Hhappy on April 13, 2014, 07:27:17 pm
Would love to get the full version as well.
Thanks
Title: Re: cpgShop - a PayPal shopping cart - How to hide buttons for unlogged us
Post by: JohannM on May 13, 2014, 02:38:49 pm
Hi

How can I hide the VIEW CART etc buttons for cpgshop for users that is not logged in ? With other words visitors cant see this buttons ...

Please help
Title: Re: cpgShop - a PayPal shopping cart - How to hide buttons for unlogged us
Post by: gmc on May 13, 2014, 05:06:13 pm
Hi

How can I hide the VIEW CART etc buttons for cpgshop for users that is not logged in ? With other words visitors cant see this buttons ...

Please help

If you scroll up a bit in this thread - instructions included to suppress the view cart and checkout buttons when cart is empty - which would include unlogged users initially.
It does allow unlogged users to add items to their cart still - which would then make the 'view cart' and 'checkout' buttons visible - which would require logging on to complete.

If that meets your need:
To suppress display of 'view cart' button when the cart is empty - in codebase.php:
find:
Code: [Select]
  //Add view cart & checkout buttons
  if ($item_in_cart > -1 && $CONFIG['cpgshop_enable']) {
and replace with: (just changing -1 to 0... with comments)
Code: [Select]
  //Add view cart & checkout buttons
  //* GMC - alter compare to suppress cart and checkout buttons if cart is empty..
  if ($item_in_cart > 0 && $CONFIG['cpgshop_enable']) {  //* GMC changed compare to > 0
Remember you will need to redo this change any time you upgrade CPGShop.
Title: Re: cpgShop - a PayPal shopping cart
Post by: JohannM on May 14, 2014, 12:52:30 pm
I tried that code, but it intervere with the plugin Final Extraxt in some way
Title: Re: cpgShop - a PayPal shopping cart
Post by: JohannM on May 14, 2014, 12:53:34 pm
Stramm ... or anybody else who knows how to get hold of stramm, please send me an email, I want the full version ... thanx.
Title: Re: cpgShop - a PayPal shopping cart
Post by: JohannM on May 15, 2014, 04:55:38 pm
I have a problem ...

If I put amounts in to charge per country (for when you confirm the order) ... the shop does nod add the country fee ...

Does anyone know how to fix ?

Thanx in advance
Title: Re: cpgShop - a PayPal shopping cart
Post by: JohannM on May 19, 2014, 12:34:49 pm
Adding a tracking number ?

Hi ... wounder if someone can help perhaps ...

I have a extra field in my table "orders" with the field name of "tracking"

On the admin page of ORDER MANAGER I added a text input field to be able to add a tracking number to the database, but I am not sure where and what code I have to implement ... I tried several ways but could not get the thing working ...

Any help perhaps ?

Thanx in advance
Title: Re: cpgShop - a PayPal shopping cart
Post by: tupense on June 06, 2014, 09:31:47 am
hi can i got the full version of cpgshop i can give some donation ,like you have suggested....
Title: Re: cpgShop - a PayPal shopping cart - Stramm
Post by: JohannM on June 06, 2014, 06:35:12 pm
Hi

How can we get hold of Stramm for the full version ????

Anybody ???
Title: Re: cpgShop - a PayPal shopping cart
Post by: anaximander on June 25, 2014, 08:34:32 pm
Hi Stramm,

I also would like to get the full version of your plugin (for a donnation).

anaximander
Title: Re: Reaching Stramm - cpgShop - a PayPal shopping cart
Post by: Aeronautic on July 07, 2014, 06:27:16 am
Is there anyone in the Dev community that knows Stramm personally who can update those of us seeking to purchase the full version of the plug-in?

I began asking in March of this year and a few others have followed. If it is a closed project, that would be helpful to know too.

Many thanks!
Title: Re: cpgShop - a PayPal shopping cart
Post by: Hhappy on July 13, 2014, 09:23:31 pm
Would love to get the full version as well.
Thanks
Was just wondering if it's still possible to get the full version (purchase)??
It has been a while..
Title: Re: cpgShop - a PayPal shopping cart
Post by: Phill Luckhurst on July 18, 2014, 07:48:26 pm
Stramm hasn't visited for a while now. I will ping him a PM and see if he responds.
Title: Re: cpgShop - a PayPal shopping cart
Post by: blackhawk on August 24, 2014, 12:43:03 am
Bug Report:
Using this plugin in coppermine standlone seems to work great.  After I bridged coppermine to smf20 the add to cart stopped working.  The cart kept returning empty even tho I added an item to the cart.

To fix this go to libs/cpgDB.class.php

find this line of code:
Code: [Select]
return mysql_insert_id();
and replace with the following
Code: [Select]
return cpg_db_last_insert_id();
this fix works in either standalone or bridged with smf20.  I did not test other apps that coppermine will bridge with.

I'd be interested in the full version of this plugin if the author ever returns.
Title: Re: Re: cpgShop - a PayPal shopping cart
Post by: Hhappy on August 26, 2014, 12:09:15 pm
Stramm hasn't visited for a while now. I will ping him a PM and see if he responds.

any news?
still hoping to be able to get my hands on a full version
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on September 02, 2014, 06:30:53 pm
If someone is still interested in the full version, please let me know.
Title: Re: cpgShop - a PayPal shopping cart
Post by: blackhawk on September 02, 2014, 07:02:17 pm
yes, I am, I have PM turned on but I can't send a message.  thanks, 
Title: Re: Re: cpgShop - a PayPal shopping cart
Post by: Hhappy on September 03, 2014, 02:56:15 pm
If someone is still interested in the full version, please let me know.
Welcome back and yes please :)
Title: Re: cpgShop - a PayPal shopping cart
Post by: Hhappy on September 04, 2014, 07:42:31 am
Thank you for the pm (can't reply as i'm not allowed (yet) to sent pm's..
Title: Re: cpgShop - a PayPal shopping cart
Post by: wp180 on September 07, 2014, 03:29:48 pm
Hi Stramm.

I'm also interesting in the full version.

Thx a lot.
wp180
Title: Re: cpgShop - a PayPal shopping cart
Post by: Aeronautic on September 29, 2014, 08:19:48 pm
Welcome back Stramm!

Please get in touch about buying the full version.

Thanks
Title: Re: cpgShop - a PayPal shopping cart
Post by: shafeeq on October 14, 2014, 04:47:47 pm
Hey Stramm,

Can you please get in touch about buying the full version?

Thanks,
Shafeeq
Title: Re: cpgShop - a PayPal shopping cart
Post by: wp180 on October 19, 2014, 12:03:31 pm
Hi.

Im using cpgshop and annotate. But since i have installed cpgshop, i get an error if i want to modify annotate settings.

The error is: Fatal error: Class 'cpgTool' not found in .../plugins/cpgshop/codebase.php on line 251

What can i do that is works again?

Regards
wp180
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on October 20, 2014, 08:28:30 am
Upload the plugin again. Make sure all files got uploaded and the folder structure is intact.
Title: Re: cpgShop - a PayPal shopping cart
Post by: wp180 on October 22, 2014, 07:19:52 pm
Hi Stramm.

Only upload cpgshop again with ftp? Or uninstall the plugin and new install? Because i dont want to loose any options or pictures.

wp180
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on October 23, 2014, 11:42:04 am
Just reupload the plugin...
if that won't work you have to deactivate the shop plugin temporarily if you want to change annotate settings.
Title: Re: cpgShop - a PayPal shopping cart
Post by: sntechsnaps on November 15, 2014, 02:07:50 pm
Hi all,

Recently updated MySQL to 5.6.14 and CPGShop is now showing an error when customers go to complete an order:

Critical error
There was an error while processing a database query

While executing query 'INSERT INTO `cpg15x_cpgshop_order`
                   (`oid`, `user_id`, `user_name`, `gross`, `item_count`, `cart`, `profile`, `time`, `status`, `txnid`, `payment`, `delivery`, `tax`, `log`, `note`, `tos`, `cdown`, `cship`, `paid`, `sent`, `new`, `archive`)
                   VALUES
                   ('','1', 'administrator', '41.48', // edited to remove name and address details etc // '1', '0', '1', '', '', '1', '1');' in plugins\cpgshop\libs\cpgDB.class.php on line 24

mySQL error: Incorrect integer value: '' for column 'oid' at row 1

Someone posted with help on this a few threads back, regarding changing OID to Null, but I cant get that to work either.

Any ideas how I can fix this?
Title: Re: cpgShop - a PayPal shopping cart
Post by: sntechsnaps on November 15, 2014, 03:50:51 pm
I actually got this working using what was posted a few threads back, changed " to NULL, which didnt work at first, but then turned off strict mode with MySQL and seems to work ok now :)


Hi all,

Recently updated MySQL to 5.6.14 and CPGShop is now showing an error when customers go to complete an order:

Critical error
There was an error while processing a database query

While executing query 'INSERT INTO `cpg15x_cpgshop_order`
                   (`oid`, `user_id`, `user_name`, `gross`, `item_count`, `cart`, `profile`, `time`, `status`, `txnid`, `payment`, `delivery`, `tax`, `log`, `note`, `tos`, `cdown`, `cship`, `paid`, `sent`, `new`, `archive`)
                   VALUES
                   ('','1', 'administrator', '41.48', // edited to remove name and address details etc // '1', '0', '1', '', '', '1', '1');' in plugins\cpgshop\libs\cpgDB.class.php on line 24

mySQL error: Incorrect integer value: '' for column 'oid' at row 1

Someone posted with help on this a few threads back, regarding changing OID to Null, but I cant get that to work either.

Any ideas how I can fix this?
Title: Re: cpgShop - a PayPal shopping cart
Post by: st0rmchaser on November 28, 2014, 06:39:19 pm
I just need to set up three type membership accounts through paypal or equivalent;  1 free > 2 minimal cost > 3 full cost  plus limit the amount of downloads they can grab on the free and the minimal.  I can't seem to find this anywhere in coppermine plugins.  I would rather have coppermine so I can use the Masonry theme instead of having to deal with wordpress.  If anyone can point me in the right direction or let me know if this plugin can handle my needs please let me know.  Three months and counting, and still no useable website. 
Title: Re: cpgShop - a PayPal shopping cart
Post by: JohannM on January 05, 2015, 05:48:30 pm
Hi Stramm

I am looking for the full version ... are you around ?

Regards

Title: Re: cpgShop - a PayPal shopping cart
Post by: erikh on January 08, 2015, 09:59:38 am
How can I get a full version?
Title: Re: cpgShop - a PayPal shopping cart
Post by: salkeld17 on April 23, 2015, 03:12:44 pm
I am also interested in the full version of the cpgShop plugin. Stramm, could you please send me details on how to get it? Thank you in advance.
Title: Re: cpgShop - a PayPal shopping cart
Post by: salkeld17 on April 25, 2015, 01:07:03 am
Since it apears Stramm has not been around for a while and seems to have gone MIA, I propose that anyone on here that has received the full version after sending stramm a donation, post both the donation information and the full cpgShop package so those of us still looking for it can use it and on the honor system send a donation to Stramm.

Thoughts???
Title: Re: cpgShop - a PayPal shopping cart
Post by: salkeld17 on April 25, 2015, 01:24:33 am
Can you please let me know the info on how to get the full version. Interested in getting it.
Title: Re: cpgShop - a PayPal shopping cart
Post by: gmc on April 25, 2015, 03:03:30 am
Since it apears Stramm has not been around for a while and seems to have gone MIA, I propose that anyone on here that has received the full version after sending stramm a donation, post both the donation information and the full cpgShop package so those of us still looking for it can use it and on the honor system send a donation to Stramm.

Thoughts???
While Stramm has unfortunately not been here much recently... it is still his code - and he made an obvious choice not to post it here... We need to respect his rights and ownership of his code.

I will try to contact him and see if he can somehow make the code available - but it will need to be his active choice - not his absence - that decides it.
Title: Re: Re: cpgShop - a PayPal shopping cart
Post by: salkeld17 on April 29, 2015, 06:21:23 pm
While Stramm has unfortunately not been here much recently... it is still his code - and he made an obvious choice not to post it here... We need to respect his rights and ownership of his code.

I will try to contact him and see if he can somehow make the code available - but it will need to be his active choice - not his absence - that decides it.

Yes. You're right. Totally agree. Was just hoping to find a middle ground since there's many of us still looking for the code and are willing and able to pay a reasonable amount for it. I hope you can reach him. Would be great if he setup a cpgShop site for us to go pay and download it.  ;)
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on May 01, 2015, 11:48:24 am
Hi all,
sorry for not posting here for some time but life is busy. And to make it worse, I've moved to a new computer and somehow my cpg email stopped working on the new box (wthout me noticing it). So I got no topic notifications and without notifications no urge to stop by here.

gmc, thanks for having a look here ;)
Title: Re: cpgShop - a PayPal shopping cart
Post by: gmc on May 01, 2015, 02:39:37 pm
Welcome back Stramm... Good to hear from you.
You're welcome... and let me know if I can help in any way.

Greg
Title: Re: Re: cpgShop - a PayPal shopping cart
Post by: salkeld17 on May 01, 2015, 03:33:47 pm
Hi all,
sorry for not posting here for some time but life is busy. And to make it worse, I've moved to a new computer and somehow my cpg email stopped working on the new box (wthout me noticing it). So I got no topic notifications and without notifications no urge to stop by here.

gmc, thanks for having a look here ;)

Glad you're back Stramm. And thanks for the message. Donation sent!
Title: Re: cpgShop - a PayPal shopping cart
Post by: Quinntero on June 12, 2015, 10:49:07 am
Stramm-

I would like the full version of your cpg1.5 plugin.

It ROCKS!

Please send me info on how to make a donation.

Thanks!
Title: Re: cpgShop - a PayPal shopping cart
Post by: Quinntero on June 13, 2015, 09:46:56 pm
Has anyone heard from Stramm?

I'd really like to make a donation and get the full version of cpgShop up and running.  It's a really terrific plug-in!
Title: Re: cpgShop - a PayPal shopping cart
Post by: Phill Luckhurst on June 13, 2015, 10:14:48 pm
Stramm doesn't visit often these days. I will drop him a PM.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Quinntero on June 14, 2015, 11:22:59 am
Thanks Phil and Stramm!

Donation sent!

WAHOOOOO!
Title: Re: cpgShop - a PayPal shopping cart
Post by: JohannM on April 29, 2016, 07:05:22 pm
Hi

Hope someone can help. When someone places an order, admin do not get the email. I checked all settings, but still cannot figure out why admin do net get the email.

Anyone ?

Thanx in advance.
Title: Re: cpgShop - a PayPal shopping cart
Post by: JohannM on April 29, 2016, 08:07:29 pm
Hi

Hope someone can help. When someone places an order, admin do not get the email. I checked all settings, but still cannot figure out why admin do net get the email.

Anyone ?

Thanx in advance.

Figured it out. In the CPG main config, at SMTP settings must be all blank.

Thanx anyway
Title: Re: cpgShop - a PayPal shopping cart
Post by: Meelistoom on August 03, 2016, 10:35:11 pm
Hi Stramm,

please send me the donation information. i'd like to give a try for the download option.
Title: Re: cpgShop - a PayPal shopping cart
Post by: Meelistoom on August 06, 2016, 03:05:28 am
Hi,

hopefully Stramm still receives those messages :)
Title: Re: cpgShop - a PayPal shopping cart
Post by: Meelistoom on August 08, 2016, 09:37:33 am
Hi Stramm, unfortunatelly i can not send PM.
Can you send me an email. meelis.toom@gmail.com
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on August 10, 2016, 08:58:26 am
Hi Meelistoom,
I intend to make the paypal addon publically available anyways. So just wait a few days and you can download in the first post of this thread.

Best regards,
Thomas
Title: Re: cpgShop - a PayPal shopping cart
Post by: Meelistoom on September 01, 2016, 08:11:44 am
Hi,

how is the progress?
Title: Re: cpgShop - a PayPal shopping cart
Post by: Stramm on September 03, 2016, 02:35:16 pm
Sry, I've changed the first post now.