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

Profit Markup/Margin Calculator

Views: 45,882

Results 121 to 140 of 157
28 May 2006, 12:40 AM
#121
wtashby avatar

wtashby

Totally Zenned

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

Profit Markup/Margin Calculator

Farrukh,

I've done everything you said, uploaded the files you sent me, ran the sql's you sent, and it still won't work. Somewhere, somehow, the markup and fee are not connecting with the cost to create the new price. I cannot read or program php, so, I'm at your mercy here. Don't give up on me yet, cause if I'm having this trouble, others will too.

Remember, I'm running on my local server, phpMyAdmin 2.7.0, with the latest version of Zen.

PS: Your PM box is full, and cannot receive any more PM's.

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

28 May 2006, 1:22 AM
#122
farrukh avatar

farrukh

Zen Follower

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

Re: Profit Markup/Margin Calculator

wtashby:

Farrukh,

I've done everything you said, uploaded the files you sent me, ran the sql's you sent, and it still won't work. Somewhere, somehow, the markup and fee are not connecting with the cost to create the new price. I cannot read or program php, so, I'm at your mercy here. Don't give up on me yet, cause if I'm having this trouble, others will too.

Remember, I'm running on my local server, phpMyAdmin 2.7.0, with the latest version of Zen.

PS: Your PM box is full, and cannot receive any more PM's.

wtashby, I just installed a FRESH copy of Zencart 1.3.0.1 to only test out this mod.

I went through the installation file i sent you . All worked fine.

I dont know why it isnt working for you. The Values are shown up on the Admin side and they are being added to the Database.

Check the ScreenShots of the Admin section and the Database Query reflecting the change.

Admin Section:

Database Query :

I need some more Testers .

It seems as if no one is interested

28 May 2006, 2:14 AM
#123
wtashby avatar

wtashby

Totally Zenned

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

Re: Profit Markup/Margin Calculator

Maybe there is something I'm missing? Are there any mods that would conflict with this one? I have your other mod, the Profit_Markup_Calculator_v1[1].12

Could that be a conflict?

Maybe there is something about the cost field I'm missing. I actually only have Cost for 2 products. I manually entered those, but, I would think that the mod would work no matter if you had all product costs entered, or, just one.

If no one else seems interested, well, hee hee, I guess you are stuck with me:D

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

28 May 2006, 4:40 PM
#124
plowe1 avatar

plowe1

Zen Follower

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

Re: Profit Markup/Margin Calculator

i would be interested to still see the report tool for the original markup mod.....


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

Car Audio, Entertainment & Security Specialists

29 May 2006, 12:07 AM
#126
plowe1 avatar

plowe1

Zen Follower

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

Re: Profit Markup/Margin Calculator

i am recieving two problems,

the first, is that the link in admin > reports is not displaying correctly, its showing as BOX_REPORTS_PRODUCTS_MARGIN, and when its cicked, it goes to :

http://www.yoursite.com/FILENAME_STATS_PRODUCTS_MARGIN.php

secondly, i get this error on the report screen...

1054 Unknown column 'op.products_cost' in 'field list'
in:
[select SUM(op.products_quantity) as products_ordered, op.products_name, p.products_margin_gross_dollar, p.products_price,op.products_cost, op.products_id, SUM(op.products_cost * op.products_quantity) AS total_cost, (SUM(op.products_price) - SUM(op.products_cost)) AS total_profit FROM orders_products op LEFT JOIN products p ON (p.products_id = op.products_id ) GROUP BY p.products_id ORDER BY products_ordered DESC, products_name limit 0, 20]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

what files need modifying??

i guess something to to with a define for the first one, and incorrect table refferences in second ???


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

Car Audio, Entertainment & Security Specialists

4 Jun 2006, 8:30 PM
#127
simon_m avatar

simon_m

New Zenner

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

Re: Profit Markup/Margin Calculator

plowe1:

i would be interested to still see the report tool for the original markup mod.....

and me

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

4 Jun 2006, 9:22 PM
#128
ladysaat avatar

ladysaat

Zen Follower

Join Date:
May 2006
Location:
Anywhere USMC points
Posts:
330
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

I am setting up another cart on a test site for another store. What can I test for you? I too am not a coder/php goddess so I can only install, run, and report for you... Would that be enough? Or are you needing someone who can find the errors and code fixes then report back to you?

The ART of Zen ; man I wish I was an ARTIST!~!

Donate $5 a month, you spend more for NOTHING at McDonalds!

5 Jun 2006, 12:52 PM
#129
holgate avatar

holgate

New Zenner

Join Date:
Aug 2005
Posts:
52
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

Not sure if anyone already suggested this, but the recent screenshot doesn't show it so I thought I'd comment... Would it be possible to add a column total for Total Cost and Total Profit on the report sheet?

Original

Recommended

5 Jun 2006, 1:00 PM
#131
simon_m avatar

simon_m

New Zenner

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

Re: Profit Markup/Margin Calculator

simon-m:

and me

simon

is it poss Farrukh (have pm you)

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

6 Jun 2006, 2:02 PM
#132
simon_m avatar

simon_m

New Zenner

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

Re: Profit Markup/Margin Calculator

Farrukh

