is it possible show custom message in product detail page?

  • Posts: 203
  • Thank you received: 7
1 year 10 months ago #350832

hi.
i need to fill a custom field and show that field instead of "quantity" in product detail page. is it possible?

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

  • Posts: 83326
  • Thank you received: 13473
  • MODERATOR
1 year 10 months ago #350848

Hi,

Well, there are solutions.
Are you saying that for all your products, you don't want to display the quantity input field next to the product add to cart button ?
And you want to display a message from a custom field of the table "product" on the product page ?
To hide the quantity input field, you can set the "quantity input method" setting to "none" in the HikaShop configuration. If it's only for some products, you have a "quantity input" setting in each product in order to override the setting in the HikaShop configuration.
To display the content of a custom product field on the product page, there is a "front" display setting in the custom field settings page. Now, if you want to display the content of the custom field in a specific area of the product page, you'll have to edit the product / show_default view file via the menu Display>Views and add a bit of custom code where you want it to appear.
For example:

<?php echo $this->element->xxx; ?>
where xxx is the column name of your custom product field.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum