• Resolved gediweb

    (@gediweb)


    Hi, weird. I see 2 X’S for remove. Here is a screenshot: https://snipboard.io/uJ3KpF.jpg

    How can I fix this?

    Also a question, is it possible to remove the quantity? I have it set as a single product only but in the cart, it lets me change the quantity.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rupinder Kaur

    (@coolcoders)

    Hi,

    I visited your link, The remove “x” is showing twice just for design settings.you can add the below code to hide it.
    td.removepro a.remove:after {
    display: none;
    }

    And for your second query where you want to make the qty unchangeable. This issue seems to be occurring most of the users who want to sell only one product in qty 1.
    This plugin does not provide that feature as it’s basic idea is to let the user change the qty when they are checking out.

    But I am providing you a code which you can add in function.php file. Below is the code.
    function cclw_non_changeable_qty(){ ?>

    <script>
    jQuery(document).ready(function(){
    jQuery(‘td.qty div.quantity’).html();
    jQuery(‘td.qty div.quantity’).text(1);

    });
    </script>

    <?php }

    add_action(‘wp_footer’, ‘cclw_non_changeable_qty’);

    The idea behind this is to hide the qty section actually.you can try using CSS if it doesn’t work for you.
    Thanks

    Plugin Author Rupinder Kaur

    (@coolcoders)

    .

    Thread Starter gediweb

    (@gediweb)

    Thank you! the CSS to hide the second X worked perfectly.
    The functions script did not hide the QTY, but as suggested I hid it with CSS. Thank you again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Double x for remove’ is closed to new replies.