- Posts: 367
- Thank you received: 18
×
WooPrice Calculator PRO
[CLOSED]Move Ouput Fields To Below Options
- Enrico
-
- Offline
Less
More
2 years 11 months ago #1351
by Enrico
Enrico replied the topic: [CLOSED]Move Ouput Fields To Below Options
Hi Michael,
At the moment the Default Theme can't change the output fields position.
But as you said, you can use the custom themes and I can help you do that.
If you want an easy theme similar to the generated Default Theme, you can create the file "michael_theme.php" in your "/wp-content/uploads/woo-price-calculator/themes" path.
The theme file would be like this:
This theme will move output fields below the input fields. But from what I understand do you need to move output fields below the price?
Kind Regards,
Enrico
AT248
At the moment the Default Theme can't change the output fields position.
But as you said, you can use the custom themes and I can help you do that.
If you want an easy theme similar to the generated Default Theme, you can create the file "michael_theme.php" in your "/wp-content/uploads/woo-price-calculator/themes" path.
The theme file would be like this:
<?php
/* THEME_NAME: Michael Theme */
?>
<div class="wpc-product-form">
<table>
<?php foreach($this->view['data'] as $key => $data): ?>
<tr class="awspc-field-row" data-field-id="<?php echo $data['field']->id; ?>"
style="<?php echo ($this->view['conditionalLogic'][$data['field']->id] == true)?"":"display:none"; ?>">
<td id="<?php echo $data['labelId']; ?>">
<?php echo $this->userTrans($data['field']->label); ?>
</td>
<td id="<?php echo $data['inputId']; ?>">
<?php echo $data['widget']; ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<div class="awspc-output-product">
<?php echo $this->view['outputResults']; ?>
</div>
</div>
This theme will move output fields below the input fields. But from what I understand do you need to move output fields below the price?
Kind Regards,
Enrico
AT248
Please Log in or Create an account to join the conversation.
- Michael
-
Topic Author
- Offline
Less
More
- Posts: 18
- Thank you received: 0
2 years 11 months ago - 2 years 11 months ago #1343
by Michael
Michael created the topic: [CLOSED]Move Ouput Fields To Below Options
Hello.
Is it possible to move the output fields to below the option fields?
Also, can I add text after the price e.g. "excl. VAT"?
Please see attached image.
Thank you in advance.
EDIT
Ok so I found the section of the documentation about using themes.
My question now is:
Can the output fields be moved to below the option fields and text added after the price using the "Default (Autogenereted)" theme?
Is it possible to move the output fields to below the option fields?
Also, can I add text after the price e.g. "excl. VAT"?
Please see attached image.
Thank you in advance.
EDIT
Ok so I found the section of the documentation about using themes.
My question now is:
Can the output fields be moved to below the option fields and text added after the price using the "Default (Autogenereted)" theme?
Last Edit: 2 years 11 months ago by Michael.
Please Log in or Create an account to join the conversation.
Moderators: david
Time to create page: 0.137 seconds