![]() |
|
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| HTML/XHTML CSS & JavaScript Pick up tips, exchange ideas and swap client side scripts. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello, I just joined so please be gentle. We're working with a potential client that wants to sell exterior home shutters on the Internet. The shutters are priced by width and inches of length, that is, a 14" wide shutter is $1.06 per inch of length and so on. I need a Javascript routine (or possibly a server side PHP routine) that will take the customer's width and length, multiply by the cost per inch to arrive at a total cost per shutter, display it on the page, and pass it to the shopping cart. Any suggestions where I might get such a script will be greatly appreciated.
Second problem/question. We have not yet decided upon which cart to use, and are looking at hosted carts, but we're not locked into that. We will in all likelyhood have to modify the cart to accept the total price from the form rather than from the product database. Any suggestions about which cart to use will be great. Thank you all |
|
||||
|
Using zencart.. maybe possible to use attributes
i.e as per selling rope.. example at http://www.zen-cart.net/demo/index.p...roducts_id=154 |
|
|||
|
Thank you for the suggestion. That is close to what I need, but quite there. Here's why. The demo uses the quantity to specify the length of rope. However, I will need to use the quantity field to specify the number of pairs of shutters. So I need some other way to calculate cost based on length and pass it to the cart. I am looking at Zen Cart, BTW.
Thanks |
|
||||
|
Quote:
acieve your desired result..if not via attributes then possibly zencart mod..these can be found at http://www.zen-cart.com/index.php?ma...index&cPath=40 Also, ZenCart forums threads often have code snippits in posts. HTH |
|
|||
|
Another one to look at is Magento, it has some advanced product attribute features.
Is there a limited number of different lengths? If so, an alternative to multiplying the length by the cost per inch is to make each length a product attribute and create a table of length and cost data. It will be tedious inputting the data by hand, but it'll be easier and cheaper than getting someone to write a custom script for the job, though as Dazina has already said, there's probably a Zen mod available to do this sort of pricing.
__________________
Lawrence |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| price displayed wrong | debs family clothing | Zen Cart | 4 | 10-08-2007 05:41 PM |