I am looking for a way to enable rewards points with decimals. I have already checked some extensions but i am not sure if any of them is good for me. Does anyone know which files to edit in order to be able to add reward points with decimals? I am using Opencart 3 version
And how does that make sense to have decimals?
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
I want to apply a percentage of the product price. For example, the product is £37 and i will give %5 as reward point so that makes it 1.85 as reward. hope it makes sense
If you would calculate all your points without decimals (e.g. your sample with 37 Pounds) would be then 4 points (10%) or 2 (5%) rounded.
Why doing so complicated, because what you want need some additional coding.
Why doing so complicated, because what you want need some additional coding.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
How can you have clients when you're asking a relatively simple coding question?vurkacmalkocoglu wrote: ↑Sat Sep 26, 2020 12:18 amIf it was up to me, i wouldnt use decimals, but the client wants decimals.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Huuh .. it's Monday and your are soo bad ..paulfeakins wrote: ↑Mon Sep 28, 2020 5:41 pmHow can you have clients when you're asking a relatively simple coding question?vurkacmalkocoglu wrote: ↑Sat Sep 26, 2020 12:18 amIf it was up to me, i wouldnt use decimals, but the client wants decimals.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
You are not making any contribution to this post. Perhaps you should keep your thoughts to yourself.paulfeakins wrote: ↑Mon Sep 28, 2020 5:41 pmHow can you have clients when you're asking a relatively simple coding question?vurkacmalkocoglu wrote: ↑Sat Sep 26, 2020 12:18 amIf it was up to me, i wouldnt use decimals, but the client wants decimals.
Calm down!vurkacmalkocoglu wrote: ↑Mon Sep 28, 2020 6:35 pmYou are not making any contribution to this post. Perhaps you should keep your thoughts to yourself.paulfeakins wrote: ↑Mon Sep 28, 2020 5:41 pmHow can you have clients when you're asking a relatively simple coding question?vurkacmalkocoglu wrote: ↑Sat Sep 26, 2020 12:18 amIf it was up to me, i wouldnt use decimals, but the client wants decimals.
You have "Clients " - means you earn money.
You have "Clients" - you should know what to do.
You have "Clients" - but cannot code > no problem, post a request in the Commercial Section of this forum and someone else will do it for you.
But basically, it is a stupid Idea to have decimals.
And you should be able to describe your "Client" why.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Who is online
Users browsing this forum: No registered users and 349 guests