Advanced search  

News:

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

Pages: 1 [2] 3 4 5 6 ... 20   Go Down

Author Topic: add a Paypal shopping basket to your gallery.  (Read 315528 times)

0 Members and 1 Guest are viewing this topic.

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #20 on: July 27, 2004, 12:38:56 pm »

Hi Gaugau,

yes they are all zipped, but the mod files, complete with instructions and images, are 331kb, and each theme folder comes at between 117 and 126kb.

Will email them to you shortly.

For those interested in having different prices in different albums, I have set up the demo to show what can be done with a little bit of code changing.
There are now 3 categories, each with a different setup.  See it HERE
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

big nose

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Martin Croft
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #21 on: July 27, 2004, 05:00:50 pm »

Hi Casper

All looks very good, Ive just setup a new gallary for some of my clients and this paypal mod is just what i have been looking out for...

I was wondering if there is a way to make sure that orders had a postage portion to them before people would pay, thus ensuring postage costs were catered for.

Is there also a way of putting a Bio on the front page of coppermine

keep up the good work... great piece of code

regards

martin
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #22 on: July 27, 2004, 05:21:22 pm »

Hi Martin,

I was wondering if there is a way to make sure that orders had a postage portion to them before people would pay, thus ensuring postage costs were catered for.

This is done in your Paypal account.  You log on, and go to your account, then set the postage costs in your profile.  You can also set up your basket page to look like it is part of your site here, along with any re-direct pages once your users checkout.


Is there also a way of putting a Bio on the front page of coppermine

You can use the anycontent.php for this. 
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

big nose

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Martin Croft
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #23 on: July 27, 2004, 09:54:49 pm »

Hi Casper

Ive tried running the update script on the latest 1.3.1 version I get the following error

SQL-query : 

ALTER TABLE `CPG_filetypes` DROP INDEX `EXTENSION` ,
ADD PRIMARY KEY ( `extension` )

MySQL said:


#1091 - Can't DROP 'EXTENSION'. Check that column/key exists

any ideas

regards

martin
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #24 on: July 27, 2004, 10:25:19 pm »

Hi Martin,

that is part of the normal update, not for the shop, and should not cause a problem.

However, if you have already updated to 1.3.1, and only want to add the shop fields, use the attached file, which you will need to use to replace your existing update.sql., and then run update again.

« Last Edit: July 27, 2004, 10:31:41 pm by Casper »
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

big nose

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Martin Croft
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #25 on: July 27, 2004, 10:45:19 pm »

Thanks for the reply

Ok Ive run the update and now Ive got another problem as whenever I try and use the save config button at the bottem of the config page it opens up the paypal shopping cart...

this only seems to happen after running the update

This the error after running the update

SQL-query : 

INSERT INTO CPG_config
VALUES (

'size1', '0'
)

MySQL said:


#1146 - Table 'photodb.CPG_config' doesn't exist

I havent generated any albums or other content before running the update

hope this helps

regards

martin
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #26 on: July 27, 2004, 11:17:20 pm »

Did you do a full install of version 1.3.1 before doing the mod, and checkit was working?

