Hi Jan,
This is possible add HTML tag to Title product, or turn off cleaning HTML from this fields.
Or maybe you know some other way to add some basic format html.
example.
Title product 300x300cm word 15m
Title product + basic html
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Title product + basic html
Hi, unfortunately the HTML is stripped when saving to database, so the value is stored without formatting. So then it is not possible to format it this way.
The only way is to customize the XML:
administrator\components\com_phocacart\models\forms\phocacartitem.xml
FROM:
TO:
But of course, this edited file needs to be stored as backup and reloaded after update.
Jan
The only way is to customize the XML:
administrator\components\com_phocacart\models\forms\phocacartitem.xml
FROM:
Code: Select all
<field name="title" type="text" class="inputbox" size="40" label="COM_PHOCACART_FIELD_TITLE_LABEL" description="COM_PHOCACART_FIELD_TITLE_DESC" required="true"/>
Code: Select all
<field name="title" type="text" class="inputbox" size="40" label="COM_PHOCACART_FIELD_TITLE_LABEL" description="COM_PHOCACART_FIELD_TITLE_DESC" required="true" filter="raw"/>
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Enthusiast
- Posts: 65
- Joined: 10 Jun 2019, 15:53
Re: Title product + basic html
Thank you, Jan!
This is small shop, once set it will not be changed.
Regards.
This is small shop, once set it will not be changed.
Regards.
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
-
- Phoca Enthusiast
- Posts: 65
- Joined: 10 Jun 2019, 15:53
Re: Title product + basic html
I change, but is another problem.
In front of title have HTML tags
Any fix?
In front of title have HTML tags
Any fix?
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Title product + basic html
Hi, then you need to do own title e.g. per override of this output file:
components/com_phocacart/views/item/tmpl/default.php
line 185
to your own title.
components/com_phocacart/views/item/tmpl/default.php
line 185
Code: Select all
echo PhocacartRenderFront::renderHeader(array($title));
If you find Phoca extensions useful, please support the project