Adding field to characteristic values

  • Posts: 22
  • Thank you received: 0
9 years 5 hours ago #221950

-- HikaShop version -- : 2.6.0

Hi there,

I am using characteristics to show a colour selector on product pages, As the characteristic is an image and not text, the product title and cart entry shows the thumbnail of the characteristic image.

As i wanted the selected colour on the title and in the cart to be displayed as text, i added an extra column in the hikashop_characteristics database table named characteristic_alt_value, and implemented this column in product.php so that when a characteristic image is selected, the title of the product shows characteristic_alt_value.

I would like to add a field in the characteristic value edit popup (backend) so that i can enter the alternative value directly from the backend instead of via sql, could anyone point me in the right direction for the file where the popup's table is generated?

Thanks, Oli

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 11 months ago #221970

Hi,

You can edit the file "normal" of the view "characteristic" via the menu Display>Views for your backend template and add your input there.

The following user(s) said Thank You: Kingwell

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

  • Posts: 22
  • Thank you received: 0
8 years 11 months ago #222063

Thanks Nicolas, Super helpful as always!


Oli

Attachments:

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

Time to create page: 0.056 seconds
Powered by Kunena Forum