[SOLVED] Wrong field sequence

Home – SaaS Forums Support questions WooPrice Calculator (Pro) [SOLVED] Wrong field sequence

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #8493
    Anne Neuhaus
    Participant

    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

    #8502
    Anonymous
    Guest

    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”.

    view['data'] as $field): ?>

    label; ?>:

    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:
    https://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

    #8501
    Anne Neuhaus
    Participant

    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

    #8500
    Anonymous
    Guest

    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: https://www.woopricecalculator.com/contact-us

    Regards,
    Simone

    #8499
    Anne Neuhaus
    Participant

    Thank you very much.
    I will do this.

    #8498
    Anonymous
    Guest

    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).
    [attachment=9]theme-selection.png[/attachment]


    view['fields']['woo_price_calc_5']['html']; ?>



    view['fields']['woo_price_calc_6']['html']; ?>



    view['fields']['woo_price_calc_7']['html']; ?>



    view['fields']['woo_price_calc_4']['html']; ?>



    view['fields']['woo_price_calc_28']['html']; ?>

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

    Regards,
    Simone

    #8497
    Anne Neuhaus
    Participant

    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

    #8496
    Anonymous
    Guest

    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

    #8495
    Riccardo
    Participant

    Hi Anne,

    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.
    https://wordpress.org/support/plugin/woo-price-calculator/reviews/
    It really helps us a lot, thank you very much!

    #8494
    Anne Neuhaus
    Participant

    JUHU!

    It`s working great!

    Thank you very much for the update!

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.