osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

price calculation problem, where are the functions?

This is a discussion on price calculation problem, where are the functions? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi I have a specifig calculation for price, but I don't know which function is the main one for doing ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-29-2004, 08:46 AM
New Member
 
Join Date: Jun 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
navid
Default price calculation problem, where are the functions?

Hi
I have a specifig calculation for price, but I don't know which function is the main one for doing so.

this is my calculation.

Every pair itemscost $200
every single item costs $125

so if customer buys 5 items, total will be 200 +200 + 125
this is the rule and price for all products on my shop, because I have only one kind of product for sale!!

I know how to do the calculation, but i do not know what variable and function I should assign the sum.

Also, because my shop has only ONE product, I can hard code this permanently inside codes. The problem is where and what file and what function is the main price calculation.

also tax option will be disable. so no worry about that.

Can anybody help on this?

Thanks
Nav
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 06-29-2004, 09:46 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,568
Thanks: 1
Thanked 84 Times in 71 Posts
Rep Power: 10
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default

So the price is more like

1-125 (odd)
add 1 more-add another 75 (even)
add 1 more-add another 125 (odd)
add 1 more-add another 75 (even)
add 1 more-add another 125 (odd)
add 1 more-add another 75 (even)
etc...

Or better yet Price is:

If Qty = Even
price = Qty x $100

If Qty = Odd
price = Qty x $100 +$25



Should not be too hard to hard code it - Ugly as heck

Try looking at:
http://www.oscommerce.com/community/contributions,1242
Quantity Price Breaks Per Product

or
http://www.oscommerce.com/community/contributions,1700
XPricesPerProduct

These may be what your looking for - or atlease show you where you need to modify it to work the way you want.

Good Luck!
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 06-29-2004, 11:49 AM
New Member
 
Join Date: Jun 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
navid
Default

Hi jpf
Thanks for your reply.
yes, your formula is right, that is the way I want.

I just looked at that contribution site. what is it about? are there other functions and add ons that we can select to add to our shopping cart?

There are different down load, are this different codes people developed independet of each other?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 07-02-2004, 08:49 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,568
Thanks: 1
Thanked 84 Times in 71 Posts
Rep Power: 10
jpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of lightjpf is a glorious beacon of light
Default

Short answer:

A: Contribution/Modification to exisiting "base code" of OSC

B: Yes. To a point. (Some are for OLDER version or are simular fuction - but diffent process by differnt authors, some are duplicates)

C: Yes.

D: Yes.

Longer answer:

OSCommerce is an open source project and many people find diffent ways to thing (out of nessary or what if it could do this...). Some times it does not suit the way they want or they have special ways of doing thing than OSC does not do (and may not be applicalbe to be used for "ALL" people). They return the favor buy "contributing" BACK to the OPEN SOURCE COMMUNITY that gave them the orginal program. After all why reinvent the wheel every time some one wants a diffent color or size or because one of your neibours has one etc.

Yes you can ADD these into your site - if you have a PLAIN version of OSC and add only one -then it should be easy - when you add 2 or more - that conflict with each other (they modify the same file or worse - the same code) then it gets harder.

MS2-MAX has over 20 of these most common MODS already included. The largest change was the BTS mod (Basic Template System) changes the most files (over 62 files radically changed and added almost as many in the catalog side), which makes it a bit harder to add other contributions - BUT NOT IMPOSSABLE!


Good Luck
__________________
JPF - osCMax Fourm Moderator
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 07-03-2004, 07:55 AM
red_fraggle's Avatar
Active Member
 
Join Date: Feb 2004
Location: wilmington, NC
Posts: 319
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
red_fraggle
Default

If you need modification done, we will install ANY module at oscommerce.com's contribution section for $49.95. This includes the linkpoint payment gateway i helped write and currently provide free email and phone support for.

Our standard rates for custom PHP Development are $40.00 per hour. There is nothing we can't do with OSC and OSC MAX
__________________
Clifton Murphy CEO/CTO
Hyperactive Inc.
osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Shop by price infobox problem please help~ jikey osCMax v2 Features Discussion 2 11-26-2006 02:14 AM
Call For Price Problem bkpie osCMax v2 Customization/Mods 3 07-27-2006 05:04 PM
Tax Calculation wrong with Attributes ron54 osCMax v1.7 Discussion 1 01-29-2005 12:43 PM
Price Problem Chippy osCMax v1.7 Installation 4 07-16-2004 10:49 PM
need to change the price calculation for OSCommerce cart navid osCommerce 2.2 Modification Help 0 06-23-2004 01:53 PM


All times are GMT -8. The time now is 10:46 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax