• Hello,

    I want to add new (price) filed in social articles form, can you help me with some directions?

    Thanks for help,

    A

    • This topic was modified 6 years, 7 months ago by alchan.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Broobe

    (@broobe_dev)

    hi! You can try to replicate the title field which is the simple one. Take a look to includes/sa-form and includes/templates.

    Thanks for using social articles!

    Thread Starter alchan

    (@alchan)

    Hello,

    thanks for answer!

    I was try to add price field in wordpress includes (in classes, templates and sa-form.js ) but still don’t getting price field in form.

    I have create price field with same structure like title field (diferent label, placeholder, price config, … ) in sa-form/fields/templates/price/frontend and backend

    in sa-form.js

    
    function save_sa_price_config(){
        var sa_config_input = jQuery('#sa_price_config');
        var sa_config = JSON.parse(sa_config_input.val());
        sa_config.empty_message=jQuery('#sa-form-price-empty-message').val();
        sa_config.placeholder=jQuery('#sa-form-price-placeholder').val();
        sa_config.label=jQuery('#sa-form-price-label').val();
        update_field_config_data(sa_config_input, sa_config);
    }
    

    and also changes in sa-form/fields/sa-form-class.php;sa-form-setting-class.php and sa-helper-class.php

    I get error in log:

    [15-Jul-2018 09:31:06 UTC] PHP Notice: Trying to get property of non-object in /var/www/www/wp-content/plugins/social-articles/includes/social-articles-functions.php on line 124
    [15-Jul-2018 09:31:06 UTC] -1

    Can you please take a quick look what is missing in plugin from weetransfer?
    https://we.tl/DsVnBsbIE2

    Thanks for help,

    A

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘adding price field’ is closed to new replies.