Home Forums WoodMart support forum WoodMart price filter

WoodMart price filter

Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #53878

    Lateefuddien
    Participant

    Hi 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…

    #53892

    Artem Temos
    Keymaster

    Hi,

    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.

    #53931

    Lateefuddien
    Participant

    Thanks 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 – $50

    INR Example:
    Rs.650 – Rs.1300
    Rs.1301 – Rs.2000
    Rs.2001 – Rs.3000

    Over 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.

    #53934

    Artem Temos
    Keymaster

    Seems 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.

    #53939

    Lateefuddien
    Participant

    this 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..

    #53940

    Lateefuddien
    Participant

    could 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

    #53976

    Artem Temos
    Keymaster

    You just need to contact plugin’s developers and ask them why it doesn’t work. They know their plugin’s functions and code best.

    #53986

    Lateefuddien
    Participant

    ok, after that i will update you about their reply.

    #54001

    Artem Temos
    Keymaster

    OK, write us if you will have any extra questions.

    #54295

    Lateefuddien
    Participant

    Hi 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]

    #54302

    Artem Temos
    Keymaster

    Just ask them for this instruction in your conversation. Then, you will be able to test it on your real website.

    #54303

    Lateefuddien
    Participant

    sorry! i don’t understand what you’ve said!

    #54322

    Artem Temos
    Keymaster

    We meant that you can ask them for the instruction since you already talking to them.

    #54325

    Lateefuddien
    Participant

    I 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.

    #54327

    Artem Temos
    Keymaster

    OK, we contacted them.

    #54343

    Lateefuddien
    Participant

    Thanks..

    #54512

    Lateefuddien
    Participant

    Hi 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.png

    After 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.

    #54518

    Artem Temos
    Keymaster

    We still waiting for their reply.

    JS file can’t be overridden in the child theme as well as other PHP template files in WordPress.

    #54519

    Lateefuddien
    Participant

    But 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

    #54608

    Artem Temos
    Keymaster
    #54771

    Artem Temos
    Keymaster

    According 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

    #55153

    Lateefuddien
    Participant

    Hi 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 code

    woocommercePriceSlider: 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?

    #55158

    Artem Temos
    Keymaster

    #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;

    #55166

    Lateefuddien
    Participant

    #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

    #55205

    Artem Temos
    Keymaster

    You need to disable all minifications and cache plugins first.

Viewing 25 posts - 1 through 25 (of 25 total)

The topic ‘WoodMart price filter’ is closed to new replies.