Javascript ile e-Ticaret platformarında sattığınız ürününüzün doğru satış fiyatını hesaplama ve php ile birlikte kullanımı

Overview

Javascript Komisyon Oranına Uygun Satış Fiyatı Hesaplama ve PHP ile Birlikte Kullanımı

Javascript ile e-Ticaret platformlarında sattığınız ürününüzün doğru satış fiyatını hesaplama

Çoğu satıcı komisyon oranına göre hesaplamayı tam anlayamadığı veya göz ardı ettiği için pazaryerlerinin komisyon oranları bu satıcıları maddi zarara uğratmaktadır.

Bunu basit bir işlemle örnekleyelim;

Örneğin ürünümüzün,

Geliş fiyatı = 80₺
Paketleme ve diğer giderler = 5₺
Kargo ücreti = 5₺
Kâr = 10₺

Böylelikle ürünümüzün komisyon hariç fiyatı 100₺ oldu

Komisyonumuzu, örneğin daha kolay anlaşılabilmesi için 10% olarak alalım.
100₺'nin 10%'unu 10₺ olarak elde ediyoruz. Peki buna bakarak ürünümüzü komisyon dahil 110₺ olarak fiyatlandırmak doğru mu?

HAYIR

Ürünümüzü 110₺ olarak fiyatlandırdık. Bakalım pazaryeri ürünümüzden kaç ₺ komisyon alıyor?

100/(110*10) = 11₺
Gördüğünüz üzere komisyonunu 10₺ olarak hesapladığımız üründen pazaryeri bizden 11₺ komisyon alıyor, yani 1₺ zarar etmiş oluyoruz.
Çünkü pazaryeri komisyonu 110₺ üzerinden alıyor.

Bunun önüne geçmek için çıkan sonucu 1.18125 değişkeni ile çarptığımız takdirde belirlediğimiz kâr oranını tam olarak alabiliyoruz. Çıkan sonuç 111.8125₺ oluyor. Sağlaması;

(111,80*10)/100 = 11,80,
111,80 - 11,80 = 100₺ tam sonuç alabiliyoruz.

Eğer değişkeni işleme katmazsanız;

(110*10)/100 = 11,
110 - 11 = 99₺ yani zararda oluyoruz.

Sizi büyük bir zarardan kurtardım 😁

Fonksiyonumda belirttiğim örneğin bir projemde yer almış hali, php ve javascript ile yazılmış kaynak kodları example klasöründe mevcut.

live example

You might also like...
Fausse page de connexion faite en PHP, inclu: blacklist IP, redirection au choix, webhook discord, logs. Pour les informations: IP, mdp, email, géolocalisation, navigateur et bien d'autre
Fausse page de connexion faite en PHP, inclu: blacklist IP, redirection au choix, webhook discord, logs. Pour les informations: IP, mdp, email, géolocalisation, navigateur et bien d'autre

Scam page PayPal v2 1. Tutoriel explicatif [striked] https://www.youtube.com/watch?v=5_gggGhVZlY [not striked] https://mega.nz/file/8Idw0BgR#4g3Q0

Chargily ePay Gateway PHP
Chargily ePay Gateway PHP

Chargily ePay Gateway PHP Make ePayment gateway integration with Chargily easier Currently support payment by CIB / EDAHABIA cards and soon by Visa /

Begining of an e-commerce website using PHP and the MVC Pattern

Begining of an e-commerce website using PHP and the MVC Pattern

Aimeos PHP e-commerce framework for ultra fast online shops, scalable marketplaces, complex B2B applications
Aimeos PHP e-commerce framework for ultra fast online shops, scalable marketplaces, complex B2B applications

Aimeos is an Open Source e-commerce framework for online shops consisting of the e-commerce library, the administration interface and different front-ends. It's a modular stack that offers an unmatched combination of flexibility and speed.

E-commerce web application using php routing
E-commerce web application using php routing

E-commerce Website E-commerce web application built using php routing. Instead of relying on the web server to map the request path to a file, all req

The Online Shopping System in PHP using XAMPP as virtual Server.
The Online Shopping System in PHP using XAMPP as virtual Server.

Online shopping is a form of electronic commerce which allows consumers to directly buy goods or services from a seller over the Internet using a web browser or a mobile app.

AbanteCart is a free PHP based eCommerce solution for merchants to provide ability creating online business and sell products online quick and efficient.

AbanteCart is a free PHP based eCommerce solution for merchants to provide ability creating online business and sell products online quick and efficient. AbanteCart application is built and supported by experienced enthusiasts that are passionate about their work and contribution to rapidly evolving eCommerce industry. AbanteCart is more than just a shopping cart, it is rapidly growing eCommerce platform

PHP Curl ile letgo api kütüphanesi oluşturuldu. php ile letgo giriş yap.

Kendi LETGO API ile işlemler gerçekleştirelim. // email işlemleri $server = 'imap.gmail.com'; $user = '[email protected]'; $pass = 'password'; $port = 9

Derste birlikte hazırladığımız PHP Tema Motoru kaynak kodları

Prototürk Template Engine Prototürk'de sorulan bir soru üzerine videoda birlikte hazırladığımız php ile geliştirilmiş basit bir tema motoru. Geçerli d

PHP CodeIgniter ile Gib API Vergi Kimlik No Doğrulama

php-gib-vkn-vd-api PHP CodeIgniter ile Gib API Vergi Kimlik No Doğrulama Vkn Sorgulama PHP ile API kullanımı ( PHP ) Vergi Kimlik Numarası doğrulama i

