Advertisement:

Author Topic: link a field to display in ad list view  (Read 556 times)

pcware

  • Newbie
  • *
  • Posts: 13
link a field to display in ad list view
« on: April 10, 2017, 01:19:00 am »
Hello everyone,

I would like some help in a little task i am trying to accomplish here;
I am trying to link a couple of car attribute fields (mileage & transmission) to search listings page (only for display) probably to be located under the price field as it shows in the image. These fields are not meta fields, but currently stored in "t_item_car_attr".

Any hint or quick solution would be much appreciated.

P.S. Theme: zara, osclass: 3.7.1

Thanks in advance for your help.

Regards.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: link a field to display in ad list view
« Reply #1 on: April 10, 2017, 08:15:11 pm »
Hi,

Code: [Select]
<?php
$detail 
ModelCars::newInstance()->getCarAttr(osc_item_id());

echo 
"Mileage: " $detail['i_mileage'] . "<br />";
echo 
"Transmission: " $detail['e_transmission'];
?>


Regards

pcware

  • Newbie
  • *
  • Posts: 13
Re: link a field to display in ad list view
« Reply #2 on: April 11, 2017, 03:15:10 am »
Hi teseo,

Before I posted my question i was so certain and really confident that you are the one who would answer me and provide me with the exact solution I am looking for to my problem.

Well, let me tell you this, I asked the same question, somewhere else within osclass, not long ago, and summary of what I got back as an answer was  "..No Can Do.."

I really appreciate your humanity teseo.

Thanks a lot and best regards.

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: link a field to display in ad list view
« Reply #3 on: April 11, 2017, 01:05:23 pm »
You're welcome. :) Regards