VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: OliviaH on November 13, 2019, 15:49:54 PM

Title: Price Calculator
Post by: OliviaH on November 13, 2019, 15:49:54 PM
Hello,
We are a wood flooring company so on most of our wood products we have a calculator option to enter in sqm required and it works out how many packs you need. We are adding a few new products in and don't know how to add this option in.

Anyone got any ideas?

I have attached a screenshot of one of the products that has the calculator present just so you know what I'm talking about!

Thanks

Title: Re: Price Calculator
Post by: PRO on November 13, 2019, 15:56:18 PM
what are you asking?

specifically

https://extensions.virtuemart.net/product/products/quantity-related-price-calculation-detail
Title: Re: Price Calculator
Post by: OliviaH on November 13, 2019, 16:05:52 PM
I just need to know where to find it within the code/back end of joomla because we must have the plugin somewhere for it to work on the products we already have on the site. The problem is when I am trying to add new products that need the calculator, i'm unsure where to find the option to add it in.
Title: Re: Price Calculator
Post by: Jörgen on November 13, 2019, 16:30:13 PM
Are You using VM ?  What version ?

Where does the calculator come from ? Those people should be the one you should talk to.

Jörgen @ Kreativ Fotografi
Title: Re: Price Calculator
Post by: OliviaH on November 13, 2019, 17:02:50 PM
Yes using VM, version 3.0.12 which I am aware is very old!

We are unsure where the calculator comes from that's our issue, the guy who used to do our website has now left so we are unsure where to find this information. We thought it might just be an option on virtuemart when adding a new product in
Title: Re: Price Calculator
Post by: StefanSTS on November 13, 2019, 20:24:49 PM
You might be using this extension.

https://extensions.virtuemart.net/products/custom-size-detail

There is a "link to tutorial" that might help if it is this plugin.

Regards
Stefan
Title: Re: Price Calculator
Post by: GJC Web Design on November 13, 2019, 22:20:45 PM
If you supply a login to https://flooringsales.co.uk/ then we can have a look at the code

looks like it was coded by your template supplier Flexible

see templates/avant/js/custpriceupdate.js
Title: Re: Price Calculator
Post by: OliviaH on November 14, 2019, 10:47:29 AM
Thanks StefanSTS that's great - I will try that!
Title: Re: Price Calculator
Post by: StefanSTS on November 14, 2019, 10:54:14 AM
Looks like GJC had a closer look into your template already.
So it's probably a template feature.

GJC is a good resource for help here.
Title: Re: Price Calculator
Post by: PRO on November 15, 2019, 20:32:57 PM
ALSO, go into your existing products nd whats in the backend of the product?
Title: Re: Price Calculator
Post by: GJC Web Design on November 15, 2019, 22:33:34 PM
the sq area input is a restyled bog standard VM quantity input with some new JS attached

<input type="text" class="quantity-input js-recalculate" id="quantity-input" name="" onkeydown="return isNumberKey(event)" onkeyup="Calculate()" placeholder="Enter area in sqm" value="" init="1" step="1">

onkeyup="Calculate()"

functions in https://flooringsales.co.uk/templates/avant/js/custpriceupdate.js

so no plugin

I would assume some sublayout over ride that u have to choose in the product or programatically assigned by cat/prod