[SOLVED] Wrong field sequence
- This topic has 0 replies, 2 voices, and was last updated 4 years, 2 months ago by Anonymous.
January 30, 2017 at 10:20 am #8493
there is always a wrong field sequence.
My excel has the right sequence.
What can I do?
Can I change the size of the fields? Or the font size?
Thank you very much for helping and good tipps.
Regards from Hamburg, AnneJanuary 30, 2017 at 12:00 pm #8502AnonymousGuest
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”.view['data'] as $field): ?>
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:
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.
SimoneJanuary 31, 2017 at 11:34 am #8501
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.
AnneJanuary 31, 2017 at 1:09 pm #8500AnonymousGuest
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: https://www.woopricecalculator.com/contact-us
SimoneJanuary 31, 2017 at 1:12 pm #8499
Thank you very much.
I will do this.January 31, 2017 at 5:46 pm #8498AnonymousGuest
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).
We are also developing a system to manage fields order directly from WPC panel. It will be in next release.
SimoneJanuary 31, 2017 at 6:05 pm #8497
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, AnneFebruary 1, 2017 at 11:53 am #8496AnonymousGuest
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.
SimoneFebruary 8, 2017 at 4:17 pm #8495RiccardoParticipant
This message is just to let you know that new 1.2.8 version is available for download: https://woopricecalculator.com/my-account/download-pro
If you like WooPrice Calculator plugin and our support, please don’t forget to rate it.
It really helps us a lot, thank you very much!February 13, 2017 at 1:06 pm #8494
It`s working great!
Thank you very much for the update!
- You must be logged in to reply to this topic.