Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43293
Total Topics: 7522
Most Online Today: 79
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 83
Total: 83

Author Topic: "Notify all store admins of item purchase" Not Working in SMF 2.1.2 or 2.1.3  (Read 4125 times)

0 Members and 1 Guest are viewing this topic.

Offline Michael Vail

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Sonoma County DSA
Any chance you have timne to take another look at this?

Thanks in advance and sorry this has been such a hassle.

Happy New Year,
Mike

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Is it one item in the shopping cart? Or many?

Also create a text file in the root of your forum called store_debug.txt and make it writable
Open storeipn2.php
Find
Code: [Select]
define('DEBUG_STORE','0');
Change to
Code: [Select]
define('DEBUG_STORE','1');
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Michael Vail

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Sonoma County DSA
Is it one item in the shopping cart? Or many?

Usually people purchase only one thing at a time. I haven't tested it with multiple items but if you need me to I will, just let me know. As it stands now, all the tests I've run and that fail have been with a single item, free or otherwise.

Quote
Also create a text file in the root of your forum called store_debug.txt and make it writable

DONE

Quote
Open storeipn2.php
Find
Code: [Select]
define('DEBUG_STORE','0');
Change to
Code: [Select]
define('DEBUG_STORE','1');
[/quote]

DONE

Should I run some tests now?
« Last Edit: January 17, 2023, 12:51:39 pm by Michael Vail »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Yes run a test
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Michael Vail

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Sonoma County DSA
Ok, the latest. Purchases of free items, regardless of their quantity, results in the Admin message being emailed to the Admins. Purchases of items where the buyer pays via Paypal results in a Paypal message to the Admin but no sales Store Admin notice emails. Tried it with a single paid purchase and purchases of multiple items at the same time.

I opened the opened the store_debug.txt file and it's empty with nothing written to it. It's writable with '777' permissions and located in the forum's root directory.  Not sure why nothing is in there.

Sorry, I know this is a pain.
Mike
« Last Edit: September 04, 2023, 02:20:35 pm by Michael Vail »

Offline Michael Vail

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Sonoma County DSA
Also, none of the paid transactions are being stored in the transaction history of the store. Only the free transactions are. Neither the customer nor the Admins are receiving the notices of paid purchases and the transaction log doesn't contain a record of any paid purchases. The only record of paid purchases is the Paypal notice sent to the storekeeper and the customer.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
What happens when you visit site.com/storeipn2.php in browser?

Also, anything in your error log?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Michael Vail

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Sonoma County DSA
Here's a link to the storeipn2 on the site: https://www.sonomacountydsa.org/forums/storeipn2.php

All it says on the page is "Error"

The error log of the forum is clean of any store related errors. Just a bunch error from people who can't remember their stupid passwords!

Maybe I should completely remove all the files for the store from my site and reload the package from scratch? As long as doing that doesn't delete my store records and items, I can do that if you think it would help.

Thank you!
« Last Edit: January 19, 2023, 10:40:43 pm by Michael Vail »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Ok that is good just says error.
IS IPN enabled in your paypal account and the url pointed to storeipn2.php
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Michael Vail

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Sonoma County DSA
No one has adjusted our Paypal settings since I set up the store years ago. I have no reason to believe the IPN settings are not as they always have been when things were working correctly.

I went into Paypal and ran an IPN test transaction to our forum link: https://www.sonomacountydsa.org/forums/storeipn2.php and the Paypal system responded with "IPN was sent and the handshake was verified" so it appears the Paypal settings are working and Paypal is communicating with the Store as expected (see attached photo).

It appears the Store software just isn't recording the sales info Paypal is sending to it and the store probably isn't sending email notices because it doesn't know people have made paid purchases.
« Last Edit: January 20, 2023, 04:18:37 pm by Michael Vail »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
I would revert any changes and grab the storeipn2.php from the zip file and try again to make a purchase and see if it is recorded in the admin side at all.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Michael Vail

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Sonoma County DSA
On it, I'll update you when I'm done. THANKS!

Offline Michael Vail

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Sonoma County DSA
I uninstalled and deleted the entire store package. I deleted all the old files including the storeipn2 and storecoin files from the server after unistalling the package. The only store-related folder I left on the server was the "store" folder that contained the images and whatnot of the items I have listed for sale. I then reinstalled the store using a fresh download of the the latest store install package here on the site under the Store Download topic.

Paid transactions still fail to show in the Store Admin transaction log and only the Paypal Payment received notice is being received by the Admin.

On a side note, I just opened the store_debug.txt file and found it finally captured some data. It's didnt capture anything about my test purchases, including the one I just did tonight, but it did capture data from the sandbox test I ran from Paypal earlier. I've attached the file for your review. I have also attached the Paypal payment received message delivered to the Admin's email account. Interestingly, the test tonight also failed to provide me a payment sent email to my email when I paid for the item. That's new. Previous paypal test payments I sent showed up on yesterday's tests but not today. So bizarre.

Would you mind sending me one of the older store test packages to try and see if something in the current Store package (SMFStore5.0beta1.zip - dated November 29, 2022, 09:39:56 am) is the issue?

Thanks,
Mike
« Last Edit: January 20, 2023, 07:56:35 pm by Michael Vail »

Offline Michael Vail

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Sonoma County DSA
EDIT TO MY LAST MESSAGE: I just received the Payment Sent email 2 hours later so at least that's not a new problem! Unreal!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Sent email with some older versions of the mod.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
8771 Views
Last post September 25, 2007, 07:02:52 pm
by jim
1 Replies
3067 Views
Last post December 18, 2010, 02:53:04 am
by Vincent Volmer
3 Replies
3407 Views
Last post September 22, 2011, 07:36:35 am
by mandomercs
0 Replies
4195 Views
Last post January 22, 2014, 11:26:51 am
by dan4ever
2 Replies
4678 Views
Last post April 13, 2014, 11:12:24 am
by dan4ever

+- Recent Topics

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

Powered by EzPortal