• Resolved nolup

    (@nirmuc)


    Hi, Hope you can help…
    Since the last update, sometimes the filter select field in the form is duplicated,
    just sometimes, specially when you use an incognito browser.

    Example:
    https://debrisfreeoceans.org/responsible-products
    <div id=”filter-category”>
    <select id=”pods-form-ui-filter-product-category” name=”filter_product_category” class=””><option value=”26″>Bag</option><option value=”1″>Bowl</option><option value=”2″>Coffee Lid</option><option value=”3″>Coffee Sleeve</option><option value=”4″>Cup</option><option value=”5″>Cutlery</option><option value=”6″>Plate</option><option value=”25″>Stirrer</option><option value=”7″>Straw</option><option value=”8″>Straw + Spoon</option><option value=”9″>Tableware</option><option value=”10″>Takeaway</option><option value=”11″>Takeaway Lid</option><option value=”14″>Water</option></select>

    <select id=”pods-form-ui-filter-product-category” name=”filter_product_category” class=””><option value=”26″>Bag</option><option value=”1″>Bowl</option><option value=”2″>Coffee Lid</option><option value=”3″>Coffee Sleeve</option><option value=”4″>Cup</option><option value=”5″>Cutlery</option><option value=”6″>Plate</option><option value=”25″>Stirrer</option><option value=”7″>Straw</option><option value=”8″>Straw + Spoon</option><option value=”9″>Tableware</option><option value=”10″>Takeaway</option><option value=”11″>Takeaway Lid</option><option value=”14″>Water</option></select>
    </div>

    and this is php code we use:
    `//init ALL compostables
    $params = array(‘where’ => “t.visible = ‘1’”,’limit’ => ‘-1’);
    $compostables = pods( ‘Compostable’ , $params);
    echo ‘<div id=”to-clone-filters-compostables”>’;
    echo $compostables->filters( array(‘fields’ => array( ‘product_category’, ‘size’)) );
    echo ‘</div>’;
    echo ‘<div id=”filter-category”>’;
    echo ‘</div>’;

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Select duplicate in filter’ is closed to new replies.