- Posts: 490
- Thank you received: 2
questions of custom fields
5 years 6 months ago - 5 years 6 months ago #330826
by ronron
questions of custom fields was created by ronron
-- HikaShop version -- : 4.3.0.0
-- Joomla version -- : 3.9
-- PHP version -- : 7
-- Error-message(debug-mod must be tuned on) -- : none
hi
im using custom fields to display a google map.
custom fields is wysiwyg, this is working fine.
my problem is displaying the map on a different location of the page.
im using this code to call the map on the view product show_default
i don't want to display the map custom field on the right part. i want it on the bottom part.
Can you kindly give me the code to get the wysiwyg editor custom field and not just the content of the field?
thanks
-- Joomla version -- : 3.9
-- PHP version -- : 7
-- Error-message(debug-mod must be tuned on) -- : none
hi
im using custom fields to display a google map.
custom fields is wysiwyg, this is working fine.
my problem is displaying the map on a different location of the page.
im using this code to call the map on the view product show_default
Code:
<?php echo '<div class="custom_field_bottom"><i class="fas fa-map-marker-alt fa-lg"></i> Amenities </div>'. $this->row->map; ?>
i don't want to display the map custom field on the right part. i want it on the bottom part.
Can you kindly give me the code to get the wysiwyg editor custom field and not just the content of the field?
thanks
Last edit: 5 years 6 months ago by ronron.
Please Log in or Create an account to join the conversation.
5 years 6 months ago #330831
by nicolas
Replied by nicolas on topic questions of custom fields
Hi,
I'm not sure what you mean by "the wysiwyg editor custom field".
If you want a field that can be edited / modified on the product page thanks to a WYSIWYG editor, then you probably want to use a custom field of the table "item" and not "product".
But I suspect that it's not what you want, but that instead, your issue is something else. But I don't know what it is.
Could you maybe illustrate what you want with some screenshots ?
I'm not sure what you mean by "the wysiwyg editor custom field".
If you want a field that can be edited / modified on the product page thanks to a WYSIWYG editor, then you probably want to use a custom field of the table "item" and not "product".
But I suspect that it's not what you want, but that instead, your issue is something else. But I don't know what it is.
Could you maybe illustrate what you want with some screenshots ?
Please Log in or Create an account to join the conversation.
5 years 6 months ago - 5 years 6 months ago #330851
by ronron
Replied by ronron on topic questions of custom fields
hi nic
thanks for the quick reply and sorry forgot the ss.
Please see attached it.
This is the custom field configuration
This is the url of the page affcon.net
As you can see google map is working fine but It is displayed on the right side of the page. i want it to appear below and not on the right. i used php but the result is not the map but the code plugin
this is another ss
This is hikashop config
thanks for the quick reply and sorry forgot the ss.
Please see attached it.
This is the custom field configuration
This is the url of the page affcon.net
As you can see google map is working fine but It is displayed on the right side of the page. i want it to appear below and not on the right. i used php but the result is not the map but the code plugin
this is another ss
This is hikashop config
Last edit: 5 years 6 months ago by ronron.
Please Log in or Create an account to join the conversation.
5 years 6 months ago #330853
by nicolas
Replied by nicolas on topic questions of custom fields
Hi,
Ok, so your question is about how to handle the display of a custom field so that the content tag in it is properly replaced by the corresponding plugin.
That's quite simple. Instead of:
$this->row->map
you need to use:
JHTML::_('content.prepare', $this->row->map)
Ok, so your question is about how to handle the display of a custom field so that the content tag in it is properly replaced by the corresponding plugin.
That's quite simple. Instead of:
$this->row->map
you need to use:
JHTML::_('content.prepare', $this->row->map)
Please Log in or Create an account to join the conversation.
Time to create page: 0.195 seconds