Total : 0.00 €

Before contacting us, please make sure to check our F.A.Q

Please, login or register to our website in order to be able to post a presale question in the forum.

× WooPrice Calculator PRO

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

More
4 months 4 weeks ago - 4 months 4 weeks ago #1185 by Enrico
Enrico replied the topic: [CLOSED]I need to add a functionality in the custom theme.
Hi Harkirat,

Try to use this code below:
<?php foreach($this->view['data'] as $key => $data): ?>
<?php echo $data['element']; ?>
<?php endforeach; ?>

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
Last Edit: 4 months 4 weeks ago by Enrico.

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #1171 by Harkirat Singh
Harkirat Singh replied the topic: [CLOSED]I need to add a functionality in the custom theme.
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.

Please Log in or Create an account to join the conversation.

More
5 months 1 day ago #1170 by Enrico
Enrico replied the topic: [CLOSED]I need to add a functionality in the custom theme.
Hi Harkirat,

First I would like to provide you some useful links:

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

If you want to "echo" the individual fields you can use:
<?php foreach($this->view['data'] as $key => $data): ?>
<?php echo $data['widget']; ?>
<?php endforeach; ?>

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

Or as you said you could use:
<?php echo $this->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 "hello@altoswebsolutions.com"

Kind Regards,
Enrico
AT151

Please Log in or Create an account to join the conversation.

More
5 months 3 days ago - 5 months 3 days ago #1160 by Harkirat Singh
Harkirat Singh replied the topic: [CLOSED]I need to add a functionality in the custom theme.
This code is also not working echo
$this->view['fields']['aws_price_calc_1']['html']
Last Edit: 5 months 3 days ago by Harkirat Singh.

Please Log in or Create an account to join the conversation.

More
5 months 4 days ago #1151 by Harkirat Singh
Harkirat Singh replied the topic: [CLOSED]I need to add a functionality in the custom theme.
Also how do i structure the radio group html? I want to put individual inputs in a span or a div.

Please Log in or Create an account to join the conversation.

More
5 months 4 days ago #1150 by Harkirat Singh
Harkirat Singh created the topic: [CLOSED]I need to add a functionality in the custom theme.
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; with. please help

Please Log in or Create an account to join the conversation.

Moderators: davidEnnie
Time to create page: 0.259 seconds

Cart

Total : 0.00 €