• Resolved Barry Donoghue

    (@barry-at-abbott)


    Hi, I just found your plugin and it seems to be perfect for a project I have one, but the issue I’m having is:

    When I use a formula to calculate the price of a product eg: {num1} * {num2} * {product_regular_price}, on the product page the price is outputted correctly, whereas on the shop pages the price is being outputted as:
    ——
    <span class=”woocommerce-Price-amount amount”><bdi><span class=”woocommerce-Price-currencySymbol”>€</span>0.00</bdi></span> <small class=”woocommerce-price-suffix”>Ex Vat</small> per mm2
    ——–
    I have set up default values for both “num1” and “num2” so on page load the price is calculated but it’s not working on the archived pages.

    URL: https://cg.cc-dev.ie/shop/
    Theme: 2022
    plugin active: woocommerce and your plugin

    I hope you can help, many thanks

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Krzysztof Pi?tkowski

    (@wckalkulator)

    @barry-at-abbott the price on archive pages are not calculated from formula, as it would be hard to calculate minimum value. There is option at right side “Price Filtering”

    For example if you want to show at archive page something like “from $9.99 per mm2” you should set:
    enable: [x] checked
    prefix: form
    price value: 9.99
    suffix: per mm2

    The price value is formatted by woocommerce so it is always wrapped like this:
    <span class="woocommerce-Price-amount amount"><bdi>9,99&nbsp;<span class="woocommerce-Price-currencySymbol">z?</span></bdi></span>

    Thread Starter Barry Donoghue

    (@barry-at-abbott)

    Hi Krzysztof Pi?tkowski

    Thank you for your reply, I understand my misunderstanding of the process now and I seem to have a handle on it, thank you.

    I do have a follow-up question in regards to adding an item to the cast that has had its price generated by a calculation.

    The default WordPress themes do not use ajax popout carts when you add an item to the cart so the issue is not relevant, however, If I use the Flatsome theme or other themes that do use ajax popout carts. When the item is added to the cart that has had its price calculated to be more than the default lowest price, the popout cart shows an item price with 1x€0.00 above the total cart price. Also, the price on the page reverts back to the default lowest price.

    Is there a way to have the item price in the ajax popout cart show the calculated price of the item added?

    See URL for example https://cg.cc-dev.ie/product/black-to-white-glitter-gradient/

    Plugin Author Krzysztof Pi?tkowski

    (@wckalkulator)

    @barry-at-abbott I don’t have access to any theme with ajax popup cart. Could you share example theme with me? I will fix that issue. You can contact with me support[at]wckalkulator.com

    Thread Starter Barry Donoghue

    (@barry-at-abbott)

    Hi Krzysztof

    Apologies I’m only seeing your reply now, I have tried multiple times to send you an email to your email address and each time they are bouncing back with “Mail Delivery Errors”. Can you email me at barry@clearcellwebdesign.ie and see If I can reply directly to your email?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Code outputting to shop acvhive page’ is closed to new replies.