• failly

    (@failly)


    Hello,

    Since I am having some problems with the EDD Product Badge plugin, I decided to realize my idea with the [digial] plugin. I like the plugin and I think it’s better than the Product Badges plugin, for the goal I want to realize.

    To scale down the amount of category’s in my shop, I want to use this plugin as a way to show a category/version of some products. However, I want multiple terms instead of just one [digital]. So when I go to edit a product, I want to have a few badge-options to give a product, like [Office].

    I tried some coding myself. I was able to add another input field in the EDD setting screens; so now I have one input field with [digital], and one with [office]. I was also able to add another meta box to enable the additional badge in the sidebar of the ‘Edit Download’ section of a product.

    However, everytime I activate the badge of the field I made it get’s unchecked again and won’t show the extra badge in the product grid.

    I think it’s simple to realize this, I could however use some help.

    Does anyone of you have an idea how to accomplish this? I would be so thankful.

    Thanks in advance.

    https://wordpress.org/plugins/edd-digital-badge/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chris Klosowski

    (@cklosows)

    @failly

    Is it possible to see what you’ve done so far? Is it on GitHub somewhere?

    Thread Starter failly

    (@failly)

    I just pushed what I have done, you can find it here: https://github.com/failly2/edddb.git
    Or
    https://github.com/failly2/edddb

    The changes are made in:
    edd-digital-badge.php (In the Add settings section)
    and
    includes/functions.php

    For the functions and ID’s, I just copied what was already there, and added a letter ‘t’ or ‘f’ behind it. This shows up in the EDD settings and Edit Download settings, but won’t show the badge when checked.

    Thank you very much for looking.

    Thread Starter failly

    (@failly)

    Okay after hours of work and coding I finally got it to work! The code is messy and can be probably be cleaned half in size, anyway, it’s working.

    I do still have one question though. I have predefined the different texts like [digital] in the EDD settings. Is it possible to have some selection(radio buttons?) with the the texts and meta keys in EDD FES? So when a vendor chooses one of the badges, it will get applied automatically without me needing to activate the badge?

    If so, what meta key should I use?

    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Multiple badges?’ is closed to new replies.