WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. TimoVeld
    Member
    Posted 1 year ago #

    Hi,
    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?

    http://wordpress.org/extend/plugins/woocommerce/

  2. TimoVeld
    Member
    Posted 1 year 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

About this Topic