• [MOD] Paypal Mod (Shop Mod Lite) 5 0 5 1
Currently:  

Author Topic: [MOD] Paypal Mod (Shop Mod Lite)  (Read 89709 times)

0 Members and 1 Guest are viewing this topic.

Offline sau4scr

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #15 on: March 26, 2006, 11:05:00 PM »
Ok, so I applied this to my site simply because I like the ability to give an image a different price.

Here is my one question,
{if price} {details_paypal} {endif price}

I want to make another line of that if no price then show this. So I did this...
{if no price} {details_paypal} {endif no price}

And it did not work, how do I do that so if there is no price then they can download the image?

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #16 on: March 27, 2006, 12:22:47 AM »
it depends of which 4images version you use.

if you use 1.71 and have installed the ifno mod which posted from vano,
you should use {ifno price} {details_paypal} {endifno price}

otherwise for 1.72
{ifnot price} {details_paypal} {endifnot price}
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline sau4scr

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #17 on: March 27, 2006, 12:46:47 AM »
Thank you! Much appreciated!

Offline up23

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #18 on: March 31, 2006, 01:53:37 PM »
Quote
what do you mean?
You mean the email from the user who want to buy the image?
if yes, the users email is already been parsed (if set) in the {buyer_emall} tag
Thanks for the fix icecream. I got the problem solved. I wanted to send the money to the uploader of the image, so I had to get the uploader's email. I added
Code: [Select]
$owner_email = $image_row['user_email']; to details.php after the first sql query:
Code: [Select]
$image_row = $site_db->query_firstrow($sql); and added
Code: [Select]
"owner_email" => $owner_email, under the "Print Out" section. I used
Code: [Select]
{owner_email} on the details.html template file.

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #19 on: March 31, 2006, 06:29:54 PM »
ok, if you were more detailed in your first post,
then i could have give you a solution too.
i thought you mean the email adress of the user, who want to buy that picture.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline nika2000

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #20 on: April 11, 2006, 11:18:54 PM »
Hi!

Is there a possibility to set more than one price??

Greetings
Nika-2000

Offline Grutho

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #21 on: April 15, 2006, 09:51:49 PM »
Hi,
I implemented this nice MOD, but after the payment there is no recive to download for the bought Image. Is that right or did I anything wrong? If not, one witch way I can realised an automatic download for the bought Images?

Thanks in Advanced  :roll:

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #22 on: April 17, 2006, 12:44:40 AM »
no, you didn't something wrong.
this mod is for paying only,
there are no option for download after buying.

an automatic download option would require some more improvements for this mod,
which i will not do...cause this mod isn't a "full" shop mod.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline edwin

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • http://www.foto-janssen.nl
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #23 on: April 17, 2006, 04:54:54 PM »
panic, panic, panic

I tried to install your MOD and i'm getting the below DB error, mayby you can take a look before uninstal it
I did it exactly like you wrote and it gave me a notice that the db was update succesfully

If it not easy resolve the problem, can you tell me then how i can remove the I.price collum from the field list

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, i.price, c.cat_name, u.user_name, u.user_email FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_id = 165493 AND c.cat_id = i.cat_id
Unknown column 'i.price' in 'field list'

with regards

www.foto-janssen.nl
« Last Edit: April 17, 2006, 05:13:14 PM by edwin »

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #24 on: April 17, 2006, 06:59:21 PM »
try to run the installer again,
seems the required field price is missing.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline edwin

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • http://www.foto-janssen.nl
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #25 on: April 17, 2006, 07:03:09 PM »
okay, tried this now i get

DB Error: Bad SQL Query: ALTER TABLE `4images_images` ADD `price2` VARCHAR( 12 ) NOT NULL
Duplicate column name 'price2'
an Error occured

i'm using 1.7.1, mayby this will help

Offline Grutho

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #26 on: April 18, 2006, 04:33:20 PM »
Dont worry...

change the database fild name from price2 to price.

And all must works fine!

Regards, Tom

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #27 on: April 21, 2006, 12:09:23 PM »
could it be, that you already had installed an other mod,
who is using a field named price2?

i tested this mod with 1.71 (fresh install) and it worked.
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline edwin

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • http://www.foto-janssen.nl
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #28 on: April 21, 2006, 02:11:20 PM »
I don't think that possible, i havn't uninstalled it because customers don't have to see the problem and i havn't got time to try it again, i will let you know

regards

edwin

Offline aymanati

  • Full Member
  • ***
  • Posts: 214
    • View Profile
    • http://lqta.com
Re: [MOD] Paypal Mod (Shop Mod Lite)
« Reply #29 on: May 12, 2006, 12:16:19 PM »
Hi;
Nice mod ..

How can we make the price set by each user (who upload images) with image upload?
In other words, I have users who upload their photography, and i want them to be able to set price for each image they upload.
And to display a link to contact the user directly instead of the PayPal link.
This will make the users able to sell their images.

I've been thinking in this long time but no result ..
how can we do that?

Thanks

 

Post your comments here