Magneto 2 product page price labels this type as soon as($10.0-70.0) https://prnt.sc/olzchv


Please try with below code :

<?php $maxprice = str_replace("$"," ",$regularPrice->getMaxRegularAmount());
            echo $regularPrice->getMinRegularAmount().'-'.$maxprice;


    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();
        $currency = $objectManager->get('Magento\Directory\Model\Currency');
        $price = $regularPrice->getMaxRegularAmount();
        $maxprice =  $currency->format($price, ['display'=>\Zend_Currency::NO_SYMBOL], false);

echo $regularPrice->getMinRegularAmount().'-'.$maxprice;

i hope its work for you

  • plz send the file path – KANZARIYA ANIL Jul 31 at 12:51
  • app/design/frontend/theme/default/Magento_Catalog/templates/product/price/final_price.phtml - debug this file. – Anas Mansuri Jul 31 at 12:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.