• Resolved kikomo

    (@kikomo)


    Hi,
    I’m using “Woo Add Custom Fee” to add “Fee”.
    My question is how to change the location of the fee in the checkout page.
    I have already changed its place (before delivery) in the cart file.
    But no matter how hard I try, I can’t make it in checkout page!

    some advice?
    Thanks in advice!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @kikomo,

    This will require some customization as it can’t be done by default in WooCommerce. You can start by reading how to customize the checkout page here: https://hollerwp.com/customize-woocommerce-checkout-page/

    If you do require more help with the actual coding, we’d recommend hiring a developer or one of the customization experts listed at https://woocommerce.com/customizations/.

    Thanks.

    Thread Starter kikomo

    (@kikomo)

    Yes, all this is interesting, but I want to rearrange “review-order.php” … where the order is displayed.

    Thanks

    Plugin Support Cara

    (@dcka)

    Hi, @kikomo!

    Can you let us know which Woo Add Custom Fee plugin you’re using on your site? I see at least a couple:

    The reason I ask is that, if you haven’t already, it would be best that you ask your question in the support channel specific to the plugin you’re using. They would have a better idea of the adjustments that you’ll need to make.

    Thread Starter kikomo

    (@kikomo)

    Hi, Cara – a11n

    I use “Woo Add Custom Fee”… (I will try the other one 🙂 )
    I already asked them … they answered that they have no option to change the place!
    I know there is no such option!
    I change the “cart-totals” file.
    from this:
    <?php if ( WC()->cart->needs_shipping() && WC()->cart->show_shipping() ) : ?>

    <?php do_action( ‘woocommerce_cart_totals_before_shipping’ ); ?>

    <?php wc_cart_totals_shipping_html(); ?>

    <?php do_action( ‘woocommerce_cart_totals_after_shipping’ ); ?>

    <?php elseif ( WC()->cart->needs_shipping() && ‘yes’ === get_option( ‘woocommerce_enable_shipping_calc’ ) ) : ?>

    <tr class=”shipping”>
    <th><?php esc_html_e( ‘Shipping’, ‘woocommerce’ ); ?></th>
    <td data-title=”<?php esc_attr_e( ‘Shipping’, ‘woocommerce’ ); ?>”><?php woocommerce_shipping_calculator(); ?></td>
    </tr>

    <?php endif; ?>

    <?php foreach ( WC()->cart->get_fees() as $fee ) : ?>
    <tr class=”fee”>
    <th><?php echo esc_html( $fee->name ); ?></th>
    <td data-title=”<?php echo esc_attr( $fee->name ); ?>”><?php wc_cart_totals_fee_html( $fee ); ?></td>
    </tr>
    <?php endforeach; ?>
    ————————————-
    to this:
    <?php foreach ( WC()->cart->get_fees() as $fee ) : ?>
    <tr class=”fee”>
    <th><?php echo esc_html( $fee->name ); ?></th>
    <td data-title=”<?php echo esc_attr( $fee->name ); ?>”><?php wc_cart_totals_fee_html( $fee ); ?></td>
    </tr>
    <?php endforeach; ?>

    <?php if ( WC()->cart->needs_shipping() && WC()->cart->show_shipping() ) : ?>

    <?php do_action( ‘woocommerce_cart_totals_before_shipping’ ); ?>

    <?php wc_cart_totals_shipping_html(); ?>

    <?php do_action( ‘woocommerce_cart_totals_after_shipping’ ); ?>

    <?php elseif ( WC()->cart->needs_shipping() && ‘yes’ === get_option( ‘woocommerce_enable_shipping_calc’ ) ) : ?>

    <tr class=”shipping”>
    <th><?php esc_html_e( ‘Shipping’, ‘woocommerce’ ); ?></th>
    <td data-title=”<?php esc_attr_e( ‘Shipping’, ‘woocommerce’ ); ?>”><?php woocommerce_shipping_calculator(); ?></td>
    </tr>

    <?php endif; ?>
    —————————
    and it work.
    But in checkout file “review-order”, this not work …???
    I do not know why!

    Thanks

    Thread Starter kikomo

    (@kikomo)

    “Woo Custom Fee” make the same … 🙂

    Plugin Support Cara

    (@dcka)

    Hi, @kikomo!

    Thank you for the additional details!

    From what you’ve shared, it looks like you’ll have to modify the plugin code for either Woo Custom Fee or Woo Add Custom Fee. As a kind reminder though, this forum supports the core WooCommerce functionality.

    So, for Woo Custom Fee, I would recommend posting your question here:
    https://wordpress.org/support/plugin/woo-custom-fee/

    I see you’ve already done that, but you may want to ask the developers about the code modification you’ve been doing if they have further ideas.

    For Woo Add Custom Fee, I would recommend asking here:
    https://wordpress.org/support/plugin/woo-add-custom-fee/

    If the developers don’t get back to you there, one of the other users might too.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi,
    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to proceed as advised above.

    If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘change place of the fee in checkout page’ is closed to new replies.