• Resolved agustinbotana

    (@agustinbotana)


    Hi,

    I just downloaded the plugin and set my first Dynamic Price Rule to build a sale offer for Father’s Day.. Selected the products, set the discount %, nice, everything OK, easy to use.. Great!

    I’m trying to take advantage of the configuration made on the rule, to show those products on a site page, just like a dynamic discounted

    Is there any kind of short_code like, say, [dynamic_pricing_products rule=”fathers day”]?

    Thanks in advance
    Agustin

Viewing 1 replies (of 1 total)
  • Hi Agustin,

    Instead of showing the products on a site page, you can change the sale badge text into your choice (like Father’s day offer). In order to change the sale badge text in WooCommerce:

    Open your functions.php file located in wp-content/themes/your-theme-name/ and add this code at the end of it:

    add_filter( ‘woocommerce_sale_flash’, ‘wc_custom_replace_sale_text’ );
    function wc_custom_replace_sale_text( $html ) {
    return str_replace( __( ‘Sale!’, ‘woocommerce’ ), __( ‘My sale text!’, ‘woocommerce’ ), $html );
    }

    Currently, it is not possible to use short_codes. Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘A shortcode to show the products/categories in a page’ is closed to new replies.