• I have a bundled product that includes several simple products – the main product, then some optional add ons (other simple products), the main simple product is on SALE. How can I mark the Bundled Product as on SALE ?? I only really want it to show the sale icon.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @webdesignit,

    Only bundles whose prices are automatically calculated can display the “Saved text”. Please make sure the “Disable the auto-calculated price” is unchecked and fill in a discount in the corresponding box (% or $). https://prnt.sc/1230rkb

    Depending on the type of discount applied to your bundle, the saved text will display accordingly. The amount discount will override the percentage discount when both boxes are filled.

    In order to show the Saved text in both Starting price & Subtotal, please enable “Change price” from the plugin settings. Then the saved text will be visible on all auto-priced bundles in both positions. https://prnt.sc/1230syq

    See more in the Saved Text under the Pricing and Discounts section.
    https://prnt.sc/1230wq5
    https://prnt.sc/1230xu6

    You also use above text and under text to display the Bundled product on Sale like this screenshot: https://prnt.sc/12314in

    Regards,

    Plugin Author WPClever

    (@wpclever)

    Hi @webdesignit

    In case you just want to show the sale badge for bundled products, please add below snippet (How to add custom code?):

    add_action( 'woosb_before_item_name', 'woosb_add_sale_badge', 99, 1 );
    function woosb_add_sale_badge( $product ) {
    	if ( $product->is_on_sale() ) {
    		echo '<span class="on-sale">On Sale!</span>';
    	}
    }

    Then you can style for this badge with CSS code (add below code to WP-Admin → Appearance → Customize → Additional CSS):

    .woosb-product .on-sale {
        font-size: 10px;
        padding: 4px 10px;
        background-color: #ff0000;
        color: #ffffff;
        text-transform: uppercase;
    }

    And the result https://www.screencast.com/t/pkt44kYFFX4G

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mark Bundle as on Sale’ is closed to new replies.