questions of custom fields

  • Posts: 490
  • Thank you received: 2
3 years 1 month ago #330826

-- 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

<?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: 3 years 1 month ago by ronron.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
3 years 1 month ago #330831

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 ?

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

  • Posts: 490
  • Thank you received: 2
3 years 1 month ago #330851

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

Attachments:
Last edit: 3 years 1 month ago by ronron.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
3 years 1 month ago #330853

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)

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

Time to create page: 0.088 seconds
Powered by Kunena Forum