• Resolved ken0706

    (@ken0706)


    After I used this addons plugin my product image got newline, I think it was by CSS, can you help me? Thanks

    • This topic was modified 1 year, 3 months ago by ken0706.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author acowebs

    (@acowebs)

    I think you are using an older version of the product addon premium version. Would you be able to try the latest version,

    also for premium version support, you can reach our website, this forum is mainly for free version support

    Plugin Author acowebs

    (@acowebs)

    Please add below custom css in order to fix this issue

    .single-product div.product.wcpa_has_options form.cart {
        display: flex !important;
    }
    Thread Starter ken0706

    (@ken0706)

    Thank you, after I used the free plugin I fixed the above error, but how do I get the drop list value of select field of the addons to multiply by the product unit price

    Plugin Author acowebs

    (@acowebs)

    We believe you are looking for the custom js code for accessing the dropdown values. Below code will help to get the values.

    <script> 
        var fieldId='content_1622372897';  // replace contentField element id 
        if (wp && wp.hooks) { 
            wp.hooks.addAction('wcpa_fields_updated', 'wcpa_custom', function (price, _fieldData) { 
                if (_fieldData.fields && typeof _fieldData.fields[fieldId] !== "undefined") { 
    // you can access field data here with _fieldData.fields[fieldId] 
     
                } 
            }) 
        } 
     
    </script>

    For setting price for fields, You need to use premium version.

    Thread Starter ken0706

    (@ken0706)

    Okay, but what file will the above code write to?

    Plugin Author acowebs

    (@acowebs)

    Above code will be usefull only if you are a developer, you can extend that code as per your need. You can use any custom code snippet plugin for writing that code, or hard code it in your thems functions.php or footer.php

    Anyway, inorder to change price, you can use the pro version. In free version, it will not be possible

    Thread Starter ken0706

    (@ken0706)

    I fixed the css for my old pro version so now i pasted the above code correct?

    Plugin Author acowebs

    (@acowebs)

    You dont need a custom code if you are on pro vesion.

    You can set the price on the form field settings,
    Enable Price and set custom formula {value}*{product_price}

    Refer this screenshot https://prnt.sc/ZKLlKOUiziBD

    Thread Starter ken0706

    (@ken0706)

    Thanks, it works. But in the end can you guide me the following 2 things?

    1. Change text for “Options Price:”, “Product Price:”, “Total”.
    2. Hide text price on, next to the option of wcpa-select
      example:
      Quantity
      100 (9.500$)
      to
      100
    Plugin Author acowebs

    (@acowebs)

    You can change the texts from Settings>>Product addons >> Strings
    refer https://prnt.sc/_CBimhd6-9ix

    To remove price agains dropdown options – You can find the settings for this under the section of the form builder – https://prnt.sc/JOD7fLrx0Wxz

    Thread Starter ken0706

    (@ken0706)

    Thanks. I changed it.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Image error’ is closed to new replies.