Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4253
Latest: Ineedsmfhelp
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43242
Total Topics: 7516
Most Online Today: 126
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 116
Total: 116

Author Topic: Adding a receipt number to Purchase Email  (Read 2904 times)

0 Members and 1 Guest are viewing this topic.

Offline KKOG

  • Community Suite Customer
  • Member
  • ******
  • Posts: 47
    • View Profile
Adding a receipt number to Purchase Email
« on: December 06, 2017, 06:57:13 pm »
Hello,

Some further assistance sought.

The legislation under which our association operates requires us to issue receipts for membership payments in the form "Financial Year-Sequential Number" eg "17/18-123".  The receipt number received through the PayPal transaction does not the legislative requirement.

I would like to add a receipt number for all purchases from our store, both membership and non-membership, with the sequential number incrementing no matter what type of purchase is made.

We could issue the receipt number as part of the text of the Purchase Email, but this would require the addition of 2 parameters that could be included into the text, i.e. one for Financial Year and one for the Sequential Number.  These parameters could be defined in the Store Settings, with the starting number for the Sequential Number being defined as would be the current Financial Year (if defined as a parameter then the financial year could be for example 17/18 or 2017 depending on how it is defined).  I am assuming the Sequential Number would require the addition of a field in the database.

Could you please advise if the above is possible and if you were to do it for us could you please PM me any cost that would be involved.

Thanks
Greg Ralph
KKOG Forum Admin

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • View Profile
Re: Adding a receipt number to Purchase Email
« Reply #1 on: December 06, 2017, 07:01:04 pm »
For Sequential Number can that the order id?? If so then we only need to add one field in the admin area for the year.
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 KKOG

  • Community Suite Customer
  • Member
  • ******
  • Posts: 47
    • View Profile
Re: Adding a receipt number to Purchase Email
« Reply #2 on: December 06, 2017, 09:15:04 pm »
The Sequential Number could be the Order ID (number)

Offline KKOG

  • Community Suite Customer
  • Member
  • ******
  • Posts: 47
    • View Profile
Re: Adding a receipt number to Purchase Email
« Reply #3 on: December 07, 2017, 03:38:07 pm »
Our Sec/Treasurer has asked that the receipt number asl be included in the Purchase Notification for Store Admins email as well.

This would mean making the % parameters available to that email as well.

Regards
Greg Ralph
KKOG Forum Admin

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • View Profile
Re: Adding a receipt number to Purchase Email
« Reply #4 on: December 07, 2017, 03:44:40 pm »
Ok Can it should be 2017 or do you want two digits for year I can generate it internally as long as it is the current year.
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 KKOG

  • Community Suite Customer
  • Member
  • ******
  • Posts: 47
    • View Profile
Re: Adding a receipt number to Purchase Email
« Reply #5 on: December 07, 2017, 04:56:38 pm »
Could you please make it 2017, ie 4 digits, using the current year.

Thanks
Greg Ralph
KKOG Forum Admin



Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • View Profile
Re: Adding a receipt number to Purchase Email
« Reply #6 on: December 07, 2017, 06:29:10 pm »
Yes
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 SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • View Profile
Re: Adding a receipt number to Purchase Email
« Reply #7 on: December 07, 2017, 10:35:36 pm »
I posted an update check for this code in storeipn2.php https://www.smfhacks.com/index.php/topic,825.msg5016.html#msg5016

In multiple spots
Code: [Select]
//KKOG
$message = str_replace('%receiptnumber', date("Y"). '-' . $basketID,$message);


Then in your email template add this variable %receiptnumber
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 KKOG

  • Community Suite Customer
  • Member
  • ******
  • Posts: 47
    • View Profile
Re: Adding a receipt number to Purchase Email
« Reply #8 on: December 08, 2017, 12:39:47 am »
Thank you for this.  I have downloaded the new version.

Greg Ralph
KKOG Forum Admin

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
6323 Views
Last post October 05, 2006, 01:12:17 am
by Nite
20 Replies
8935 Views
Last post October 02, 2017, 03:00:50 pm
by Michael Vail
5 Replies
3475 Views
Last post November 15, 2017, 05:29:15 pm
by SMFHacks
1 Replies
2096 Views
Last post October 24, 2018, 07:47:29 am
by SMFHacks
7 Replies
1816 Views
Last post May 18, 2022, 02:54:54 pm
by Shades

+- Recent Topics

is it possible to add support for odysee.com by SMFHacks
March 13, 2024, 10:53:28 pm

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

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

User Gallery Feature: move / bulk move images by SMFHacks
January 30, 2024, 05:48:25 pm

In the future it may be for smf 2.1.x? by smithloo
January 30, 2024, 12:55:34 am

Powered by EzPortal