Customising product listing

  • Posts: 139
  • Thank you received: 1
11 years 1 month ago #129443

How do I change the following in the product listing?

Want to change "items in stock" to "places left"
Want to add a brief description between the item title and "items in stock" i.e. insert one of my custom fields.

Last edit: 11 years 1 month ago by abasel.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #129476

Hi,

Some CSS and views modifications through "Hikashop->Display->Views" will probably do the job, but can you give us more information about what do you exactly want to do through some screenshots for example ?

Thanks.

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

  • Posts: 139
  • Thank you received: 1
11 years 1 month ago #129594

In the listing (one product shown below), I want items in stock to be replaced with places left and I want two custom fields to be displayed as well.

... Just looked properly at at the modification option... lots of files... which ones should I look at?

Attachments:
Last edit: 11 years 1 month ago by abasel.

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

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
11 years 1 month ago #129610

Hi,

You can override the translation used for this text.
www.hikashop.com/support/faq.html#tran

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: 139
  • Thank you received: 1
11 years 1 month ago #129657

Ok, so I am nearly there.

I now want to make a custom field appear below the "Items in stock".

I have a custom field in the Product table with a column name of agegroup. In product / quantity.php I want to add a line that prints the following:

echo "Age Group".$agegroup."<br/>"

I just am not sure how to get the value of agegroup into $agegroup.

Last edit: 11 years 1 month ago by abasel.

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
11 years 1 month ago #129669

You should do:

echo "Age Group".$this->row->agegroup."<br/>"

The following user(s) said Thank You: abasel

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

  • Posts: 139
  • Thank you received: 1
11 years 1 month ago #129737

Great... thanks for that, worked like a dream :-)

Last edit: 11 years 1 month ago by abasel.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum