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

[SOLVED] Wrong field sequence

More
1 year 5 months ago #58 by Anne Neuhaus
Anne Neuhaus replied the topic: [SOLVED] Wrong field sequence
JUHU!

It`s working great!

Thank you very much for the update!

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

More
1 year 5 months ago #42 by Riccardo
Riccardo replied the topic: [SOLVED] Wrong field sequence
Hi Anne,

This message is just to let you know that new 1.2.8 version is available for download: woopricecalculator.com/my-account/download-pro

If you like WooPrice Calculator plugin and our support, please don’t forget to rate it.
wordpress.org/support/plugin/woo-price-calculator/reviews/
It really helps us a lot, thank you very much!
The following user(s) said Thank You: Anne Neuhaus

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

  • WooPrice Calculator
  • WooPrice Calculator's Avatar
1 year 5 months ago #24 by WooPrice Calculator
WooPrice Calculator replied the topic: [SOLVED] Wrong field sequence
Hi Anne,

customize theme affect only product page so it's normal to don't see same order in checkout now.
In the next release there will be the possibility to order fields. This order will be respected for all pages like cart, checkout and order.

We are going to release a new version on next week.

Regards,
Simone

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

More
1 year 5 months ago #22 by Anne Neuhaus
Anne Neuhaus replied the topic: [SOLVED] Wrong field sequence
Hi Simone,

thank you a lot for your work and big help.

That would be great when you developing a system like that,
because in the checkout the field are still wrong.
My boss would not be happy with that.
Can I still influence that somehow?

Regards, Anne
Attachments:

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

  • WooPrice Calculator
  • WooPrice Calculator's Avatar
1 year 5 months ago #21 by WooPrice Calculator
WooPrice Calculator replied the topic: [SOLVED] Wrong field sequence
Hi,

I just added a new theme to your themes folder in /wp-content/plugins/woo-price-calculator/themes/
You'll find a new file, "example_customize.php". With this code fields should be ordered as you requested.

To apply this theme to your product you have to go in "Calculator" section of WPC and edit the calculator assigned to that product, selecting "Example customize fields" theme in Themes field (see example screenshot).
<?php
/*
 * THEME_NAME: Example customize fields
 */
?>

<div class="wpc-product-form">
	<!--Field start-->
	<div id="<?php echo $this->view['data']['woo_price_calc_5']['elementId']; ?>" class="form-group wpc-field-widget">
		<div class="wpc-field <?php echo $this->view['data']['woo_price_calc_5']['class']; ?>">
		<?php echo $this->view['fields']['woo_price_calc_5']['html']; ?>
		<label for="<?php echo $this->view['data']['woo_price_calc_5']['elementId']; ?>_field">
			<?php echo $this->view['fields']['woo_price_calc_5']['label_name']; ?>
		</label>
		</div>
		<div class="wpc-field-error"></div>
	</div>
	<!--Field end-->
	<!--Field start-->
	<div id="<?php echo $this->view['data']['woo_price_calc_6']['elementId']; ?>" class="form-group wpc-field-widget">
		<div class="wpc-field <?php echo $this->view['data']['woo_price_calc_6']['class']; ?>">
		<?php echo $this->view['fields']['woo_price_calc_6']['html']; ?>
		<label for="<?php echo $this->view['data']['woo_price_calc_6']['elementId']; ?>_field">
			<?php echo $this->view['fields']['woo_price_calc_6']['label_name']; ?>
		</label>
		</div>
		<div class="wpc-field-error"></div>
	</div>
	<!--Field end-->
	<!--Field start-->
	<div id="<?php echo $this->view['data']['woo_price_calc_7']['elementId']; ?>" class="form-group wpc-field-widget">
		<div class="wpc-field <?php echo $this->view['data']['woo_price_calc_7']['class']; ?>">
		<?php echo $this->view['fields']['woo_price_calc_7']['html']; ?>
		<label for="<?php echo $this->view['data']['woo_price_calc_7']['elementId']; ?>_field">
			<?php echo $this->view['fields']['woo_price_calc_7']['label_name']; ?>
		</label>
		</div>
		<div class="wpc-field-error"></div>
	</div>
	<!--Field end-->
	<!--Field start-->
	<div id="<?php echo $this->view['data']['woo_price_calc_4']['elementId']; ?>" class="form-group wpc-field-widget">
		<div class="wpc-field <?php echo $this->view['data']['woo_price_calc_4']['class']; ?>">
		<?php echo $this->view['fields']['woo_price_calc_4']['html']; ?>
		<label for="<?php echo $this->view['data']['woo_price_calc_4']['elementId']; ?>_field">
			<?php echo $this->view['fields']['woo_price_calc_4']['label_name']; ?>
		</label>
		</div>
		<div class="wpc-field-error"></div>
	</div>
	<!--Field end-->
	<!--Field start-->
	<div id="<?php echo $this->view['data']['woo_price_calc_28']['elementId']; ?>" class="form-group wpc-field-widget">
		<div class="wpc-field <?php echo $this->view['data']['woo_price_calc_28']['class']; ?>">
		<?php echo $this->view['fields']['woo_price_calc_28']['html']; ?>
		<label for="<?php echo $this->view['data']['woo_price_calc_28']['elementId']; ?>_field">
			<?php echo $this->view['fields']['woo_price_calc_28']['label_name']; ?>
		</label>
		</div>
		<div class="wpc-field-error"></div>
	</div>
	<!--Field end-->
</div>

We are also developing a system to manage fields order directly from WPC panel. It will be in next release.

Regards,
Simone
Attachments:

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

More
1 year 5 months ago #20 by Anne Neuhaus
Anne Neuhaus replied the topic: [SOLVED] Wrong field sequence
Thank you very much.
I will do this.

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

  • WooPrice Calculator
  • WooPrice Calculator's Avatar
1 year 5 months ago #19 by WooPrice Calculator
WooPrice Calculator replied the topic: [SOLVED] Wrong field sequence
Hi Anne,

PHP Regex is used to create rules to check if values that users write in fields are corrects
(e.g: to check if email address has @). So Regex doesn't help you in this case.

I can't read well the WPC field section from your screenshot.
If it sounds good you could send us backend and FTP access to the site in order to show you how to create a custom theme and have ordered fields. Also tell us product page url you're working on. It would be better to do this in a test environment.
Write also the fields order you want, please.
Send access through our contact form here: www.woopricecalculator.com/contact-us

Regards,
Simone

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

More
1 year 5 months ago #18 by Anne Neuhaus
Anne Neuhaus replied the topic: [SOLVED] Wrong field sequence
Hi Simone,
thank you for your answer.

Unfortunately with the php code I destroyed my site and had to reset to default.
I don`t know what I did wrong.
Ok, maybe I`m not able to find the right class in my theme. I`m using strorefront.

