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

  • Posts: 26
  • Thank you received: 1
7 years 9 months ago #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');

%$storeid%@hikashop.com

Please see screen shot?



Thank you

Attachments:
Last edit: 7 years 9 months ago by lyran.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #262953

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 26
  • Thank you received: 1
7 years 9 months ago #263029

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



Thank you

Attachments:
Last edit: 7 years 9 months ago by lyran.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #263033

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 26
  • Thank you received: 1
7 years 9 months ago #263163

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: 7 years 9 months ago by lyran.

Please Log in or Create an account to join the conversation.

  • Posts: 26
  • Thank you received: 1
7 years 9 months ago #263203

Jerome,

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


Regards

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 9 months ago #263212

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

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

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.081 seconds
Powered by Kunena Forum