[CLOSED]I need to add a functionality in the custom theme.

Home – SaaS Forums Support questions WooPrice Calculator (Pro) [CLOSED]I need to add a functionality in the custom theme.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #5718
    Harkirat Singh
    Participant

    Hi, i’m using the plugin to create a selectable table graph in a way, what i need is a way to call the value of a field item into a data attribute. I’m using the radio group as the type. but i’m unsure of what to replace – echo $data[‘widget’]; with. please help

    #5723
    Harkirat Singh
    Participant

    Also how do i structure the radio group html? I want to put individual inputs in a span or a div.

    #5722
    Harkirat Singh
    Participant

    This code is also not working echo $this->view['fields']['aws_price_calc_1']['html']

    #5721
    Enrico
    Participant

    Hi Harkirat,

    First I would like to provide you some useful links:

    Custom Theme usage: https://altoswebsolutions.com/documentation/10-using-themes
    Advanced Field Customization [Custom Theme]: https://altoswebsolutions.com/documentation/10-1-customize-theme

    If you want to “echo” the individual fields you can use:


    view['data'] as $key => $data): ?>


    This piece of code will echo every individual field (but not labels or other things)

    Or as you said you could use:


    view['fields']['aws_price_calc_2']['html']; ?>

    But remember you need to set the theme in the calculator options and also remember you should put the correct ‘aws_price_calc_ID’.

    If you want please post the complete code of your theme so I can have a more complete idea of your code.

    If you don’t want to publish it here, send it to “https://altoswebsolutions.com/contact-us”

    Kind Regards,
    Enrico
    AT151

    #5720
    Harkirat Singh
    Participant

    Hi Enrico, So i ended up customizing some plugin files for now as a stop gap situation. I initially did exactly as you said, but the ['html'] array is unavailable for radio buttons, i checked in your helper functions and the before mentioned code is unavailable specifically for radio buttons.

    #5719
    Enrico
    Participant

    Hi Harkirat,

    Try to use this code below:


    view['data'] as $key => $data): ?>


    The $data['element'] will write the HTML of every type of field.

    It’s best you write your changes in the theme file and not in the plugin directly because if you update your plugin all your edits will be lost.

    Kind Regards,
    Enrico
    AT151

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.