Where can I change the order in WPC? (In Php Regex?)
Can you help me with this?
How do I point to the correct order?


Thank you for your help.
Best regards,
Anne
Attachments:

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

  • WooPrice Calculator
  • WooPrice Calculator's Avatar
1 year 5 months ago - 1 year 5 months ago #13 by WooPrice Calculator
WooPrice Calculator replied the topic: [SOLVED] Wrong field sequence
Hi,

Excel Sheet does not manage fields sequence on product page.
It depends by the theme used to show fields.
By default a product page renders associated fields to Excel Sheet with "id" sequence (you can see it in fields page "Name" column) eg.: woo_price_calc_5.
In theme examples there is by default a PHP foreach() function which renders fields based on his "id".

<div class="wpc-product-form">
    <?php foreach($this->view['data'] as $field): ?>
    
            <b><?php echo $field['field']->label; ?>:</b><br/>
            <?php echo $field['widget']; ?>
            
            <br/><br/>
            
    <?php endforeach; ?>
</div>

So if you want to change the order without edit theme you have to create fields in WPC in the same sequence as appear in Excel Sheet, or you can customize your theme to reorder fields and add other information or class to edit style.
Here you can find documentation about customizing themes:
woopricecalculator.com/documentation#customize-theme

Font size, fields size and all CSS can be simply edited using the classes you see in the code or adding class by editing theme.

Regards,
Simone
Last Edit: 1 year 5 months ago by WooPrice Calculator.

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

More
1 year 5 months ago #12 by Anne Neuhaus
Anne Neuhaus created the topic: [SOLVED] Wrong field sequence
Hi Guys!

Unfortunately,
there is always a wrong field sequence.
My excel has the right sequence.

What can I do?

Seconds question:
Can I change the size of the fields? Or the font size?


Thank you very much for helping and good tipps.
Regards from Hamburg, Anne

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

Moderators: WooPrice CalculatordavidEnnie
Time to create page: 0.262 seconds

Cart

Total : 0.00 €