Php İle Yazılmış Basit Sıra Alım Ve Yönetim Sistemi

Sıra Yönetim Sistemi Bu proje, kullanıcıların kayıt olup sıra numarası alabilecekleri ve sıra numaralarını sorgulayabilecekleri bir web uygulamasıdır.

Javascript Minifier built in PHP

JShrink JShrink is a php class that minifies javascript so that it can be delivered to the client quicker. This code can be used by any product lookin

PHP class to generate bookmarklets from Javascript code

Bookmarklet Gen Convert readable Javascript code into bookmarklet links Features removes comments compresses code by removing extraneous spaces, but n

A password policy enforcer for PHP and JavaScript

PasswordPolicy A tool for checking and creating password policies in PHP and JS. Installation Use composer to setup an autoloader php composer.phar in

Lavacharts is a graphing / charting library for PHP 5.4+ that wraps Google's Javascript Chart API.

Lavacharts 3.1.12 Lavacharts is a graphing / chart library for PHP5.4+ that wraps the Google Chart API. Stable: Dev: Developer Note Please don't be di

Transform PHP data to JavaScript.

Transform PHP Vars to JavaScript Often, you'll find yourself in situations, where you want to pass some server-side string/array/collection/whatever t

A simple, type-safe, zero dependency port of the javascript fetch WebApi for PHP.
A simple, type-safe, zero dependency port of the javascript fetch WebApi for PHP.

A simple, type-safe, zero dependency port of the javascript fetch WebApi for PHP.

A (unofficial) WordPress plugin reporting PHP and JavaScript errors to Sentry.

A (unofficial) WordPress plugin to report PHP and JavaScript errors to Sentry.

A magic PHP framework. Build reactive web apps without writing HTML, CSS, or JavaScript! Powered by Tailwind, Alpine, Laravel, & Livewire.
A magic PHP framework. Build reactive web apps without writing HTML, CSS, or JavaScript! Powered by Tailwind, Alpine, Laravel, & Livewire.

Malzahar A magic PHP framework. Build reactive web apps without writing HTML, CSS, or JavaScript! Powered by Tailwind, Alpine, Laravel, & Livewire. Re

Owner
Emre Tarhan
Emre Tarhan
PHP implementation of Fowler's Money pattern.

Money PHP library to make working with money safer, easier, and fun! "If I had a dime for every time I've seen someone use FLOAT to store currency, I'

Money PHP 4.2k Jan 2, 2023
PHP 7+ Payment processing library. It offers everything you need to work with payments: Credit card & offsite purchasing, subscriptions, payouts etc. - provided by Forma-Pro

Supporting Payum Payum is an MIT-licensed open source project with its ongoing development made possible entirely by the support of community and our

Payum 1.7k Jan 5, 2023
LiteCart - Free Shopping Cart Platform - Built with PHP, jQuery HTML 5 and CSS 3

LiteCart is a lightweight e-commerce platform for online merchants. Developed in PHP, HTML 5, and CSS 3. LiteCart is a registered trademark, property

LiteCart 153 Dec 28, 2022
A free shopping cart system. OpenCart is an open source PHP-based online e-commerce solution.

OpenCart is a free open source ecommerce platform for online merchants. OpenCart provides a professional and reliable foundation from which to build a successful online store.

OpenCart 6.6k Dec 31, 2022
PHP payment library to easily integrate Baltic banklinks (supports old and new iPizza protocol), E-commerce gateaway (Estcard, Nets Estonia), Liisi Payment Link and Pocopay.

PHP Payment library PHP payment library to easily integrate Baltic banklinks, E-commerce gateaway (Estcard, Nets Estonia), Liizi Payment Link and Poco

Rene Korss 34 Apr 27, 2022
Full-featured e-commerce platform with multi-domain and multi-language support for PHP 8

Surikata.io Full-featured e-commerce platform with multi-domain and multi-language support for PHP 8. Free to use for both commercial and personal pro

null 8 Apr 5, 2022
Simple E-Comerce build use Laravel 5.6 require php version 5.6 or 7.4

Simple E-Comerce build use Laravel 5.6 require php version 5.6 or 7.4

Rangga Darmajati 3 Oct 7, 2021
Benefit PHP Shopping Cart Class (Simple Lightweight)

Benefit-PHP-Shopping-Cart-Class Benefit PHP Shopping Cart Class (Simple Lightweight) Table of Contents Initialization Get All Get Item Get Item Child

Osman Cakmak 8 Sep 6, 2022
A PHP package to simplify using DPO Payment API in your application.

DPO (Direct Pay Online) PHP Package The best DPO php package, simple Ever This is the package that will help you add DPO Payment API to your PHP Appli

Zepson Technologies 3 Nov 8, 2022
StrongShop 是一款免费开源的跨境电商商城网站。基于 PHP Laravel6 框架开发,遵循 BSD-3-Clause 开源协议,免费商用。支持多语言,多货币,多种国际配送方式。PayPal 支付,国际信用卡支付。PC Web 端和移动端自适应。

跨境电商独立站的理想选择之一 StrongShop 简介 StrongShop 是一款免费开源的跨境电商商城网站。 StrongShop 是基于 PHP Laravel 框架开发的一款 Web 商城系统。 开发缘起是公司的一套跨境商城系统,原先公司使用的系统是基于 Ecshop 二次开发的,后来因为

OpenStrong 38 Dec 9, 2022