Is it possible to access the filters directly?

  • Posts: 13
  • Thank you received: 2
1 year 8 months ago #343597

-- url of the page with the problem -- : www.mygoldmucevherat.com.tr
-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.1.5
-- Error-message(debug-mod must be tuned on) -- : Is it possible to access the filters directly?

Hi,

Is direct access to filters possible?

How can I access filters directly from outside the foreach with php?

For example $this->product->color
Likewise $this->product->color[value]
Is there such a use?

I will use this information to create a unique product demonstration for myself. The display of the product in each different category will be different.

Thanks.

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
1 year 8 months ago #343614

Hi,

I'm not sure I'm following you.

Are you talking about customizing the listings of products ? Or the product details page ?
On the product details page the data of the product is in $this->element and the data of the product on the listing is in $this->row
Which view file to edit depends on what you want to change. You can see which view file is used where by activating the "Display view files" setting of the HikaShop configuration.

There is no "color" by default in HikaShop. How did you configure the "color" in HikaShop ? With a custom product field ? In that case, you should be able to access it with either $this->element->xxx or $this->row->xxx where xxx is the column name of the custom product field.

The following user(s) said Thank You: Akdag

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

  • Posts: 13
  • Thank you received: 2
1 year 8 months ago #343629

I want to access the features I created on the product detail page.

But these answers are enough for me.

Thank you so much.

The following user(s) said Thank You: Philip

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

  • Posts: 13
  • Thank you received: 2
1 year 8 months ago #343858

What I was trying to do was as in the attached picture. I did.
I have examined more than 50 e-commerce systems. They can't even come close to Hikashop :)

Hikashop's logic scenario is very, very good.

It would be nice if Hikashop made a selectable theme for the custom field section in future versions.

For example, for the custom field I created, it would be nice if I could simply type {product:color} or $this->color ... in the theme and change it.

It would be much nicer if this custom field theme could be chosen differently according to the category.

Attachments:
The following user(s) said Thank You: nicolas

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

Time to create page: 0.068 seconds
Powered by Kunena Forum