Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #4023121
Add Custom Information / Fields in FlyCart for better UI and UX
Open

Comments

  •  4
    Tobias started the conversation

    Hello there,

    with custom PHP in my function.php of the child-theme I have added some extra fields on the checkout.

    Due to price by user role, price by quantity and price by ordersum (custom PHP code) I have different tools for changing the product and cart price.

    In my screenshot, you can see what I mean. All I want to do is add those fields into the side cart, but I struggle with finding the right hook or prompt to display this inside FlyCcart. I have tried many times and always gave up, but now after adding price by ordersum I need to have this information, otherwise it will look wrong in the front end.

    It would be very helpful if you can explain to me how I can add these fields into the FlyCart.

    Thank you very much,
    Best Regards,
    Tobias

    Attached files:  Checkout custom fields.png
      FlyCart custom fields.png

  •  1,463
    Dustin replied

    Hi Tobias,

    Please add the custom code below. (How to add custom code? ↗):

    add_action( 'woofc_above_bottom', function () {
    	?>
        <div class="woofc-data">
            <div class="woofc-data-left">Label 01</div>
            <div class="woofc-data-right">Value 01</div>
        </div>
        <div class="woofc-data">
            <div class="woofc-data-left">Label 02</div>
            <div class="woofc-data-right">Value 02</div>
        </div>
    	<?php
    } );

    And the result will be like this:

    9443978155.png

    Best regards,
    Dustin