Skip to main content

adding fields relative to date and time

More
9 years 10 months ago - 9 years 10 months ago #255030 by ronron
-- 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->element->vendor_created,'%d-%m-%Y');

thanks
Last edit: 9 years 10 months ago by ronron.

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

More
9 years 10 months ago #255039 by Jerome
Hi,

In the product page, you can access to the vendor object through
Code:
$this->element->vendor

Regards,

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

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

More
9 years 10 months ago - 9 years 10 months ago #255128 by ronron
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->element->vendor,'vendor'); = errror echo 'Selle Created Date : '.hikashop_getDate($this->element->vendor_created,'%d-%m-%Y'); = blank

thanks
Last edit: 9 years 10 months ago by ronron.

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

More
9 years 10 months ago #255130 by Jerome
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.

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

More
9 years 10 months ago - 9 years 10 months ago #255167 by ronron
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: 9 years 10 months ago by ronron.

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

More
9 years 10 months ago #255193 by Jerome
Hi,
Code:
$this->element->vendor->vendor_name; $this->element->vendor->vendor_created; // ...

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: ronron

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

More
9 years 9 months ago #257435 by ronron
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.

More
9 years 9 months ago #257440 by Jerome
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.
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.226 seconds
Powered by Kunena Forum