• Resolved Laser Ulm

    (@laser1ulm)


    Hi!

    I have the same problem like here.
    I add a pricing rule and I can click on the checkbox. The hook appears, but the price doesn’t change. Next time I look, the pricing rules field is empty again…

    (Edith says: “Leder Rot” is the relevant choose ?? )

    As you wanted the error log and the user didn’t answer, here is the relevant part:

    `[06-Sep-2022 10:01:13 UTC] PHP Deprecated: Optional parameter $page declared before required parameter $qry is implicitly treated as a required parameter in /www/htdocs/w01524ed/bkupursu.laser-ulm.eu/wp-content/plugins/wc-fields-factory/includes/wcff_dao.php on line 1763
    [06-Sep-2022 10:01:13 UTC] PHP Deprecated: Optional parameter $_fields declared before required parameter $_order is implicitly treated as a required parameter in /www/htdocs/w01524ed/bkupursu.laser-ulm.eu/wp-content/plugins/wc-fields-factory/includes/wcff_checkout_fields.php on line 423
    [06-Sep-2022 10:01:13 UTC] PHP Deprecated: Optional parameter $_fields declared before required parameter $_order is implicitly treated as a required parameter in /www/htdocs/w01524ed/bkupursu.laser-ulm.eu/wp-content/plugins/wc-fields-factory/includes/wcff_admin_fields.php on line 279`

    These are the only lines with wc-field-factory.

    (Don’t wonder, it’s just my testing site^^)

    kthx n krgds
    Laser

    • This topic was modified 2 years, 6 months ago by Laser Ulm.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Sark

    (@sarkware)

    Hi, pls update to the latest version, and let me know the issue is solved.
    Also those php 8.X.X warnings too addressed.

    Thread Starter Laser Ulm

    (@laser1ulm)

    Hi Sark!

    Thank you for your fast response – but unfortunately the price rules still aren’t saved.
    I updated to php 8.1, updated the plugin, tried to add a pricing rule – and it still disappears when I actualize.
    In the php error log there are no Fields Factory errors anymore.
    New is a Meta List – everything looks fine, but in the last line you can see, that Field Rules are saved, but not a word to Pricing Rules:

    `”wccvf_yHTyc7edWRk8″: [
    “{\”key\”:\”wccvf_yHTyc7edWRk8\”,\”type\”:\”checkbox\”,\”label\”:\”bio1\”,\”order\”:\”0\”,\”is_enable\”:true,\”is_unremovable\”:false,\”choices\”:\”bio|Bio;\”,\”layout\”:\”horizontal\”,\”required\”:\”no\”,\”message\”:\”\”,\”visibility\”:\”yes\”,\”order_meta\”:\”yes\”,\”email_meta\”:\”yes\”,\”login_user_field\”:\”no\”,\”show_for_roles\”:[],\”cart_editable\”:\”yes\”,\”cloneable\”:\”yes\”,\”field_class\”:\”\”,\”initial_show\”:\”yes\”,\”default_value\”:[],\”locale\”:[],\”field_rules\”:[{\”expected_value\”:[\”bio\”],\”field_rules\”:[],\”logic\”:\”has-options\”}]}”
    ]`

    thx n krgds
    Laser

    Plugin Contributor Sark

    (@sarkware)

    The plugin documentation needs to be improved a lot (It’s a work in progress).

    When add a Pricing Rule, All four congigurations are mandatory.

    1. If user entered
    2. Expected Value (Optional)
    3. Title
    4. Price

    Pls make sure the Wc Fields Factory Version 4.1.5
    Pls make sure you entered all four of them and click on the Update Field button.
    When any of the above config is missing, the rule won’t get saved.
    Its my bad that not displaying any validation message (I will include one in the upcoming release).

    Thread Starter Laser Ulm

    (@laser1ulm)

    Thanks again.

    I tried different ways, but just after deactivating all plugins and _then_ making the rule it finally works on the product page. But it doesn’t add the cost to the price in cart or checkout.
    Now I will look which plugin makes trouble.

    Ok, found why cart and checkout are not updated. And as you see, now there is the price range and the updated price.
    It’s Germanized für WooCommerce.
    It’s a very important plugin in Germany to make an Online Shop legal. And I guess I also see the problem – Germanized removes the normal price and replaces it.
    It’s not

    class=”Price”

    anymore, but

    class=”price variation_modified variation_gzd_modified”

    just below

    <h1 class=”product_title entry-title”>Perlenpeitsche Franziska</h1>

    when you look at the source.

    Is there a possibility for you? Or can you tell me where I can hardcode this?

    Thanks and regard
    Jochen

    Plugin Author Saravana Kumar K

    (@mycholan)

    In your wp-admin go to Fields Factory -> Settings there you can see a property called Pricing Rules Behaviour (it is a tab widget), there click on the Price Tag Selector, now you will see a radio button with two option.
    Defaultwill use woocmomerce’s default price template.
    If you use different template for showing price then choose Custom there you can enter whatever ID or Class.

    Once done click the Save Changes button.

    Thread Starter Laser Ulm

    (@laser1ulm)

    Finally…

    Ok, the solution for all Germanized users:

    You have to choose Custom as Saravana said.
    The correct class is

    .woocommerce-Price-amount.amount

    .

    And! you have to Enable Custom Pricing.

    It confuses a little that in the cart widget the price depends whether the checkbox is activated or not. Is this without Germanized the same?

    Where do I ask for feature requests and where to send a bug report?
    (I want checkbox with image or radio button with the possibility to undo – or is this a bug? The bug is after putting the product into cart the checkbox dissappears, I first have to choose another variation then go back…)

    Many thanks and kind regards!
    Jochen

    Edith says: Damned! Now every price on this page is set to the updated price – in last viewed products, in similar products…

    • This reply was modified 2 years, 6 months ago by Laser Ulm.
    • This reply was modified 2 years, 6 months ago by Laser Ulm.
    Plugin Contributor Sark

    (@sarkware)

    Hi,

    which theme are you using.?

    I will check why the cart widget is not ha ve the updated price (It’s probably failed to trigger the right action).

    I agree that radio buttons needs reset (I will make sure it is included with the next release)

    I see that there is a html tag (<img src=&#34) shown as label for the check box, It s a configuration issue, the option has two parts value|Label and it should be text only.

    I see that you need checkbox image (same like image button on the radio field). Its seems to be nice addition, I will include that as well in the next release.

    For bug report & new features request, you may use this forum, I am active here, and if it is possible I will try include it.

    Thread Starter Laser Ulm

    (@laser1ulm)

    Hi!

    My theme is Overlay with Child theme.
    But the price issue is the same in different themes with live preview.
    I check and the price is everywhere on this site plus 3 €. I uncheck and all prices are the lower price, but not the right prices.
    I guess this has to do with the custom class in the Pricing Rules Behavior. Perhaps the wrong class? I don’t know and am tired now…

    Ja, the html-tag was to check if it’s possible.
    But that ain’t necessary – I found my favorite possibility. I’m really tired and didn’t get it, that I can make a pic with “nothing” or a circle or sth like that… That’s perfect for me.

    I will make a few more testing for you tomorrow without Germanized…
    And then see if I have more requests ??

    Krgds
    Jochen

    Thread Starter Laser Ulm

    (@laser1ulm)

    Hi again ??

    Ok, I did it!
    You need 2 classes with Germanized…

    Price Tag Selector Custom

    .variation_gzd_modified .woocommerce-Price-amount.amount bdi

    As far as I can see, everything is working fine.
    (Just a little detail, but another thread.)

    kthx n krgds, keep up your work!
    Jochen

    Plugin Contributor Sark

    (@sarkware)

    Great, closing as resolved.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Price Rule Won’t Save’ is closed to new replies.