• Resolved jkwalz

    (@jkwalz)


    Is there anyway to make it so that PPOM fields open up on the product page via accordion action? Where there are a lot of fields in a product (especially with images) the page can get very crowded. It would be great to be able to collapse sections until the buyer wants to see them.

Viewing 7 replies - 16 through 22 (of 22 total)
  • It’s quite simple really. The instructions are at the top and the video, albeit an older version of PPOM, shows what you need to do. I thought it was self explanatory but regardless here is a step-by-step process for the current version (18.3):

    1. Add following code into your theme’s functions.php file
    • add_filter('ppom_collapse_fields', function($apply){ return true; }, 999);
    • Log into your admin section and go to WooCommerce -> PPOM Fields
    • Click on the pencil (edit) icon of the meta group you want to modify or create a new meta group
    • Add an </> HTML field
    • Give the field a unique data name
    • Enter some text for the content – e.g. Step 1
    • Click on Add Field
    • Drag and position the field above the elements you want this collapsible field to contain (or) add new elements below the meta HTML field to contain them
    • Click on Save Settings for the meta group
    • Repeat the process for each step you want to add.

      Keep in mind that if you use the HTML elements for anything other than the accordion effect then they will also be treated as collapsible fields.

      It’s a shame @nmedia didn’t add an option to disable collapsible feature for an HTML element. Hint hint Najeeb.

    Hi brozra,

    thanks for pointing this out, although it still doesn’t seem to work with me ((

    Maybe it’s because I din’t insert the code for the functions.php at the wrong line? Where do I have to insert this code: at the beginning? At the end? Or simply somewhere in that file???

    Sorry to bother you with stupide questions, I think I’m blocking myself??? ;(

    Best regards,
    jens

    The code can go anywhere in the functions.php file of your theme. If you are using a child theme then you need to include the code in the child theme’s functions.php file.

    Do you have PPOM Pro with a valid license? That code won’t work without PPOM Pro.

    Hi brozra,

    You know what? Right now I have found, that n-media has launched a separate pluguin for this. Although it will be also separately charged for a small amount it is blowing away all the funnels we had before;)))

    Thanks, thanks, brozra, for your patience and help;))

    Best regards, jens

    @jensderknipser Even though it didn’t help, you’re welcome. I wasn’t aware that they had created a paid add-on plugin for the collapsible fields feature. I just assumed it was still an existing part of the PRO plugin.

    Hi brozra,
    at least you gave me another insight into these wp-things;)

    Best regards, jens

    Hi there,

    yes we have separated Collapsed as add-on. Now user don’t need to add any code in functions.php file and it also has more features.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Accordion for Images’ is closed to new replies.