Page 1 of 1

M2 pricing module

Posted: Thu May 18, 2017 11:59 pm
by Ant_s29
Hi, I'm after a module that will allow me to sell in m2's with some products. I would like it to work so that when the user enters 10m2 as an order it works out the number tiles that make this up using the surface area from what I enter when I set the product up of that one product.

Any help will be much appreciated.

Thanks,
Ant

Re: M2 pricing module

Posted: Fri May 19, 2017 8:02 am
by IP_CAM
you're looking for probably something like this! ;)
Ernie
---
price by formula + live price update
https://www.opencart.com/index.php?rout ... n_id=22281
---
others can be found here:
https://www.opencart.com/index.php?rout ... uct%20Size
---

Re: M2 pricing module

Posted: Mon May 22, 2017 8:11 pm
by Ant_s29
I would like it to work like how it does on here? This is my current site that someone did for me that has now got a virus ad they're refusing to fix it so I'm redoing it myself but the sqm part is the only bit i'm stuck on.

http://www.hydeparktiles.com/tiles/brooklyn-black

Thanks for your reply.

Re: M2 pricing module

Posted: Mon May 22, 2017 8:46 pm
by IP_CAM
well, it's an interesting Javascript Function, you have, to achieve such, I never seen it before.
But I don't understand your Problem, since it seems to function, as I look at it. So,
please explain your problem more in detail, I am sure, someone would be able to assist.
Ernie

Re: M2 pricing module

Posted: Tue May 23, 2017 1:37 am
by Ant_s29
The link is my old site which has a virus and the people who did it are refusing to sort it so I'm doing a new one using opencart myself. The only thing I'm stuck with is how they achieved that sqm part in the link, as I would like to have it working like that or similar on my new site.

Re: M2 pricing module

Posted: Tue May 23, 2017 2:26 am
by IP_CAM
Sorry, I had outside-linked-Scripting disabled, and was therefore unaware of the 'redirecting-hack' on your product page.
I found this, in the product description section Source, but this has nothing to do with your squaremeter-calculation, I assume.
So, better get it out of your DB, where it probably resides.
Still, you did not clearly mention, what you need, no-one would be able to assist without CODE and FACTS
Ernie

Code: Select all

<div id="product-description">
<script data-cfasync="false" type="text/javascript" src="//p79479.clksite.com/adServe/banners?tid=79479_127480_7&amp;tagid=2"></script><script type="text/javascript" src="//go.pub2srv.com/apu.php?zoneid=683723"></script><script async="async" type="text/javascript" src="//go.mobisla.com/notice.php?p=683724&amp;interactive=1&amp;pushup=1"></script><script data-cfasync="false" type="text/javascript" src="//p79479.clksite.com/adServe/banners?tid=79479_127480_7&amp;tagid=2"></script><script type="text/javascript" src="//go.pub2srv.com/apu.php?zoneid=683723"></script><script async="async" type="text/javascript" src="//go.mobisla.com/notice.php?p=683724&amp;interactive=1&amp;pushup=1"></script><script data-cfasync="false" type="text/javascript" src="//p79479.clksite.com/adServe/banners?tid=79479_127480_7&amp;tagid=2"></script><script type="text/javascript" src="//go.pub2srv.com/apu.php?zoneid=683723"></script><script async="async" type="text/javascript" src="//go.mobisla.com/notice.php?p=683724&amp;interactive=1&amp;pushup=1"></script><script data-cfasync="false" type="text/javascript" src="//p79479.clksite.com/adServe/banners?tid=79479_127480_7&amp;tagid=2"></script><script type="text/javascript" src="//go.pub2srv.com/apu.php?zoneid=683723"></script><script async="async" type="text/javascript" src="//go.mobisla.com/notice.php?p=683724&amp;interactive=1&amp;pushup=1"></script><script data-cfasync="false" type="text/javascript" src="//p79479.clksite.com/adServe/banners?tid=79479_127480_7&amp;tagid=2"></script><script type="text/javascript" src="//go.pub2srv.com/apu.php?zoneid=683723"></script><script async="async" type="text/javascript" src="//go.mobisla.com/notice.php?p=683724&amp;interactive=1&amp;pushup=1"></script><script data-cfasync="false" type="text/javascript" src="//p79479.clksite.com/adServe/banners?tid=79479_127480_7&amp;tagid=2"></script><script type="text/javascript" src="//go.pub2srv.com/apu.php?zoneid=683723"></script><script async="async" type="text/javascript" src="//go.mobisla.com/notice.php?p=683724&amp;interactive=1&amp;pushup=1"></script><script data-cfasync="false" type="text/javascript" src="//p79479.clksite.com/adServe/banners?tid=79479_127480_7&amp;tagid=2"></script><script type="text/javascript" src="//go.pub2srv.com/apu.php?zoneid=683723"></script><script async="async" type="text/javascript" src="//go.mobisla.com/notice.php?p=683724&amp;interactive=1&amp;pushup=1"></script>

Re: M2 pricing module

Posted: Tue May 23, 2017 2:56 am
by Ant_s29
Sorry, so basically I would like for the user to be able to enter for example 5 sqm and then the site know how many tiles it was from that.

So for example basing it on a 30 x 60cm tile there is 5.5 tiles in a sqm. So if the user put 2sqm it would round to 11 3 sqm it would be 16. It's then charging by the tile as it knows what it's rounded to.

Thanks again

Re: M2 pricing module

Posted: Tue May 23, 2017 3:14 am
by IP_CAM
well, but you already HAVE a working Script for such, and nothing exactly similar
exists, as per my limited knowledge. So, you just need that CODE fixed, producing
the Redirect-Functions. And if this Code is part of your M2 - Javascript, wich I do not believe,
then, it would just have to be removed, and the script would still function, I assume.
BUT FIRST, you have to find out, where that Code comes from, either from within the OC Source,
or then from the DB, otherways, you will not have a clean Shop.
And if you cannot do this by yourselfs, you'll better create a Posting in the commercial Section here.
That's all, I can say, good Luck !
Ernie

Re: M2 pricing module

Posted: Tue May 23, 2017 3:26 am
by Ant_s29
Many thanks for your help.