Forums / All Other Contributions/Addons / Profit Markup/Margin Calculator

Profit Markup/Margin Calculator

Views: 45,874

Results 1 to 20 of 157
21 May 2006, 11:40 PM
#1
farrukh avatar

farrukh

Zen Follower

Join Date:
Dec 2003
Posts:
233
Plugin Contributions:
0

Profit Markup/Margin Calculator

I am releasing the Profit Markup Calculator due to the request by some members.

The Profit Margin Calculator works dynamically.

For e.g.

You only have to enter the Product Cost and Markup Margin, and the Products Price will be changed automatically to reflect the cost plus the markup. It will show you the Selling Price.

And Margin Gross will be updated dynamically as well.

NOTE:

You have to TAB through the Margin Dollar and Percent fields in order for them to change.


Download Here


http://www.islamicilm.com/downloads/dc.php?dcid=10872966&submit=Go%21

..

21 May 2006, 11:45 PM
#2
farrukh avatar

farrukh

Zen Follower

Join Date:
Dec 2003
Posts:
233
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

Hi

I am working on updating the Profit Markup/Margin Calc. to include the following:

Product ID
Product Name
Products Sold (individual product details)
Cost Price of a product
Selling Price of a product
Profit per Product

Im half way through. I'll update you guys when I complete it.

22 May 2006, 9:55 AM
#3
simon_m avatar

simon_m

New Zenner

Join Date:
Jan 2006
Posts:
71
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

Thanks for making this available again, it's comeing down as rar not a zip.

Thanks

Simon

Zen Cart:1.3.0.2
MySQL:4.1.19-standard
Linux:2.6.14.2-ts.grh.mh.ht
PHP Version:4.4.2

22 May 2006, 11:20 AM
#5
simon_m avatar

simon_m

New Zenner

Join Date:
Jan 2006
Posts:
71
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

Thank you very much for doing that

Many thanks

Simon

Zen Cart:1.3.0.2
MySQL:4.1.19-standard
Linux:2.6.14.2-ts.grh.mh.ht
PHP Version:4.4.2

22 May 2006, 3:55 PM
#7
simon_m avatar

simon_m

New Zenner

Join Date:
Jan 2006
Posts:
71
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

Look good -

Simon

Zen Cart:1.3.0.2
MySQL:4.1.19-standard
Linux:2.6.14.2-ts.grh.mh.ht
PHP Version:4.4.2

22 May 2006, 10:03 PM
#8
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

Are the files that should be altered, already included in the download, and already altered? Also, is this 1.3 compatible?

I ask because I installed the sql and uploaded the files included with the download, and it "Broke" my admin. I had to re-upload the origionals just to get into my admin.

I Think, Therefore I Zen. I Zen, Therefore, I AM!
Personalized Flowers!
Flowertown Speaking Roses
using version 1.5.7-06232020

22 May 2006, 10:10 PM
#9
simon_m avatar

simon_m

New Zenner

Join Date:
Jan 2006
Posts:
71
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

Hi Farrukh

geting this in admin

Warning: Missing argument 2 for display_price() in /.../catalog/_XadminX/includes/classes/currencies.php on line 70

which points to this in currencies.php:

Code:

function display_price($products_price, $products_tax, $quantity = 1) { return $this->format(zen_add_tax($products_price, $products_tax) * $quantity); }

now what??

simon

Zen Cart:1.3.0.2
MySQL:4.1.19-standard
Linux:2.6.14.2-ts.grh.mh.ht
PHP Version:4.4.2

22 May 2006, 11:36 PM
#10
plowe1 avatar

plowe1

Zen Follower

Join Date:
Nov 2005
Location:
Manchester, UK
Posts:
95
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

simon-m:

Hi Farrukh

geting this in admin

Warning: Missing argument 2 for display_price() in /.../catalog/_XadminX/includes/classes/currencies.php on line 70

which points to this in currencies.php:

Code:

function display_price($products_price, $products_tax, $quantity = 1) { return $this->format(zen_add_tax($products_price, $products_tax) * $quantity); }

now what??

simon

i too am getting this, i am not a coder, but i am guessing it is missing a reffer like $cost or something,

i haven't managed to sort it out though... some help is appreciated


https://www.ice4urmotor.co.uk
https://www.ice4urmotor.com

Car Audio, Entertainment & Security Specialists

23 May 2006, 2:06 AM
#11
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

wtashby:

Are the files that should be altered, already included in the download, and already altered? Also, is this 1.3 compatible?

I ask because I installed the sql and uploaded the files included with the download, and it "Broke" my admin. I had to re-upload the origionals just to get into my admin.

This is the error I get when I say that it "Broke" my admin:

Fatal error: Cannot redeclare zen_update_products_price_sorter() (previously declared in C:\Program Files\xampp\htdocs\store\admin\includes\functions\general.php:2495) in C:\Program Files\xampp\htdocs\store\admin\includes\functions\functions_prices.php on line 1311

I Think, Therefore I Zen. I Zen, Therefore, I AM!
Personalized Flowers!
Flowertown Speaking Roses
using version 1.5.7-06232020

23 May 2006, 2:13 AM
#12
whocaresanyway avatar

whocaresanyway

Suspended

Join Date:
May 2006
Posts:
66
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

open
admin\includes\functions\functions_prices.php
and comment out

