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

#   adding fields relative to date and time

##

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 1 week ago -  10 years 1 week ago [\#255030](#255030) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  *[adding fields relative to date and time](/forum/19-hikamarket/887432-adding-fields-relative-to-date-and-time#255030 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  how can i add the following fields on product / show&#95;tabular?  1. no of views a product is viewed 2. vendor image 3. vendor date registered - can we change the format to 2 weeks ago or 1 month ago or 2 mins ago 4. vendor last visit  i tried this code for the vendor created date but its blank  thanks")* was created by *[ronron](/forum/user/40399-ronron "View ronron's Profile")*

-- HikaShop version -- : 2.6.3
-- HikaMarket version -- : 1.7.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

how can i add the following fields on product / show_tabular?

1. no of views a product is viewed
2. vendor image
3. vendor date registered - can we change the format to 2 weeks ago or 1 month ago or 2 mins ago
4. vendor last visit

i tried this code for the vendor created date but its blank
Code:

echo 'Registration Date : '.hikashop_getDate($this-&gt;element-&gt;vendor_created,'%d-%m-%Y');

thanks

Last edit: 10 years 1 week ago by [ronron](/forum/user/40399-ronron "View ronron's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3NDMyLWFkZGluZy1maWVsZHMtcmVsYXRpdmUtdG8tZGF0ZS1hbmQtdGltZT90bXBsPW1hcmtkb3du) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 1 week ago [\#255039](#255039) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[adding fields relative to date and time](/forum/19-hikamarket/887432-adding-fields-relative-to-date-and-time#255039 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  how can i add the following fields on product / show&#95;tabular?  1. no of views a product is viewed 2. vendor image 3. vendor date registered - can we change the format to 2 weeks ago or 1 month ago or 2 mins ago 4. vendor last visit  i tried this code for the vendor created date but its blank  thanks")*

Hi,

In the product page, you can access to the vendor object through Code:

$this-&gt;element-&gt;vendor

Regards,

---

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

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

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 1 week ago -  10 years 1 week ago [\#255128](#255128) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[adding fields relative to date and time](/forum/19-hikamarket/887432-adding-fields-relative-to-date-and-time#255128 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  how can i add the following fields on product / show&#95;tabular?  1. no of views a product is viewed 2. vendor image 3. vendor date registered - can we change the format to 2 weeks ago or 1 month ago or 2 mins ago 4. vendor last visit  i tried this code for the vendor created date but its blank  thanks")*

hi

i cant get it to work

this is the error

> Catchable fatal error: Object of class stdClass could not be converted to string in

i also tried the following
Code:

echo 'Selle Created Date : '.hikashop_get($this-&gt;element-&gt;vendor,'vendor'); = errror echo 'Selle Created Date : '.hikashop_getDate($this-&gt;element-&gt;vendor_created,'%d-%m-%Y'); = blank

thanks

Last edit: 10 years 1 week ago by [ronron](/forum/user/40399-ronron "View ronron's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3NDMyLWFkZGluZy1maWVsZHMtcmVsYXRpdmUtdG8tZGF0ZS1hbmQtdGltZT90bXBsPW1hcmtkb3du) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 1 week ago [\#255130](#255130) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[adding fields relative to date and time](/forum/19-hikamarket/887432-adding-fields-relative-to-date-and-time#255130 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  how can i add the following fields on product / show&#95;tabular?  1. no of views a product is viewed 2. vendor image 3. vendor date registered - can we change the format to 2 weeks ago or 1 month ago or 2 mins ago 4. vendor last visit  i tried this code for the vendor created date but its blank  thanks")*

Hi,

Please ready very carefully my previous message.
I told you that " $this-&gt;element-&gt;vendor " is the vendor object.
It is not a string, it is not "I don't know what", it is the vendor object with inside all data for the vendor of the current product.
Now if you do not have the required PHP/development knowledge, please try to find someone to assist you.

Regards,

---

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

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

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

10 years 1 week ago -  10 years 1 week ago [\#255167](#255167) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[adding fields relative to date and time](/forum/19-hikamarket/887432-adding-fields-relative-to-date-and-time#255167 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  how can i add the following fields on product / show&#95;tabular?  1. no of views a product is viewed 2. vendor image 3. vendor date registered - can we change the format to 2 weeks ago or 1 month ago or 2 mins ago 4. vendor last visit  i tried this code for the vendor created date but its blank  thanks")*

yes i dont have, not much knowledge in php, i usually just google it.

anyways, how much to get the code for this

thanks again

Last edit: 10 years 1 week ago by [ronron](/forum/user/40399-ronron "View ronron's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3NDMyLWFkZGluZy1maWVsZHMtcmVsYXRpdmUtdG8tZGF0ZS1hbmQtdGltZT90bXBsPW1hcmtkb3du) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 1 week ago [\#255193](#255193) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[adding fields relative to date and time](/forum/19-hikamarket/887432-adding-fields-relative-to-date-and-time#255193 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  how can i add the following fields on product / show&#95;tabular?  1. no of views a product is viewed 2. vendor image 3. vendor date registered - can we change the format to 2 weeks ago or 1 month ago or 2 mins ago 4. vendor last visit  i tried this code for the vendor created date but its blank  thanks")*

Hi,
Code:

$this-&gt;element-&gt;vendor-&gt;vendor_name; $this-&gt;element-&gt;vendor-&gt;vendor_created; // ...

Regards,

---

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

The following user(s) said Thank You: [ronron](/forum/user/40399-ronron "View ronron's Profile")

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

- **[ronron](/forum/user/40399-ronron "View ronron's Profile")**
- [![ronron's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/bad_baby.jpg)](/forum/user/40399-ronron "View ronron's Profile") Topic Author
- [ Offline](/forum/user/40399-ronron)

Less More

- Posts: 490
- Thank you received: 2
-
-

9 years 11 months ago [\#257435](#257435) by [ronron](/forum/user/40399-ronron "View ronron's Profile")  Replied by *[ronron](/forum/user/40399-ronron "View ronron's Profile")* on topic *[adding fields relative to date and time](/forum/19-hikamarket/887432-adding-fields-relative-to-date-and-time#257435 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  how can i add the following fields on product / show&#95;tabular?  1. no of views a product is viewed 2. vendor image 3. vendor date registered - can we change the format to 2 weeks ago or 1 month ago or 2 mins ago 4. vendor last visit  i tried this code for the vendor created date but its blank  thanks")*

hi

is there data for vendors last visit? i cant find any column for the vendors last visit.

i would like to add the last time vendor last visited the site in tabular view.

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3NDMyLWFkZGluZy1maWVsZHMtcmVsYXRpdmUtdG8tZGF0ZS1hbmQtdGltZT90bXBsPW1hcmtkb3du) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 11 months ago [\#257440](#257440) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[adding fields relative to date and time](/forum/19-hikamarket/887432-adding-fields-relative-to-date-and-time#257440 "-- HikaShop version -- : 2.6.3 -- HikaMarket version -- : 1.7.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5 -- Error-message(debug-mod must be tuned on) -- : none  hi  how can i add the following fields on product / show&#95;tabular?  1. no of views a product is viewed 2. vendor image 3. vendor date registered - can we change the format to 2 weeks ago or 1 month ago or 2 mins ago 4. vendor last visit  i tried this code for the vendor created date but its blank  thanks")*

Hi,

There is no "last visit" for the vendor because the vendor do not connect.
A Joomla account can connect to the website but knowing the fact that a vendor can have multiple user, there is no record of the login of a vendor.

Regards,

---

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

The following user(s) said Thank You: [ronron](/forum/user/40399-ronron "View ronron's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODg3NDMyLWFkZGluZy1maWVsZHMtcmVsYXRpdmUtdG8tZGF0ZS1hbmQtdGltZT90bXBsPW1hcmtkb3du) 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.058 seconds

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