• Resolved ImageValber

    (@valberfigueiredo)


    Hello, I’m contacting you again as I would like the support of the plugin developer!

    Because I can not use the plugin.

    The plug does not work with any kind of code here.

    Already tried with this code here gave error:

    woocommerce-cart-form ryviu-widget-total {
    min-height: 22px;
    }

    Already tried to reorder address checkout fields with this code and the error:

    add_filter (‘wfacp_address_fields_billing’, ‘reorder’);
    add_filter (‘wfacp_address_fields_shipping’, ‘reorder’);

    function reorder ($ fields) {

    $ postcode = $ fields [‘postcode’];
    $ address_1 = $ fields [‘address_1’];
    $ Number = $ fields [‘Number’];
    $ Neighborhood = $ fields [‘Neighborhood’];
    $ address_2 = $ fields [‘address_2’];
    $ city = $ fields [‘city’];
    $ state = $ fields [‘state’];
    $ country = $ fields [‘country’];

    unset ($ fields [‘postcode’]);
    unset ($ fields [‘address_1’]);
    unset ($ fields [‘Number’]);
    unset ($ fields [‘Neighborhood’]);
    unset ($ fields [‘address_2’]);
    unset ($ fields [‘city’]);
    unset ($ fields [‘state’]);
    unset ($ fields [‘country’]);

    $ fields [‘postcode’] = $ postcode;
    $ fields [‘address_1’] = $ address_1;
    $ fields [‘Number’] = $ Number;
    $ fields [‘Neighborhood’] = $ Neighborhood;
    $ fields [‘address_2’] = $ address_2;
    $ fields [‘city’] = $ city;
    $ fields [‘state’] = $ state;
    $ fields [‘country’] = $ country;

    return $ fields;

    I have tried other similar codes too from the error.

    Ie the plugin by clicking button to> save and activate code created.

    The plugin always reports same error and does not work.

    Error is always this one:

    No panic

    The code snippet you are trying to save produced a fatal error at line 0:

    Exception thrown without a stack frame
    The previous version of the code has not changed, and the rest of this site should be working as usual.

    Please use the back button in your browser to return to the previous page and try to correct the code error.

    If you prefer, you can close this page and discard the changes made.

    No changes will be made to this site.

    I need help … Please!

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you set the code, you described, there is two errors:

    1. You can’t put “woocommerce-cart-form ryviu-widget-total {
      min-height: 22px;
      }” stand-alone. You must add it using wp_head-function.

      add_action( ‘wp_head’, function () { ?>
      <style>
      woocommerce-cart-form ryviu-widget-total {
      min-height: 22px;
      }
      </style>
      <?php } );

    2. function reorder ($ fields) { misses “}”
    • This reply was modified 6 years, 2 months ago by Imagetapiohuuhaa.
    • This reply was modified 6 years, 2 months ago by Imagetapiohuuhaa.
    Plugin Author ImageShea Bunge

    (@bungeshea)

    @tapiohuuhaa is correct. You will need to wrap CSS code in a filter hook and correct the errors in your PHP code in order to use this plugin.

    It’s a little difficult to tell what could be wrong in your PHP code given that it has been posted here without the proper formatting. Please make sure you select the [code] editor button if reposting.

    Thread Starter ImageValber

    (@valberfigueiredo)

    🙏

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin Code Snippets – This Is Error’ is closed to new replies.