Forum

Thread tagged as: Problem, Shop

Perch Shop - Tax Inclusive/Exclusive Makes No Difference

Hi guys,

I'm having some trouble getting the prices on the Perch Shop I have set up to display as expected.

I was intending on having the item and shipping cost display, without displaying tax to the user - I thought this would be achievable using the 'Prices entered as Tax Inclusive' option, although that doesn't seem to be working. Regardless of whether I choose Tax Exclusive or Tax Inclusive, prices are always shown as less than entered, e.g an £80.00 product displaying with a subtotal of £66.67.

Is there something I'm missing when I'm entering prices for products?

Here's my diagnostics report (summary):

SUMMARY INFORMATION

Perch Runway: 2.8.29, PHP: 7.0.6, MySQL: 5.5.53, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_forms (1.8.3), perch_blog (5.0), perch_shop_orders (1.0.4), perch_shop_products (1.0.4), perch_shop (1.0.4), perch_members (1.5)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_members', 'perch_shop', 'perch_forms' ); ?>
PERCH_LOGINPATH: /cms
PERCH_PATH: /nfs/c11/h04/mnt/198028/domains/staging.flykartel.com/html/cms
PERCH_CORE: /nfs/c11/h04/mnt/198028/domains/staging.flykartel.com/html/cms/core
PERCH_RESFILEPATH: /nfs/c11/h04/mnt/198028/domains/staging.flykartel.com/html/cms/resources
Image manipulation: GD
PHP limits: Max upload 99M, Max POST 99M, Memory: 99M, Total max file upload: 99M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
HTTP_HOST: staging.flykartel.com
DOCUMENT_ROOT: /home/198028/domains/staging.flykartel.com/html
REQUEST_URI: /cms/core/settings/diagnostics/
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
Harry Ray

Harry Ray 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

That checkbox indicates to Perch whether the prices you enter into the form when adding a product are inclusive or exclusive of tax. It's not necessarily directly related to how prices are output in your template - that depends on what you're doing in your template.

Can you show us how you're outputting prices?

Hi Drew,

Sure, no worries - the Subtotal is the issue here:

<div class="fifty-percent-wrapper">


<perch:if id="product_count" match="gt" value="0">
    <h2>Your cart (<perch:shop id="item_count" />)</h2>
    <perch:form id="cart" app="perch_shop">



        <perch:input type="submit" value="Update" hidden="true" aria-hidden="true" />

    <div class="cart-item">
            <perch:cartitems>
                <perch:cartitem id="image" type="image" width="80" height="80" density="1.6" crop="true" output="tag" /><perch:cartitem id="sku" />
                        <b><perch:cartitem id="title" /></b>
                        <p><i><perch:cartitem id="variant_desc" /></i></p>


                        <button type="submit" class="remove_cart" name="del:<perch:cartitem id="identifier" />" value="1">
                            Remove 
                        </button>
                    <perch:input id="qty:<perch:cartitem id="identifier" />" value="<perch:cartitem id="quantity" />" type="number" min="0" />


            </perch:cartitems>
            </div>
            <!-- /div.cart-item -->





            <perch:label for="discount">
                Discount code
                <perch:input type="text" id="discount_code" />
            </perch:label>


        <perch:input type="submit" value="Update" />




            <perch:if id="total_discounts" match="gt" value="0.00">
                                        <p>Discount (<perch:shop id="discount_code" />)

                        <perch:shop id="total_discounts_formatted" /></p>

                        <p>Discount

                        <perch:shop id="total_items_discount_formatted" /></p>

            <perch:else />

                        <p>Subtotal

                        <perch:shop id="total_items_formatted" /></p>

            </perch:if>


                <p>Shipping

                        <perch:shop id="shipping_with_tax_formatted" /></p>

                    <h3>Total

                    <perch:shop id="grand_total_formatted" /></h3>



    </perch:form>

    <p>
        <a href="checkout">Checkout now</a>
    </p>

<perch:else />
<h1>Your cart</h1>

<p>Your cart is empty.</p>
</perch:if>


</div>
<!-- /div.fifty-percent-wrapper --> 


Drew McLellan

Drew McLellan 2638 points
Perch Support

Is it grand_total_formatted that you have an issue with?

Does <perch:showall /> show you the price variation you're looking for? There are a lot of options in there.

Morning Drew,

total_items_discounted_with_tax_formatted is the closest HTML tag that I can find in the output from <perch:showall />, but this isn't exactly right - I need to show prices with tax added, and then show discounts (including tax) if a discount is applied.

I can use total_discounts_with_tax_formatted to show the discounts including tax, but I need to show the total_items_formatted with tax.

  • Is there an option for this?
Drew McLellan

Drew McLellan 2638 points
Perch Support

If you don't see it listed there then no, there's not an option for it. But that sounds strange - there should always be both with and without tax options listed.