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: 118
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 91
Total: 91

Author Topic: Add in product description to Purchase Notification for Store Admins email  (Read 3508 times)

0 Members and 1 Guest are viewing this topic.

Offline KKOG

  • Member
  • *
  • Posts: 47
    • View Profile
Hello,

I am trying to add the product name to the Purchase Notification for Store Admins email.

I have added the variable %productname in various combination without success. 

Is there a change needed in storeipn2.php to achieve this?

Thanks
KKOG Forum Admin

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Add in product description to Purchase Notification for Store Admins email
« Reply #1 on: November 12, 2017, 11:58:58 am »
Yes a change will be needed that tag will not work.. You can try to get main product name that is passed the issue is if you use the shopping cart there can be multiple items and that would require checking the shopping cart basket that was used to get the list.
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

  • Member
  • *
  • Posts: 47
    • View Profile
Re: Add in product description to Purchase Notification for Store Admins email
« Reply #2 on: November 12, 2017, 04:23:49 pm »
Thanks for the response.

Can you suggest the code change needed?

Thanks
KKOG Forum Admin

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Add in product description to Purchase Notification for Store Admins email
« Reply #3 on: November 15, 2017, 04:15:55 pm »
You want to modify Storeipn2.php
Around line 925
Find
Code: [Select]
$message = str_replace("%storetransactionlist", $scripturl . '?action=admin;area=store;sa=trans' ,$message);
Add after
Code: [Select]
$message = str_replace('%productname',$row['productname'],$message);
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/
Like Like x 1 View List

Offline KKOG

  • Member
  • *
  • Posts: 47
    • View Profile
Re: Add in product description to Purchase Notification for Store Admins email
« Reply #4 on: November 15, 2017, 05:20:11 pm »
Once again thank you for responses.

I have been able to make the code changes and have achieved the outcome I sought.

This mod is very flexible and I would recommend it to anyone who wishes to add store functionality to their forum.

KKOG Forum admin
Like Like x 2 View List

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Add in product description to Purchase Notification for Store Admins email
« Reply #5 on: November 15, 2017, 05:29:15 pm »
Thanks :)
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
4 Replies
6809 Views
Last post October 15, 2006, 07:57:53 pm
by rjmiz
5 Replies
4176 Views
Last post July 15, 2015, 11:17:01 am
by pasqualino77
20 Replies
9045 Views
Last post October 02, 2017, 03:00:50 pm
by Michael Vail
7 Replies
3381 Views
Last post October 22, 2017, 11:10:04 pm
by KKOG
7 Replies
1748 Views
Last post May 20, 2022, 08:58:15 pm
by Michael Vail

+- 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