emizentech / magento2-price-slider

Price Slider for Category Page:Magento2
20 stars 33 forks source link

Price range does not respect currency settings #8

Open bka opened 7 years ago

bka commented 7 years ago

Hi,

thanks for this module. Here is a little issue, having a different currency like €, the slider still displays $

auswahl_078

sharmiajr commented 7 years ago

i have installed this extension in magento bt i didn't see price filter in category page

onepack commented 7 years ago

@bka Put this in the top of the phtml file:

$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $currencySymbol = $objectManager->get('Magento\Directory\Model\Currency')->getCurrencySymbol(); Then use it in the Javascript with: <?=$currencySymbol?>

Hope it helps.

rajeevjan1991 commented 7 years ago

i have also installed it in magento 2.2 but price slider not appearing on front-end(in layered navigation filter) . can you please let me know where to put the above code with exact file location? or i have to do some other changes?

sohelkhan4666 commented 4 years ago

You can change currency symbol in

app/code/Emizentech/Priceslider/view/frontend/templates/filter.phtml

Change $ symbol into respected currency symbol in script tag. Thanks