Post by vurkacmalkocoglu » Fri Sep 25, 2020 9:16 pm

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


Posts

Joined
Fri Sep 25, 2020 9:11 pm

Post by OSWorX » Fri Sep 25, 2020 10:14 pm

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.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by vurkacmalkocoglu » Fri Sep 25, 2020 10:53 pm

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


Posts

Joined
Fri Sep 25, 2020 9:11 pm

Post by OSWorX » Fri Sep 25, 2020 11:33 pm

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.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by vurkacmalkocoglu » Sat Sep 26, 2020 12:18 am

If it was up to me, i wouldnt use decimals, but the client wants decimals.


Posts

Joined
Fri Sep 25, 2020 9:11 pm

Post by paulfeakins » Mon Sep 28, 2020 5:41 pm

vurkacmalkocoglu wrote:
Sat Sep 26, 2020 12:18 am
If it was up to me, i wouldnt use decimals, but the client wants decimals.
How can you have clients when you're asking a relatively simple coding question?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by OSWorX » Mon Sep 28, 2020 5:46 pm

paulfeakins wrote:
Mon Sep 28, 2020 5:41 pm
vurkacmalkocoglu wrote:
Sat Sep 26, 2020 12:18 am
If it was up to me, i wouldnt use decimals, but the client wants decimals.
How can you have clients when you're asking a relatively simple coding question?
Huuh .. it's Monday and your are soo bad .. O0

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by vurkacmalkocoglu » Mon Sep 28, 2020 6:35 pm

paulfeakins wrote:
Mon Sep 28, 2020 5:41 pm
vurkacmalkocoglu wrote:
Sat Sep 26, 2020 12:18 am
If it was up to me, i wouldnt use decimals, but the client wants decimals.
How can you have clients when you're asking a relatively simple coding question?
You are not making any contribution to this post. Perhaps you should keep your thoughts to yourself.


Posts

Joined
Fri Sep 25, 2020 9:11 pm

Post by OSWorX » Mon Sep 28, 2020 7:35 pm

vurkacmalkocoglu wrote:
Mon Sep 28, 2020 6:35 pm
paulfeakins wrote:
Mon Sep 28, 2020 5:41 pm
vurkacmalkocoglu wrote:
Sat Sep 26, 2020 12:18 am
If it was up to me, i wouldnt use decimals, but the client wants decimals.
How can you have clients when you're asking a relatively simple coding question?
You are not making any contribution to this post. Perhaps you should keep your thoughts to yourself.
Calm down!

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.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: No registered users and 349 guests