lines 1302 to 1311

  function zen_update_products_price_sorter($product_id) {
    global $db;

    $products_price_sorter = zen_get_products_actual_price($product_id);

    $db->Execute("update " . TABLE_PRODUCTS . " set
         products_price_sorter='" . zen_db_prepare_input($products_price_sorter) . "'
         where products_id='" . $product_id . "'");

  }

this function is included in the core files and is whats causing your issue

23 May 2006, 2:23 AM
#13
wtashby avatar

wtashby

Totally Zenned

Join Date:
Feb 2006
Posts:
594
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

that is one of the files that is included in the module download. It also contains those lines. I tried to comment them out as you suggested but still get the same error.

Fatal error: Cannot redeclare zen_parse_salemaker_categories() (previously declared in C:\Program Files\xampp\htdocs\store\admin\includes\functions\general.php:3003) in C:\Program Files\xampp\htdocs\store\admin\includes\functions\functions_prices.php on line 1327

I Think, Therefore I Zen. I Zen, Therefore, I AM!
Personalized Flowers!
Flowertown Speaking Roses
using version 1.5.7-06232020

23 May 2006, 3:50 AM
#14
whocaresanyway avatar

whocaresanyway

Suspended

Join Date:
May 2006
Posts:
66
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

find

function zen_update_products_price_sorter($product_id) {
    global $db;

    $products_price_sorter = zen_get_products_actual_price($product_id);

    $db->Execute("update " . TABLE_PRODUCTS . " set
         products_price_sorter='" . zen_db_prepare_input($products_price_sorter) . "'
         where products_id='" . $product_id . "'");

  }

in admin\includes\functions\ functions_prices.php

and replace with

/*function zen_update_products_price_sorter($product_id) {
    global $db;

    $products_price_sorter = zen_get_products_actual_price($product_id);

    $db->Execute("update " . TABLE_PRODUCTS . " set
         products_price_sorter='" . zen_db_prepare_input($products_price_sorter) . "'
         where products_id='" . $product_id . "'");

  }*/

then make sure to save and re-upload....

then close browser and reopen the browser window to clear cache

I know that file is included in the download however that function is loaded by zen cart by default, so it dosnt need to be there in the new file

23 May 2006, 9:15 AM
#15
farrukh avatar

farrukh

Zen Follower

Join Date:
Dec 2003
Posts:
233
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

Hi

Download the latest version. I have fixed the bugs and cleaned out the wrong files.

Download Profit Markup/Margin Calculator v1.11 ( Zencart v1.3.0.1 Compatible)

USE THIS FILE and read the Readme File and follow it. Only use the files provided in the download, if you have a fresh Zencart v1.3.0.1 Install.


Download Link


Profit Markup/Margin Calculator v1.11

.

23 May 2006, 9:32 AM
#16
plowe1 avatar

plowe1

Zen Follower

Join Date:
Nov 2005
Location:
Manchester, UK
Posts:
95
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

Farrukh:

Hi

Download the latest version. I have fixed the bugs and cleaned out the wrong files.

Download Profit Markup/Margin Calculator v1.11 ( Zencart v1.3.0.1 Compatible)

USE THIS FILE and read the Readme File and follow it. Only use the files provided in the download, if you have a fresh Zencart v1.3.0.1 Install.

I have just compared the files, and have updated the changes, but still i get the error :

Warning: Missing argument 2 for display_price() in /.../catalog/_XadminX/includes/classes/currencies.php on line 70


https://www.ice4urmotor.co.uk
https://www.ice4urmotor.com

Car Audio, Entertainment & Security Specialists

23 May 2006, 9:35 AM
#17
farrukh avatar

farrukh

Zen Follower

Join Date:
Dec 2003
Posts:
233
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

plowe1:

I have just compared the files, and have updated the changes, but still i get the error :

Warning: Missing argument 2 for display_price() in /.../catalog/_XadminX/includes/classes/currencies.php on line 70

The problem seems to be with your present setup of Zencart. Have you installed any other contributions or made any changes to the Zencart.

The error you mentioned cannot be present, since there is no changes involved in /classes/currencies.php

23 May 2006, 9:44 AM
#18
plowe1 avatar

plowe1

Zen Follower

Join Date:
Nov 2005
Location:
Manchester, UK
Posts:
95
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

my zencart is V 1.3.0.1, and is a clean install, there are no other modifications on those files already.

everything has worked fine until i uploaded this mod.. so i can't see how it can't not be something to do with this mod....

this error is displaying in the cost section of the products display in the admin side...

as i suggested earlier, not being a coder, but a wild guess that it must need some sort of refferenct to $products_cost or something like that adding into currencies.php ???

this would be a useful mod, and i hope between us all, we can get this issue fixed..

Simon-m has gone quiet on this topic... have you got it fixed simon ?


https://www.ice4urmotor.co.uk
https://www.ice4urmotor.com

Car Audio, Entertainment & Security Specialists

23 May 2006, 9:49 AM
#19
farrukh avatar

farrukh

Zen Follower

Join Date:
Dec 2003
Posts:
233
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

plowe1:

my zencart is V 1.3.0.1, and is a clean install, there are no other modifications on those files already.

everything has worked fine until i uploaded this mod.. so i can't see how it can't not be something to do with this mod....

this error is displaying in the cost section of the products display in the admin side...

as i suggested earlier, not being a coder, but a wild guess that it must need some sort of refferenct to $products_cost or something like that adding into currencies.php ???

this would be a useful mod, and i hope between us all, we can get this issue fixed..

Simon-m has gone quiet on this topic... have you got it fixed simon ?

I cannot reproduce the problem.

23 May 2006, 9:59 AM
#20
plowe1 avatar

plowe1

Zen Follower

Join Date:
Nov 2005
Location:
Manchester, UK
Posts:
95
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

i did change define('TEXT_PRODUCTS_PRICE_MARGIN_GROSS', 'Gross Margin $:'); to be define('TEXT_PRODUCTS_PRICE_MARGIN_GROSS', 'Gross Margin £:');

but this wouldn't make a difference would it ???

can u paste a copy of your currencies.php so i can compare???


https://www.ice4urmotor.co.uk
https://www.ice4urmotor.com

Car Audio, Entertainment & Security Specialists