Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter acharseth

    (@acharseth)

    I sent a reply by mail but only now realised it was sent from a no reply address. Anyway here are some issues I have found:

    1. After selecting the quantity (with quantity enabled) > 1 the cost is calculated correctly but the quantity goes back to 1 (but the cost remains as for the selected quantity).

    2. We want to have transport (of rented tables in our case) as an extra service. When I add this to the rental item for tables and the customer chooses a quantity > 1 then the price for the transport is multiplied by the number of tables ordered. It should be possible to configure the extra service cost to be quantity (of the main item) independent. Is this possible?

    3. In the default setup for a rental item the first date choice is Pickup Date & Time and the second is Return Date (I think also the lead text was misleading but I have done translation so I am not sure). Shouldn’t this be consistent? Either Pickup Date & Time and Drop Off Date & Time? What is difference between Dropp Off and Return Date? How do you set which fields to use?

    4. Error messages don’t use translated field names. Eg. if I choose Return date before Pickup Date then I get an error message saying, in english, that I must set the Pickup Date even if I have translated the field name to “Leieperiode FOM”.  It could be that this is due to the fact that I have not setup my development environment to use Norwegian and will not be an issue in production.

    5. After placing the order I get a page with 2 columns: Invoice details and “Your order”. In the “Your order” column there are 3 bullets points with?rental?periode from/to and quantity. After this there is a table with two columns 1 character wide each, making it impossible to read, with the text (translated): Column 1: Duration Cost2days, Column 2: ($ 100×10)=$1000.?

    6. I would like to be able to set a minimum number of rental days and quantity and see that you have an extra plugin for this. There are some issues with this however:

        a) I would like to put a minimum on both number of rental days (2) and number of items rented. It looks like your extra plugin only supports limiting number of days?

    ? ? b) ?We have an exception: These limits should only be active for external customers. I am planning to let internal customers use a WC rebate coupon.?

    Thread Starter acharseth

    (@acharseth)

    This is the webside: https://loppelauget.no/

    The form in question can be found here: https://loppelauget.no/selvbetjening/

    To avoid spam this page is password protected but if you PM me I can provide you with the password, @takayukister.

    @nomishi , it looks to me like Flamingo is not saving the submited data in a separate table but in wp_posts where all WordPress posts go but for Flamingo with post type=flamingo.
    Is this correct, @takayukister ?

    Thread Starter acharseth

    (@acharseth)

    Hi again!
    I tried the setup above but have one challange:
    $data is NULL
    $submission is blank
    $form just gives me the html-form, not the data
    So what am I doing wrong?

    add_action( ‘hf_form_success’, function( $submission, $form ) {
    global $wpdb;
    $wpdb->insert( ‘Loppehenting’, array( ‘Kommentar’ => $submission, ‘Hva’ => $form ) );
    }, 10, 2 );
    }

    Thread Starter acharseth

    (@acharseth)

    Thanks for your quick answer!

    This is probably a better solution, yes.
    (The only drawback is may be that it will not support for instance importing data and WordPress restores which a trigger would).

    As I am new to WordPress and using such hooks I hope you can provide me with some more information or may be a link to a how to.

    Should I add this action to src/Actions/Action.php?
    Inside public function hook()?

    Thread Starter acharseth

    (@acharseth)

    I could use the wpdb class to display the submissions?
    Tip on how to extract the values from the string array?
    I could use a hidden form field to create a status field?
    Editing/changing this statusfield seem to be the tricky part.
    If only the submissions where submitted to ordinary table columns instead of into a one column string array then I could quickly use a tool to create a stand alone PHP application for editing. Probably a stupid question but why does all the WordPress plugins use such string arrays instead of inserting into a proper table?
    I guess I could also make a custom WordPress PHP page for editing the hidden status field but being a newbi in PHP programming I think this would take a lot of time for me.
    To me it looks like the quickest solution for me is to use this tool I have to create a stand alone PHP edit app with custom code to extract the values from the string array and save them back as a string array if the allows me to.
    Other suggestions?
    For your information I have found another form plugin where they have also made a tag which enables displaying the submission but this plugin has other drawbacks and I still have to make code for editing the status value so I would like to use hf.

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