The Profit Margin Calculator:
Products Cost:
Markup Percent : %
Gross Margin $:
Gross Margin %: %

is not showing up/working when you select Product Type:

Product Music
Document - General
Document - Product
Product - Free Shipping (I need)

Only when you select the Product Type:
Product General (I need)

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

6 Jun 2006, 2:33 PM
#133
simon_m avatar

simon_m

New Zenner

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

Re: Profit Markup/Margin Calculator

Also Farrukh

Which Field's in Table products in the D/B would I/We need to export so i can up date all the cost's in excel and then inport them as EP can not do this yet??

is it just:

products_cost

or

products_cost, products_margin_gross_dollar, products_margin_gross_percent

working on that I/We only need to get the cost done in bulk, then global markup can mark it up.

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

8 Jun 2006, 9:03 PM
#134
plowe1 avatar

plowe1

Zen Follower

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

Re: Profit Markup/Margin Calculator

I am recieving this error, when using the report...

1054 Unknown column 'op.products_cost' in 'field list'
in:
[select SUM(op.products_quantity) as products_ordered, op.products_name, p.products_margin_gross_dollar, p.products_price,op.products_cost, op.products_id, SUM(op.products_cost * op.products_quantity) AS total_cost, (SUM(op.products_price) - SUM(op.products_cost)) AS total_profit FROM orders_products op LEFT JOIN products p ON (p.products_id = op.products_id ) GROUP BY p.products_id ORDER BY products_ordered DESC, products_name limit 0, 20]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.


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

Car Audio, Entertainment & Security Specialists

8 Jun 2006, 9:18 PM
#135
simon_m avatar

simon_m

New Zenner

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

Re: Profit Markup/Margin Calculator

plowe1:

I am recieving this error, when using the report...

1054 Unknown column 'op.products_cost' in 'field list'
in:
[select SUM(op.products_quantity) as products_ordered, op.products_name, p.products_margin_gross_dollar, p.products_price,op.products_cost, op.products_id, SUM(op.products_cost * op.products_quantity) AS total_cost, (SUM(op.products_price) - SUM(op.products_cost)) AS total_profit FROM orders_products op LEFT JOIN products p ON (p.products_id = op.products_id ) GROUP BY p.products_id ORDER BY products_ordered DESC, products_name limit 0, 20]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

see

http://www.zen-cart.com/forum/showthread.php?t=37567

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

11 Jun 2006, 9:10 AM
#136
simon_m avatar

simon_m

New Zenner

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

Re: Profit Markup/Margin Calculator

plowe1:

I am recieving this error, when using the report...

1054 Unknown column 'op.products_cost' in 'field list'
in:
[select SUM(op.products_quantity) as products_ordered, op.products_name, p.products_margin_gross_dollar, p.products_price,op.products_cost, op.products_id, SUM(op.products_cost * op.products_quantity) AS total_cost, (SUM(op.products_price) - SUM(op.products_cost)) AS total_profit FROM orders_products op LEFT JOIN products p ON (p.products_id = op.products_id ) GROUP BY p.products_id ORDER BY products_ordered DESC, products_name limit 0, 20]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Hi plowe1

have you got it fixed plowe1?

or did you get a Internal Server Error

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

11 Jun 2006, 1:36 PM
#137
plowe1 avatar

plowe1

Zen Follower

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

Re: Profit Markup/Margin Calculator

partially fixed, but two links on the report page are still not working.


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

Car Audio, Entertainment & Security Specialists

11 Jun 2006, 1:39 PM
#138
simon_m avatar

simon_m

New Zenner

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

Re: Profit Markup/Margin Calculator

We were just getting internal server errors. I am only now able to look at things late evening.

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

12 Jun 2006, 9:49 PM
#139
wickedklown avatar

wickedklown

Zen Follower

Join Date:
Aug 2005
Posts:
370
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

i have got it working, i believe, although its nothing like the screenshots iv seen.

the first thing i had to do was change the filename link in the admin/stats_products_profit.php file to refect the actual filename. From there i removed all the "o"s from the p_products_cost vars on that same file. and then it worked but there is still something wrong i believe... im waiting form some help myslef. ill post a screeen shot in a min.

Super Orders2
Info at a glance
export email address
encrypted master pass
quick updates
recover carts
order Tracking
Tabbed products lite - admin edition
Hosted with sashbox.net <- best host around...

14 Jun 2006, 4:20 AM
#140
sanji avatar

sanji

Zen Follower

Join Date:
Jan 2005
Posts:
138
Plugin Contributions:
0

Re: Profit Markup/Margin Calculator

I also had the following problem in the category.php file :

Warning: Missing argument 2 for display_price() in /home/www/a392c92774b2609c389bb3ca36fb6261/users/ilot20/web/admin/includes/classes/currencies.php on line 70

As said before, it is corrected on this message : http://www.zen-cart.com/forum/showpost.php?p=206313&postcount=89

by changing, in admin/includes/functions/functions_price.php the following line:

    $show_normal_price = $currencies->display_price($display_cost_price);

to

    $show_normal_price = $currencies->display_price($display_cost_price, zen_get_tax_rate($product_check->fields['products_tax_class_id']));

Thanks a lot,

sanji