Dplugins Logo
  • Code Snippets
  • Code Request
  • Show/hide section based on Number of WooCommerce Upsells in Oxygen on single product

    Show/hide section based on Number of WooCommerce Upsells in Oxygen on single product

    1st Step Install and activate Code Snippets plugin. Add below code in code snippets: 2nd Step Edit the Oxygen Template that applies to woo single products. For the element you want to apply the “minimum 1 upsell” condition, click on Conditions icon then Set Conditions. Click “Add Condition” icon. Choose Dynamic Data condition. Under Advanced click PHP Function Return value. Function Name: wpl_check_upsell_product…

    Category: Oxygen, WooCommerce
    Sumit Singh

    Sumit Singh

    Tags: single product, Upsells, WooCommerce

3rd party plugins actions admin after_body archive Blocks build Category config core CPT CSS Custom Post Developer development Front End hook Image img include js livereload load styles loop Must Have notice npm Oxygen plugins publish release repeater script scss settings page share single product Taxonomy themes Tips webpack WooCommerce wordpress WP Admin WPML

Proudly Powered by DPlugins