- Posts: 31
- Thank you received: 4
Image as Title of the product
- Rejouisens
-
Topic Author
- Offline
Less
More
2 years 1 month ago - 2 years 1 month ago #363169
by Rejouisens
Image as Title of the product was created by Rejouisens
Hello,
New to hikashop essantial and coming from easystore, I try to customize the product page.
What I would like to do is to have an svg in place of the title of the product as you can see on the page in hidden. Aile is an svg, it is not a font.
Would there be a way to achieve that with a custom field or I don't know?
New to hikashop essantial and coming from easystore, I try to customize the product page.
What I would like to do is to have an svg in place of the title of the product as you can see on the page in hidden. Aile is an svg, it is not a font.
Would there be a way to achieve that with a custom field or I don't know?
Last edit: 2 years 1 month ago by Philip.
Please Log in or Create an account to join the conversation.
2 years 1 month ago - 2 years 1 month ago #363175
by Philip
Replied by Philip on topic Image as Title of the product
Hello,
Using a custom field can be your solution, but you will have to add some view override and maybe Css to adjust this, follow me step by step :
1. Configurez votre custom Field, à partir de :
Components => HikaShop => Configuration
Then, Display dropdown => Custom fields
2. Create a new custom field, by clicking "New", and reproduce part of this configuration :
3. Perform an override view, in your show_default view
=> Have a look on our tutorial to learn more about HikaShop override system.
In details, you have to hide your regular title (name block), and copy/paste :
Where XXX is your custom field column name (in my screenshot it's "image_title".
Maybe some Css can be needed to adjust the display ( documentation ).
Regards
Using a custom field can be your solution, but you will have to add some view override and maybe Css to adjust this, follow me step by step :
1. Configurez votre custom Field, à partir de :
Components => HikaShop => Configuration
Then, Display dropdown => Custom fields
2. Create a new custom field, by clicking "New", and reproduce part of this configuration :
3. Perform an override view, in your show_default view
=> Have a look on our tutorial to learn more about HikaShop override system.
In details, you have to hide your regular title (name block), and copy/paste :
Code:
<?php
$fieldClass = hikashop_get('class.field');
$field = $fieldClass->getField('xxx', 'product');
echo $fieldClass->show($field,$this->element->xxx);
?>
Maybe some Css can be needed to adjust the display ( documentation ).
Regards
Last edit: 2 years 1 month ago by Philip.
Please Log in or Create an account to join the conversation.
- Rejouisens
-
Topic Author
- Offline
Less
More
- Posts: 31
- Thank you received: 4
2 years 1 month ago #363214
by Rejouisens
Replied by Rejouisens on topic Image as Title of the product
Thank you!!!
This was a great tuto.
Now, I now howw to integrate custom fields.
The only thing is that in field type, I don't have ajax image but it's ok, I put a text field. I just enter in the text <img src... and it's fine.
Thank you again
This was a great tuto.
Now, I now howw to integrate custom fields.
The only thing is that in field type, I don't have ajax image but it's ok, I put a text field. I just enter in the text <img src... and it's fine.
Thank you again
Please Log in or Create an account to join the conversation.
2 years 1 month ago #363217
by nicolas
Replied by nicolas on topic Image as Title of the product
Hi,
Ah yes. The AJAX image type is only available with HikaShop Business. You would have to upgrade to use it.
Ah yes. The AJAX image type is only available with HikaShop Business. You would have to upgrade to use it.
The following user(s) said Thank You: Rejouisens
Please Log in or Create an account to join the conversation.
Time to create page: 0.108 seconds