Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12041
Latest: pablosanz
New This Month: 7
New This Week: 2
New Today: 0
Stats
Total Posts: 38405
Total Topics: 6768
Most Online Today: 55
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 37
Total: 37

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

0 Members and 1 Guest are viewing this topic.

Offline KKOG

  • SMF Store Customer
  • Newbie
  • *****
  • Posts: 24
    • 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: 14249
    • 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! Also contests/promotions for verified sites.

Offline KKOG

  • SMF Store Customer
  • Newbie
  • *****
  • Posts: 24
    • 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: 14249
    • 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! Also contests/promotions for verified sites.

Offline KKOG

  • SMF Store Customer
  • Newbie
  • *****
  • Posts: 24
    • 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 1 View List

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14249
    • 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! Also contests/promotions for verified sites.

 

Related Topics

  Subject / Started by Replies Last post
4 Replies
5481 Views
Last post October 15, 2006, 07:57:53 pm
by rjmiz
2 Replies
3231 Views
Last post September 03, 2009, 06:07:10 pm
by Bar Nuthin
5 Replies
1870 Views
Last post July 15, 2015, 11:17:01 am
by pasqualino77
20 Replies
2351 Views
Last post October 02, 2017, 03:00:50 pm
by scso1502
7 Replies
414 Views
Last post October 22, 2017, 11:10:04 pm
by KKOG

+- Recent Topics

upload 2 or more pictures at the same time by SMFHacks
December 12, 2017, 05:33:53 pm

gallery and switch to https for old or new images by SMFHacks
December 10, 2017, 08:08:42 pm

Bulk upload issue on Gallery Pro after upgrade to 7.2 by SMFHacks
December 10, 2017, 05:57:47 pm

Pretty URLs - SMF Gallery Lite by SMFHacks
December 09, 2017, 10:41:07 am

Adding a receipt number to Purchase Email by KKOG
December 08, 2017, 12:39:47 am

Tip: Image Proxy For SMF 1.1.x by SMFHacks
December 07, 2017, 10:43:41 am

[Mod]Recent Forum Topics Extended by monott001
December 07, 2017, 06:16:15 am

Random Image in TinyPortal Block Broken after SMF update by Boomslanger
December 04, 2017, 09:41:20 pm

Long time since upping my Gallery License by SMFHacks
December 04, 2017, 07:20:10 pm

SMF Classifieds by SMFHacks
December 04, 2017, 06:46:02 pm

Powered by EzPortal