adding fields relative to date and time

  • Posts: 490
  • Thank you received: 2
8 years 1 week ago #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_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

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

thanks

Last edit: 8 years 1 week ago by ronron.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 1 week ago #255039

Hi,

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

$this->element->vendor

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: 490
  • Thank you received: 2
8 years 1 week ago #255128

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
echo 'Selle Created Date : '.hikashop_get($this->element->vendor,'vendor'); = errror
echo 'Selle Created Date : '.hikashop_getDate($this->element->vendor_created,'%d-%m-%Y'); = blank

thanks

Last edit: 8 years 1 week ago by ronron.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 1 week ago #255130

Hi,

Please ready very carefully my previous message.
I told you that " $this->element->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 & 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: 490
  • Thank you received: 2
8 years 1 week ago #255167

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: 8 years 1 week ago by ronron.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 1 week ago #255193

Hi,

$this->element->vendor->vendor_name;
$this->element->vendor->vendor_created;
// ...

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.
The following user(s) said Thank You: ronron

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

  • Posts: 490
  • Thank you received: 2
7 years 11 months ago #257435

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 or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 11 months ago #257440

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 & 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.
The following user(s) said Thank You: ronron

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

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