When working correctly, and with all files installed, you update should create this query;
Quote
INSERT INTO yourprefix_config
VALUES (

Not this;
Quote
INSERT INTO CPG_config
VALUES (

Unless of course, your prefix is actually 'CPG'
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #27 on: July 28, 2004, 12:06:37 am »

There seems to be an issue, when you create a new install, then update to this mod, before you have set the gallery up, and created at least one album.

I can replicate Martins problem with the config directing to the paypal basket, instead of updating the db etc, but only on a brand new install, with no cats/albums created.

At the moment, I am unable to find the cause of this, so suggest creating a category and album, and uploading at least 1 pic, before applying the mod.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

big nose

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Martin Croft
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #28 on: July 28, 2004, 09:42:16 am »

Thanks for that Casper was thinking I was going slowly mad....

I was getting to this thinking through testing on a standalone install on my laptop

I will now setup the mod as per your latest instructions, thanks again

Update...... just done that without loading an image and the issue with the buttons is still there, Would this be a problem with the new theme.php picking up the wrong button ID... accuse my ignorance

regards

martin
« Last Edit: July 28, 2004, 09:54:53 am by big nose »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #29 on: July 28, 2004, 11:15:28 am »

Well, this had me scratching my head so much, I got splinters.

But I found it.  It's in the theme.php of the reynolds theme.  When I cut and pasted the button form, I cocked up.

In your reynolds/theme.php, find;

Code: [Select]
</form>
</ul>
<!--  view basket button  -->
<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value='{$CONFIG['gallery_admin_email']}'>
<input type="image" src="https://www.paypal.com/en_GB/i/btn/view_cart_02.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="display" value="1">

And move the '</form>' to it's correct place at the bottom of the button.

@ Martin, Please confirm this cures the problem for you.
« Last Edit: July 28, 2004, 11:21:06 am by Casper »
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

big nose

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Martin Croft
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #30 on: July 28, 2004, 11:38:33 am »

Hi Casper

well caught,,, moving the form tag has sorted this out

However I now get this error for the rating graphics at the bottem of the page

Warning: Invalid argument supplied for foreach() in /usr/local/home/httpd/vhtdocs/selectred/martin/themes/reynolds/theme.php on line 1512

All the graphics are in the folder

regards

martin
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #31 on: July 28, 2004, 12:03:45 pm »

Yes, that is a known problem, which is caused by the modified displayimage.php.  It only appears if there is no image description.

If you put the original displayimage.php file back in, the shop will still work fine, and this will not happen.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

big nose

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 8
    • Martin Croft
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #32 on: July 28, 2004, 01:01:10 pm »

Kool thanks Casper....

All I need to do now is integrate this all into mambo ;-)

should be fun

once agin thanks for the help

regards

martin
Logged

catch22

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 16
Warning: Invalid argument supplied for foreach()
« Reply #33 on: August 09, 2004, 05:59:35 pm »

Warning: Invalid argument supplied for foreach() in /home/pos/www/www/poscpg/themes/classic/theme.php on line 1579

I have installed 1.3.1 and it works fine as a standalone.

Once I add the shop update, I get the message above. I have looked at every post dealing with that known issue, and it seems it was solved for the out of box version above. But returns after shop setup. The "old" solutions do not much apply, as the code has been changed already in this version to reflect.

I have tried 1.3.1, 1.3.0 versions. The select print sizes are not showing up either. The had shown up on an earlier install (on install 215 already  ;))

The instructions say to install version 1.3.2 before shop upgrade, but it isn't here yet...? I am looking to pay to port the PayPal function to AuthorizeNet and have some people standing by to do just that.

Any help here would be appreciated.
Logged

catch22

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 16
Re: Warning: Invalid argument supplied for foreach()
« Reply #34 on: August 09, 2004, 06:12:05 pm »

Found some things on a search of "PayPal"....will try those.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Warning: Invalid argument supplied for foreach()
« Reply #35 on: August 09, 2004, 06:37:27 pm »

apparently your posting refers to a mod. It would have helped if you posted a reply to the mod you are refering to instead of starting a new thread, or at least post a link to it.

GauGau
Logged

catch22

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 16
Re: Warning: Invalid argument supplied for foreach()
« Reply #36 on: August 09, 2004, 06:49:45 pm »

Problem of the Invalid Argument solved in

http://forum.coppermine-gallery.net/index.php?topic=7619.msg37025#msg37025

Simply replacing the original install versions' displayimage.php over the shop version.

Problem of print size selection not showing up is due to no image descriptions. This is solved more premanently in that topic above, I just don't have the stamina to follow through today.

Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Warning: Invalid argument supplied for foreach()
« Reply #37 on: August 09, 2004, 09:38:46 pm »

If you use the latest version of the mod, there is no need to have descriptions for the prices etc to show.

Merging with the correct thread/board
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

catch22

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 16
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #38 on: August 11, 2004, 08:27:51 am »

Hello. I installed a clean version of 1.3.1, downloaded 8/10 from sourceforge. I then ran the shop-update routine, also just downloaded, and overwrote displayimage.php, avoiding the PHP error.

I still, however, must have a description to have the cart sizes/prices show.

http://scientificsound.com/copper

This is not a show stopper, but curious.

Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #39 on: August 11, 2004, 12:20:31 pm »

Can you please post screenshots of this, as I am unable to replicate.
The prices will not show if the pic has no title, but should not need a description, as shown on my screenshots attached.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: 1 [2] 3 4 5 6 ... 20   Go Up
 

Page created in 0.06 seconds with 19 queries.