Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Operator's on product option


charmingchains

Recommended Posts

I changed the drop down menu's to make the drop down's show the real price with an option. When I added the contribution that does that, I looked at it and modified it so that it would work with *, /, +, and - operators, instead of just the +, -... one problem, OS Commerce does not use *, and / for modifying the price options. Where does OS commerce process the change in price with the options, making the price the final price... I want to modify that code to also use *, and /...

 

Thanks,

 

Charlie

Link to comment
Share on other sites

for example this is done in products_listing.php I thought.

But basically the only alteration to the default price in the products table is the specials table. Here a new price is set that completely overrules the default one in the products table. So all other modifications are done in your contribution I guess.

So you would need to look at the files modified by the contribution.

Link to comment
Share on other sites

the price calculation is done in the class shopping_cart.php

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

http://www.oscommerce.com/community/contributions,2487/

 

actual price in pull down menu... version 1.2.3a is what I started with... I added functionality for using * and / as operators... The contribution only changes the file on product info... I modified it to have the additional operators, but never found the place to change it in the shopping cart area.

 

I like the idea of being able to make the option values change the price by a percentage.

 

Thanks for the location, I will work with that.

 

Charlie

Link to comment
Share on other sites

how many places are there where prices are modified... I would like to make some changes that let percentages of prices be populated dynamically. I make bracelets and sell them. the possibility of change in price of the base size makes it better if the site calculates the price dynamically. This way every time I change the price of the base bracelet, I don't ahve to go through and modify the options for all the bracelets, with 100 bracelets that adds up to 500 options... How many places does the price get touched by calculations for different boxes.

 

Currently I found the place to modify in shopping cart, but not all the places in shopping cart....

 

but none for the checkout process...

 

Charlie

Link to comment
Share on other sites

you lost me, lol :-)

 

in the shopping cart class, price is set 2x IIRC, if that helps

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...