i want some two fileds values display below price value in product details page froent end,which files are changed.
https://www.kameswarijewellers.com/jewellery-collections/bangles/simple-traditional-golden-bangles
see the below image
Hi @sarithapoleela
For product detail page price, you need to override below block file with your custom module:
/vendor/magento/module-catalog/Pricing/Render.php
Need to edit below function according to your requirement:
protected function _toHtml() { /** @var PricingRender $priceRender */ $priceRender = $this->getLayout()->getBlock($this->getPriceRender()); if ($priceRender instanceof PricingRender) { $product = $this->getProduct(); if ($product instanceof SaleableInterface) { $arguments = $this->getData(); $arguments['render_block'] = $this; return $priceRender->render($this->getPriceTypeCode(), $product, $arguments); } } return parent::_toHtml(); }
It will help you to resolve issue.
If issue resolve, please click on 'Kudos' & Accept as Solution!