- Posts: 367
- Thank you received: 18
- Forum
- Support questions
- WooPrice Calculator (Pro)
- [CLOSED]I need to add a functionality in the custom theme.
×
WooPrice Calculator PRO
[CLOSED]I need to add a functionality in the custom theme.
- Enrico
-
- Offline
Less
More
3 years 6 days ago - 3 years 6 days 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:
Thewill 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
Try to use this code below:
<?php foreach($this->view['data'] as $key => $data): ?>
<?php echo $data['element']; ?>
<?php endforeach; ?>
The
$data['element']
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: 3 years 6 days ago by Enrico.
Please Log in or Create an account to join the conversation.
- Harkirat Singh
-
Topic Author
- Offline
Less
More
- Posts: 5
- Thank you received: 0
3 years 1 week 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 thearray is unavailable for radio buttons, i checked in your helper functions and the before mentioned code is unavailable specifically for radio buttons.
['html']
Please Log in or Create an account to join the conversation.
- Enrico
-
- Offline
Less
More
- Posts: 367
- Thank you received: 18
3 years 1 week 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:
This piece of code will echo every individual field (but not labels or other things)
Or as you said you could use:
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 " altoswebsolutions.com/contact-us "
Kind Regards,
Enrico
AT151
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 " altoswebsolutions.com/contact-us "
Kind Regards,
Enrico
AT151
Please Log in or Create an account to join the conversation.
- Harkirat Singh
-
Topic Author
- Offline
Less
More
- Posts: 5
- Thank you received: 0
3 years 1 week ago - 3 years 1 week 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: 3 years 1 week ago by Harkirat Singh.
Please Log in or Create an account to join the conversation.
- Harkirat Singh
-
Topic Author
- Offline
Less
More
- Posts: 5
- Thank you received: 0
3 years 1 week 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.
- Harkirat Singh
-
Topic Author
- Offline
Less
More
- Posts: 5
- Thank you received: 0
3 years 1 week 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: david
- Forum
- Support questions
- WooPrice Calculator (Pro)
- [CLOSED]I need to add a functionality in the custom theme.
Time to create page: 0.285 seconds