WordPress.org

Ready to get started?Download WordPress

Forums

TheCartPress eCommerce Shopping Cart
BUG shipping cost display in checkout & FIX (2 posts)

  1. sipiatti
    Member
    Posted 2 years ago #

    Hi Developers,

    I found on the checkout page when selecting shipping methods the indicated cost is always 0.

    I dig into the code and found the reason in template/tcp_template.php
    function tcp_get_the_shipping_cost_to_show has a call to tcp_get_the_shipping_cost_without_tax on line 528. The parameter of it wrong, it is $costs instead of $cost.

    So the line correctly should look like:

    } else { //remove tax from cost
            $cost_wo_tax = tcp_get_the_shipping_cost_without_tax( $cost );
            return $cost_wo_tax;
        }

    TCP version: 1.1.9.2

    Regards
    sipiatti

    http://wordpress.org/extend/plugins/thecartpress/

  2. Inigo
    Member
    Plugin Contributor

    Posted 2 years ago #

    Thanks Sipiatti.

    Best regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic