• Resolved TheXrion

    (@negarehgfx)


    Hi
    I need to add/remove variable price to downloads on frontend I didn’t find any documentation for this kind of development can anyone provide documentation ?

    Best regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @negarehgfx

    You can add variable price at specific product. Please refer below screenshot so you will be get more idea.

    https://prnt.sc/p3nma7

    Thread Starter TheXrion

    (@negarehgfx)

    dear @pratik-jain
    I know how do it at the front end ! As i wrote in my question i already running some development programs i need to give ability to users to add variable price in their downloads on the frontend ( there is need some edd plugin query ) so i need documentation to doing this cause here have a field named option name . so please help me with this

    • This reply was modified 5 years, 6 months ago by TheXrion.

    Hi @negarehgfx

    Thanks for your response.

    Can you please elaborate your query a little more? so I can get your point and provide you better support. It would be good if you can provide me some screenshots for better understanding.

    Are you creating front end product submission where user can add variable price and submit the product?

    Thread Starter TheXrion

    (@negarehgfx)

    Yes our team created a customized section that will give ability to vendors to change price of their downloads . Here we want to user be able to add variable price in this custom section.

    We know how code it but some part like “option name , assign price to witch option price” is in ambiguity.
    we need this parts be clear to write our code for them.

    Hi @negarehgfx

    Thanks for the info. EDD plugin stores variable price in meta with key edd_variable_prices. The data is stored like below.

    Where [1] and index are the variable options ID and will remain same.

    Array
    (
        [1] => Array
            (
                [index] => 1
                [name] => Gold
                [amount] => 0.50
            )
        [2] => Array
            (
                [index] => 2
                [name] => Black
                [amount] => 1.50
            )
    )

    When we create EDD product with variable price in admin side it stores some other meta.

    Meta Key : _variable_pricing
    Value : 1 // To indicate product have variable price

    Meta Key : _edd_default_price_id
    Value : 4 // Variable options ID for default variable price

    Please let me know if you need more details.

    Just for reference,
    EDD have ‘Frontend Submissions’ add-on (https://easydigitaldownloads.com/downloads/frontend-submissions/) which have ability to add products from front end and vendor functionality.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How add variable price form frontend’ is closed to new replies.