- Posts: 22
- Thank you received: 0
Adding field to characteristic values
10 years 10 months ago #221950
by Kingwell
Adding field to characteristic values was created by Kingwell
-- 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
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.
10 years 10 months ago #221970
by nicolas
Replied by nicolas on topic Adding field to characteristic values
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.
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.
10 years 10 months ago #222063
by Kingwell
Replied by Kingwell on topic Adding field to characteristic values
Thanks Nicolas, Super helpful as always!
Oli
Oli
Please Log in or Create an account to join the conversation.
Time to create page: 0.176 seconds