Home › Forums › WoodMart support forum › WoodMart price filter
WoodMart price filter
- This topic has 24 replies, 1 voice, and was last updated 7 years ago by
Artem Temos.
-
AuthorPosts
-
April 22, 2018 at 7:46 pm #53878
LateefuddienParticipantHi there,
I need your help regarding “WOODMART Price Filter”
Previously it was working fine: https://i.gyazo.com/7c01cb6514f1f8b8b18768d822019a1f.png
we have issue with Price slider, i disabled “AJAX SHOP” function, disabled JS minified option as well and replaced this code:
woocommercePriceSlider: function() {
with this one:
woocommercePriceSlider: function() { return;
but WOODMART Price Filter is not coverting te currency: https://i.gyazo.com/7f46b9e415ca69b9542845f866beec70.png
Please help me…
April 23, 2018 at 6:22 am #53892
Artem TemosKeymasterHi,
Please, provide us a list of steps how to reproduce it on your website. We need your admin and FTP access also.
Thank you in advance.
April 23, 2018 at 9:12 am #53931
LateefuddienParticipantThanks for your response,
Some product categories are from $10 – $50 USD price range & some are $40 to $120 USD…so it should be a round figure amound both in USD and INR
USD Example:
$10 – $20
$21 – $30
$31 – $40
$41 – $50INR Example:
Rs.650 – Rs.1300
Rs.1301 – Rs.2000
Rs.2001 – Rs.3000Over all whatever the currency would be, it should be in round figure.
and please do it for other currencies also because in furute i will use GBP, EURO, Saudi Riyal..etc
Many thanks.
April 23, 2018 at 9:16 am #53934
Artem TemosKeymasterSeems that this plugin replaces price filter’s values with JS and it works with standard WooCommerce widget only. You can keep using a standard widget or contact plugin’s developers and ask to add compatibility with our theme’s custom widget as well.
April 23, 2018 at 9:27 am #53939
LateefuddienParticipantthis the plugin which i used previously…i was working fine with woodmart price filter.
https://i.gyazo.com/7c01cb6514f1f8b8b18768d822019a1f.png
as you can see in the screen shot, that problem was with price slider…woodmart price filter was working fine…. i have disabled the plugin for almost 3 weeks because it was not converting currency correctly, now i just change the decimal number and it is converting the currency…. now everything is fine..just woodmart price filter is not converting..
April 23, 2018 at 9:29 am #53940
LateefuddienParticipantcould you please tell me that how the plugin the replaces price filter values in JS..so that i can forward this issue to developed of the plugin…before that please check it
April 23, 2018 at 11:45 am #53976
Artem TemosKeymasterYou just need to contact plugin’s developers and ask them why it doesn’t work. They know their plugin’s functions and code best.
April 23, 2018 at 12:03 pm #53986
LateefuddienParticipantok, after that i will update you about their reply.
April 23, 2018 at 12:21 pm #54001
Artem TemosKeymasterOK, write us if you will have any extra questions.
April 24, 2018 at 11:44 am #54295
LateefuddienParticipantHi there,
I contacted the plugin developer, they said: https://i.gyazo.com/cc3e52b7396180f0e3bf18fa400d8247.png
Please contact the developer of plugin he will give you the code for adaption with woodmart price filter.
Developer email: [email protected]
April 24, 2018 at 12:05 pm #54302
Artem TemosKeymasterJust ask them for this instruction in your conversation. Then, you will be able to test it on your real website.
April 24, 2018 at 12:07 pm #54303
LateefuddienParticipantsorry! i don’t understand what you’ve said!
April 24, 2018 at 1:09 pm #54322
Artem TemosKeymasterWe meant that you can ask them for the instruction since you already talking to them.
April 24, 2018 at 1:37 pm #54325
LateefuddienParticipantI cannot ask them because i do not know PHP coding, so i cannot understand whatever they say, please contact them, they will give you some to adapt with woodmart price filter.
April 24, 2018 at 1:48 pm #54327
Artem TemosKeymasterOK, we contacted them.
April 24, 2018 at 2:34 pm #54343
LateefuddienParticipantThanks..
April 25, 2018 at 12:39 pm #54512
LateefuddienParticipantHi there, any update from plugin developer?
I have another issue: after updating the theme price slide is also not converting the price:
https://i.gyazo.com/e98672f8367cdb815d538830e0853ede.pngAfter checking i have found that our custom code is removed in JS/functions.js
how to add functions.js to child theme….it is located in main theme folder that is why it updates after theme update…. it should be in child theme.
please help me with this issue.
April 25, 2018 at 12:58 pm #54518
Artem TemosKeymasterWe still waiting for their reply.
JS file can’t be overridden in the child theme as well as other PHP template files in WordPress.
April 25, 2018 at 1:02 pm #54519
LateefuddienParticipantBut there no JS folder & functions .js in Child theme..that is why i edited the main theme’s JS/functions.js
now it is removed the custom code..and even
woocommercePriceSlider: function() {
this is also not availbale
April 25, 2018 at 5:13 pm #54608
Artem TemosKeymasterThe function is still there https://gyazo.com/cc45b8897636295fc0d90e9147e2f71a
April 26, 2018 at 11:25 am #54771
Artem TemosKeymasterAccording to their reply, you need to find this code
$min_price = isset( $_GET['min_price'] ) ? esc_attr( $_GET['min_price'] ) : ''; $max_price = isset( $_GET['max_price'] ) ? esc_attr( $_GET['max_price'] ) : '';
and add these lines after them
if (class_exists('WOOCS')) { global $WOOCS; if ($WOOCS->is_multiple_allowed) { $min_price = $WOOCS->woocs_exchange_value(floatval($min_price)); $max_price = $WOOCS->woocs_exchange_value(floatval($max_price)); } }
in the file
inc/widgets/class-widget-price-filter.php
.Regards
April 28, 2018 at 10:59 am #55153
LateefuddienParticipantHi there,
#1 – Woodmart Price Filter
I have applied this code: https://i.gyazo.com/1762c3bb3ef78bedb990190a0e70097a.png
in the file inc/widgets/class-widget-price-filter.php
https://i.gyazo.com/097b37a7b2a8ccdedc14fab3e75c8004.png
But it is not working yet: https://i.gyazo.com/975163d3a9763fdccfc4b008d0154fb9.png
——————————————————————————————
#2 – Price Slider Widget
According to you reply in the previous topic the code look like this in js/functions.js : https://i.gyazo.com/9f8cddc262d799d25c46892b70425fbb.png
********************
replace this codewoocommercePriceSlider: function() {
with this one
woocommercePriceSlider: function() { return;
**********************
Now i opened the file and i see that code slightly changed: https://i.gyazo.com/aba94ca56b0643c594be98517f2f1c60.png
What should i do now?
April 28, 2018 at 11:48 am #55158
Artem TemosKeymaster#1. Sorry, but we don’t know why it is not working. It is a solution from plugin’s developers. Try to contact them for help.
#2. Try to replace this
woodmartThemeModule.woocommercePriceSlider = function () {
with this one
woodmartThemeModule.woocommercePriceSlider = function () { return;
April 28, 2018 at 12:35 pm #55166
LateefuddienParticipant#1 – Sure, i’ll contact them, thanks.
#2 – I did everything as you guided, but it is not working, this is happening only after the theme update, before theme update it was working fine, the code in fuctions.js also changed after the update.
Code: https://i.gyazo.com/ea7cf06c0b07f5f1641c10ad2d4eef7d.png
Theme Settings -> Performance -> https://i.gyazo.com/46494ce7953bf0f7f6af73b54582e21c.png
Theme Settings -> Shop -> https://i.gyazo.com/7b51bffdc8efd8019231f19fd5580edf.png
April 29, 2018 at 7:52 am #55205
Artem TemosKeymasterYou need to disable all minifications and cache plugins first.
-
AuthorPosts
The topic ‘WoodMart price filter’ is closed to new replies.
- You must be logged in to create new topics. Login / Register