Forum

Thread tagged as: Question, Problem, Shop

Perch shop update

Hi all

Just updated a website to the latest perch shop

And I have two products in admin and prices are

One £5 Two £2.50

Everything was fine before the update

Now I add them to basket and there £250 and £500

Anthony Elleray

Anthony Elleray 2 points

  • 5 years ago

Looks like decimal point is missing

But paypal still says 2.50 and 5.00

So just a basket issue

Rachel Andrew

Rachel Andrew 394 points
Perch Support

We would need to see your code, for where these are displayed, if you are asking for help.

Ok will upload soon just out at the moment

It's only in the basket tho Using the standard basket that ships with perch

This is my cart where prices are missing the decimal point

<div class="row">
<perch:if id="product_count" match="gt" value="0">
    <div id="cart_title">
        <h3><i class="fa fa-shopping-cart" aria-hidden="true"></i> Your Order (<perch:shop id="item_count" />)</h3>
    </div>
    <div class="large-12 columns">
        <perch:form id="cart" app="perch_shop">
        <perch:input type="submit" value="Update" hidden="true" aria-hidden="false" />
        <table class="cart">
            <tr>
                <th width="300"></th>
                <th width="800">Item</th>
                <th width="100">Quantity</th>
                <th width="100">Price</th>
            </tr>
            <perch:cartitems>
                <tr>
                    <td><perch:cartitem id="image" type="image" width="360" height="240" density="1.6" crop="true" output="tag" /></td>
                    <td>
                        <h4><b><perch:cartitem id="title" /></b></h4>
                        <p><i><perch:cartitem id="variant_desc" /></i></p>
                        <div class="desc">
                            <perch:cartitem id="description" type="textarea" markdown="true" />
                        </div>
                        <button type="submit" class="remove_cart button alert" name="del:<perch:cartitem id="identifier" />" value="1">
                            <i class="fa fa-trash" aria-hidden="true"></i> Remove from basket
                        </button>
                    </td>
                    <td><perch:input id="qty:<perch:cartitem id="identifier" />" value="<perch:cartitem id="quantity" />" type="number" min="0" /></td>
                    <td class="money"><perch:cartitem id="total_without_tax_formatted" /></td>
                </tr>
            </perch:cartitems>
            <perch:if id="total_discounts" match="gt" value="0.00">
                <tr class="total">
                    <th colspan="3">
                        Discount (<perch:shop id="discount_code" />)
                    </th>
                    <td class="money">
                        <perch:shop id="total_discounts_formatted" />
                    </td>
                </tr>
                <tr class="total">
                    <th colspan="3">
                        Total
                    </th>
                    <td class="money">
                        <perch:shop id="total_items_discounted_formatted" />
                    </td>
                </tr>
            <perch:else />
                <tr class="total">
                    <th colspan="3">
                        Total
                    </th>
                    <td class="money">
                        <perch:shop id="total_items_formatted" />
                    </td>
                </tr>
            </perch:if>
            <tr class="total">
                <th colspan="3">
                    Tax
                </th>
                <td class="money">
                    <perch:shop id="total_tax_formatted" />
                </td>
            </tr>
            <tr class="total">
                <th colspan="3">
                    Grand total
                </th>
                <td class="money">
                    <perch:shop id="grand_total_formatted" />
                </td>
            </tr>
        </table>
        <div class="cart-actions">
            <div class="large-4 columns">
                <div class="continue">
                    <a href="/"><div class="button"><i class="fa fa-shopping-basket" aria-hidden="true"></i> Continue Shopping</div></a>
                </div>
            </div>
            <div class="large-4 columns">
            </div>
            <div class="large-4 columns">
                <div class="checkout">
                    <a href="/shop/checkout" class="add-to-cart button">Checkout Now</a>
                </div>
            </div>
        </div>
    </perch:form>
<perch:else />
<div class="large-12 columns text-center">
<h1>Your basket is empty</h1>
</div>
</perch:if>
</div>
</div>
Drew McLellan

Drew McLellan 2638 points
Perch Support

In the currency settings, what value do you have set for the decimal point character?

Decimal places for formatting is 2

The decimal point was broken but ive just gone to apps/shop and got the update message

clicked button

now its fixed