WooCommerce - excelling eCommerce
[resolved] How to disable the 'x' after quantity in the cart widget (2 posts)

  1. TimoVeld
    Posted 2 years ago #

    Is there a way to disable the x after the amount in the cart widget?

    <?php echo apply_filters( 'woocommerce_widget_cart_item_quantity', '<span class="quantity">' . sprintf( '%s &times; %s', $cart_item['quantity'], $product_price ) . '</span>', $cart_item, $cart_item_key ); ?>

    I seem to be able to edit everything before the x and everything after it, but I can't seem to edit the x itself. So instead of
    "1x $80,-" I would want it to say "1 $80,-".

    Is there any way to achieve this?


  2. TimoVeld
    Posted 2 years ago #

    I couldn't find where the x came from, so I just generated the results again without the sprintf command

    <?php echo $cart_item['quantity']; ?> stuk(s) <span style="float:right;"><?php echo $product_price; ?> p/s</span>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic