News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

add a Paypal shopping basket to your gallery.

Started by Casper, July 04, 2004, 07:02:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cnico88

Hey Casper Thanks for the link. I guess I saw that on the 1st page but I saw this: [attachment deleted by admin] and it threw me off. Thanks!
www.cincophoto.com -- my photo gallery

cnico88

sry for dbl post but that was couple days ago, anyways:

I installed the shop hack, modified all the files with the new ones. Now when I go into admin mode and I click the config and edit the paypal address and picture sizes, currency and so forth I I click save, the things says: saved succesfully but when I look at the pictures the picture sizes are not there and when I go back to Config I get empty fields there. I tried a bunch of times but it just won't save. I want to do it this way but if there is no other way then I could get instructions on how to edit the code. I am familiar with HTML, some Javascript and VB.NET but nothing about PHP so I would need some help, my site, if you want to take a look at it to get an idea is located at: www.cincophoto.com
Thanks for your help... ;D
www.cincophoto.com -- my photo gallery

Casper

Are you sure you replaced the update.sql with the one in the package, and when all the files where done, did you run update.php?

The instructions for changing the files manually are in the download, in the docs/Code-changes.html.

EDIT. I just browsed to your site, and ran update.php.  The changes needed where added, which means you had not done that before.

It should work correctly now.
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

cnico88

I think everything works now so far except that under the payment option and picture size I only want 3 options but it shows all 10 of them and the other 7 with ; so take a look at www.cincophoto.com ans see what I am talking about. Would I need to kill the other 7 arrays in the file? Pls help,
Thanks in advance!
www.cincophoto.com -- my photo gallery

Casper

Quote from: instructions in download, docs/shop.htmlNow delete all the lines refering to options you are not using, i.e., if you are allowing 6 choices of size, remove, or edit out, the lines for options 7 - 20.
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

cnico88

I resolved that and now I would like to know if I can somehow change the View Basket button to mach my theme. I have Hardwired theme and I want the button to like like that.  8)

BTW if you are interested if you want to sell your own pictures you must first make an account at my site ( www.cincophoto.com ) upload them and I will get 15% of your profit since I run the site. Thanks for checking out my website, I will try to update it every day. Thanks,
www.cincophoto.com -- my photo gallery

Casper


To change the view basket button, do this.

Open theme.php, find, and delete this code;

<!--  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['paypal_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">
</form> </td><td>



Then find this code;

<!-- BEGIN my_gallery -->

Now add, in a new line immediately BEFORE it, but after the '<tr>';


<!--  view basket button  -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" id="spacer" alt="" /></td>
                                        <td><img name="buttonleft" src="themes/hardwired/images/buttonleftmemb.gif" width="17" height="25" border="0" id="buttonleft" alt="" /></td>
                                        <td background="themes/hardwired/images/buttoncenter.gif">
                                                <a href="https://www.paypal.com/cart/business={$CONFIG['paypal_email']}&display=1">View Basket</a></td>
                                        <td><img name="buttonright" src="themes/hardwired/images/buttonright.gif" width="7" height="25" border="0" id="buttonright" alt="" /></td>

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

cnico88

So if I want to add more buttons of my own to look jus like that but below all the main ones on the top where in the code line do I insert them?
www.cincophoto.com -- my photo gallery

Casper

That question has nothing to do with the shop mod, so should not be asked here.

There have been plenty of posts about how to do this, but if you can't find it by searching, please post in the correct place, the support boards.
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

cnico88

now, I modified the button that says view basket, now I jus want to edit the button that says: Add to basket to be in the same way. Again I am using Hardwired theme for CPG. Thanks
www.cincophoto.com -- my photo gallery

divernj

I have followed the directions here and I am getting stuck once I click the "let's continue" text after running the update. I am presented with the following error message:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/divernj/public_html/gallery/themes/rainy_day/theme.php on line 954

Am I missing a semi-colon  or " somewhere? Any help would be greatly appreciated.

Casper

without knowing what changes you made to the file, it's impossible to say for sure.
Have you tried with an un-edited file.

Post full details of your set-up, and attach a copy of your theme.php, re-named to theme.txt.

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

MichielD

Hi all,

Mayby it's a silly question... In that case I'm so sorry...  ;)

I'm going to set up Coppermine for a friend. He's a semi-professional photographer. He has no intentions to open a PayPal account, but still wants to use some sort of 'ordersystem'.

In other words: I'm looking for a system that allows users to order a photo directly, via e-mail. Shopping basket: yes - Checkout: no, just a simple mailmessage with the ordered photo's and address details.

Is that possible? Is there a system available...?

Mike

divernj

I am using the rainy day theme. I tried using an unedited version after the update failed the first time. The only changes I have made are less size options (9) and no paper options. Thank you for your help.

cnico88

#294
So can someone plz answer my question because if everything doesn't look the same my site will look unprofessional

www.cincophoto.com -- my photo gallery

Joachim Müller

This is not a hotline, nor do you have a right that all your questions will be answered. Read http://coppermine.sourceforge.net/faq.php#lamesupport

cnico88

Quote from: GauGau on May 20, 2005, 08:05:59 AM
This is not a hotline, nor do you have a right that all your questions will be answered. Read http://coppermine.sourceforge.net/faq.php#lamesupport

I was jus wondering if anybody knows how to answer my question since Casper helped with the code for the View Basket button, wouldn't the Add to cart button have a somewhat simillar code? Thanks in advance for your reply!
www.cincophoto.com -- my photo gallery

RaptorUK

I considered using PayPal but instead used Photobox PrintButton,  I think they might be UK based only though.  They take the order,  print the photographs and handle the post,  very quick very good quality.  They take a 5% cut from your profit.

zpeek

Is there a way were it can just email the information instead of using a paypal basket.

rterburg

I've downloaded the PayPal mod yesterday and changed te code as discribed in the "code-changes.html" document. Everything works fine but I also get the Please enter an amount greater than zero. error.

I have read the options to solve this problem, but it doesn't work. I'm using Coppermine 1.3.3 and the Project_ii theme (modified). I have attached the theme.php and template.html in a zip file.

The url to the gallery on my website is http://www.terburg.net/gallery/index.php?lang=english

Can anyone help me?

Thanks in advance.

Regards, Ron
~Ron~
www.terburg.net, Dutch landscape- and naturephotography