[Skip to main content](#vessel-content)

#   Possible to use/include session variable within vendor email field??

##

- **[lyran](/forum/user/46161-lyran "View lyran's Profile")**
- [![lyran's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46161-lyran "View lyran's Profile") Topic Author
- [ Offline](/forum/user/46161-lyran)

Less More

- Posts: 26
- Thank you received: 1
-
-

9 years 8 months ago -  9 years 8 months ago [\#262952](#262952) by [lyran](/forum/user/46161-lyran "View lyran's Profile")  *[Possible to use/include session variable within vendor email field??](/forum/23-market-how-to/888966-possible-to-use-include-session-variable-within-vendor-email-field#262952 "-- Joomla version -- : 3.6.4  Hi All  I was wondering if it's possible to use/include session variable within vendor email field??  $storeid = JRequest::getVar('store');  Please see screen shot?  Thank you")* was created by *[lyran](/forum/user/46161-lyran "View lyran's Profile")*

-- Joomla version -- : 3.6.4

Hi All

I was wondering if it's possible to use/include session variable within vendor email field??

$storeid = JRequest::getVar('store');

%$storeid%@hikashop.com

Please see screen shot?
[ ![vendor-email.png](/forum/attachment/36472) ](/forum/attachment/36472 "vendor-email.png")

Thank you

- [ ![vendor-email.png](/forum/attachment/36472) ](/forum/attachment/36472 "vendor-email.png") [ ](/forum/attachment/36472?download=1 "vendor-email.png")

Last edit: 9 years 8 months ago by [lyran](/forum/user/46161-lyran "View lyran's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg4OTY2LXBvc3NpYmxlLXRvLXVzZS1pbmNsdWRlLXNlc3Npb24tdmFyaWFibGUtd2l0aGluLXZlbmRvci1lbWFpbC1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#262953](#262953) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Possible to use/include session variable within vendor email field??](/forum/23-market-how-to/888966-possible-to-use-include-session-variable-within-vendor-email-field#262953 "-- Joomla version -- : 3.6.4  Hi All  I was wondering if it's possible to use/include session variable within vendor email field??  $storeid = JRequest::getVar('store');  Please see screen shot?  Thank you")*

Hi,

I am sorry but I don't understand what you want to do exactly.
The vendor data is stored directly in the database and a lot of actions are made without session or else.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg4OTY2LXBvc3NpYmxlLXRvLXVzZS1pbmNsdWRlLXNlc3Npb24tdmFyaWFibGUtd2l0aGluLXZlbmRvci1lbWFpbC1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lyran](/forum/user/46161-lyran "View lyran's Profile")**
- [![lyran's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46161-lyran "View lyran's Profile") Topic Author
- [ Offline](/forum/user/46161-lyran)

Less More

- Posts: 26
- Thank you received: 1
-
-

9 years 8 months ago -  9 years 8 months ago [\#263029](#263029) by [lyran](/forum/user/46161-lyran "View lyran's Profile")  Replied by *[lyran](/forum/user/46161-lyran "View lyran's Profile")* on topic *[Possible to use/include session variable within vendor email field??](/forum/23-market-how-to/888966-possible-to-use-include-session-variable-within-vendor-email-field#263029 "-- Joomla version -- : 3.6.4  Hi All  I was wondering if it's possible to use/include session variable within vendor email field??  $storeid = JRequest::getVar('store');  Please see screen shot?  Thank you")*

Hi Jerome,

What we want to do is instead of having one static email address, we need to make the vendor email address dynamic, So it will change based on the visitor and session value. Does this make any sense???

For example: in RSform! under the Admin Emails, we have quick add option which allows us to add **{Store Number:value}** placeholder,
this placeholder value will change based on visitor and session value.

Please see the attachment
[ ![RSForm-quickadd&#95;2017-02-21.png](/forum/attachment/36492) ](/forum/attachment/36492 "...2017-02-21.png")

Thank you

- [ ![RSForm-quickadd.png](/forum/attachment/36491) ](/forum/attachment/36491 "...m-quickadd.png") [ ](/forum/attachment/36491?download=1 "...m-quickadd.png")
- [ ![RSForm-quickadd&#95;2017-02-21.png](/forum/attachment/36492) ](/forum/attachment/36492 "...2017-02-21.png") [ ](/forum/attachment/36492?download=1 "...2017-02-21.png")

Last edit: 9 years 8 months ago by [lyran](/forum/user/46161-lyran "View lyran's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg4OTY2LXBvc3NpYmxlLXRvLXVzZS1pbmNsdWRlLXNlc3Npb24tdmFyaWFibGUtd2l0aGluLXZlbmRvci1lbWFpbC1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#263033](#263033) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Possible to use/include session variable within vendor email field??](/forum/23-market-how-to/888966-possible-to-use-include-session-variable-within-vendor-email-field#263033 "-- Joomla version -- : 3.6.4  Hi All  I was wondering if it's possible to use/include session variable within vendor email field??  $storeid = JRequest::getVar('store');  Please see screen shot?  Thank you")*

Hi,

I'm afraid that not possible :

> The vendor data is stored directly in the database and a lot of actions are made without session or else.

If you want vendors with different emails, you need to create several vendors.
But because you can send an email to the vendor with any kind of context, what you want to do is not possible.

Thanks to custom development you should be able to do a lot of things ; probably what you want to achieve but the way that you want to achieve that (using the session) is not the right one and will not work at all.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg4OTY2LXBvc3NpYmxlLXRvLXVzZS1pbmNsdWRlLXNlc3Npb24tdmFyaWFibGUtd2l0aGluLXZlbmRvci1lbWFpbC1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lyran](/forum/user/46161-lyran "View lyran's Profile")**
- [![lyran's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46161-lyran "View lyran's Profile") Topic Author
- [ Offline](/forum/user/46161-lyran)

Less More

- Posts: 26
- Thank you received: 1
-
-

9 years 8 months ago -  9 years 8 months ago [\#263163](#263163) by [lyran](/forum/user/46161-lyran "View lyran's Profile")  Replied by *[lyran](/forum/user/46161-lyran "View lyran's Profile")* on topic *[Possible to use/include session variable within vendor email field??](/forum/23-market-how-to/888966-possible-to-use-include-session-variable-within-vendor-email-field#263163 "-- Joomla version -- : 3.6.4  Hi All  I was wondering if it's possible to use/include session variable within vendor email field??  $storeid = JRequest::getVar('store');  Please see screen shot?  Thank you")*

Thank you Jerome,

> Jerome wrote: Thanks to custom development you should be able to do a lot of things ;

What kind of custom development do we need to do inorder to achieve something similare?
Plugin development ? or modifay exisitng files, views?

Regards

Last edit: 9 years 8 months ago by [lyran](/forum/user/46161-lyran "View lyran's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg4OTY2LXBvc3NpYmxlLXRvLXVzZS1pbmNsdWRlLXNlc3Npb24tdmFyaWFibGUtd2l0aGluLXZlbmRvci1lbWFpbC1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lyran](/forum/user/46161-lyran "View lyran's Profile")**
- [![lyran's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46161-lyran "View lyran's Profile") Topic Author
- [ Offline](/forum/user/46161-lyran)

Less More

- Posts: 26
- Thank you received: 1
-
-

9 years 8 months ago [\#263203](#263203) by [lyran](/forum/user/46161-lyran "View lyran's Profile")  Replied by *[lyran](/forum/user/46161-lyran "View lyran's Profile")* on topic *[Possible to use/include session variable within vendor email field??](/forum/23-market-how-to/888966-possible-to-use-include-session-variable-within-vendor-email-field#263203 "-- Joomla version -- : 3.6.4  Hi All  I was wondering if it's possible to use/include session variable within vendor email field??  $storeid = JRequest::getVar('store');  Please see screen shot?  Thank you")*

Jerome,

onBeforeMailSend() how can I list all the vendors which will receive notification after the order is created?

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg4OTY2LXBvc3NpYmxlLXRvLXVzZS1pbmNsdWRlLXNlc3Npb24tdmFyaWFibGUtd2l0aGluLXZlbmRvci1lbWFpbC1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#263212](#263212) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Possible to use/include session variable within vendor email field??](/forum/23-market-how-to/888966-possible-to-use-include-session-variable-within-vendor-email-field#263212 "-- Joomla version -- : 3.6.4  Hi All  I was wondering if it's possible to use/include session variable within vendor email field??  $storeid = JRequest::getVar('store');  Please see screen shot?  Thank you")*

Hello,

I'll try to resume what I told you in my previous messages :
What you're asking is not logical and I already told you that several times.
I have currently no idea of how it could be possible because it is totally illogical and not possible.
So I don't know how you would achieve such thing.

For sure you can use the trigger "onBeforeMailSend" to change dynamically the vendor email address.
But you might not have the user session (because an email can be send from a lot of different kind of events) so for my point of view ; it is not possible.
[ www.hikashop.com/support/documentation/6...r-documentation.html](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html)

I'm afraid that it would require a pretty important development.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg4OTY2LXBvc3NpYmxlLXRvLXVzZS1pbmNsdWRlLXNlc3Npb24tdmFyaWFibGUtd2l0aGluLXZlbmRvci1lbWFpbC1maWVsZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.236 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
