How To Show The Ip Address For The New Register Customers & Vendors

Hi



Does some one know how to show the IP address from the new register customer and new register vendor on the admin back office of the multi vendor version 4.2?



Because we need check the IP address to make double verification of the new customer and vendor, if the IP address is not from the shipping or billing address, we will call the customer or vendor to make a new verification by phone.



Thanks in advance!



Franck

You can add the information wherever you want in the templates. The smarty template variable to use would be:

{$smarty.server.REMOTE_ADDR}

[quote name='tbirnseth' timestamp='1418773858' post='199996']

You can add the information wherever you want in the templates. The smarty template variable to use would be:

{$smarty.server.REMOTE_ADDR}

[/quote]



Hi EZ



I don't understand for this, can you explain to me please?



Thanks

In re-reading your description, you will need to add fields to the DB to store the IP, then modify templates to display those new fields. It is development work. If you're not a developer, you should contact one of the many here (or click the link in my signature below) and get a quote for doing the custom work for you.

[quote name='tbirnseth' timestamp='1418773858' post='199996']

You can add the information wherever you want in the templates. The smarty template variable to use would be:

{$smarty.server.REMOTE_ADDR}

[/quote]



I think, Enew wants to store IP addresses of new vendors and customers in the database. In this case additional code modifications are required. This feature is not a part of the clean CS-Cart installation.

Does this work for in the footer?

Because on my old store platform i added the ip php code in the class footer.php and in the panel footer html inserted the snippet code. A little bit old school i did. everything renewed now with modules and addons. I can not follow anymore loll

example php class:


$GLOBALS['IPAddress'] = $_SERVER['REMOTE_ADDR'];


snippet code in footer html


Uw IP: %%GLOBAL_IPAddress%%





But i dont get it working in the account footer block on cs cart

Example: your IP: 12.123.123.123



I like this to show to, but on the public site in a block



Regards

[quote name='Anaconda' timestamp='1418841944' post='200142']

Does this work for in the footer?



Because on my old store platform i added the ip php code in the class footer.php and in the panel footer html inserted the snippet code. A little bit old school i did. everything renewed now with modules and addons. I can not follow anymore loll

example php class:


$GLOBALS['IPAddress'] = $_SERVER['REMOTE_ADDR'];


snippet code in footer html


Uw IP: %%GLOBAL_IPAddress%%





But i dont get working in the account footer block on cs cart

Example: your IP: 12.123.123.123



I like this to show to, but on the public site in a block



Regards

[/quote]thanks, i trying

HTML block with smarty support:

Your IP: {$smarty.server.REMOTE_ADDR}

[quote name=‘tbirnseth’ timestamp=‘1418894597’ post=‘200198’]

HTML block with smarty support: ```php

Your IP: {$smarty.server.REMOTE_ADDR}

```
[/quote]

Ok thank you, i used the html block. Now its working. ;)

[quote name=‘Anaconda’ timestamp=‘1418914673’ post=‘200248’]

Ok thank you, i used the html block. Now its working. ;)

[/quote]



Thanks :grin: