Dynamic price calculation based on custom field in Woocommerce
In Woocommerce on each product page there is a Text Box, which allows users to enter their own custom text. This text is then applied to the product, with the customer being charged on a per letter basis. I have managed to get everything working, apart from the Maths Logic. When a visitor enters x amount of letters, the current Maths logic correctly calculates the Product Price + Cost of Custom Letters and outputs this sum to the Basket Widget. Where I am running into problems, is when the visitor goes to the Basket Page, the Cost of the Custom Lettering is doubled. I just cannot seem to work