Shopping Cart Forum

Go Back   eShop Forums - eCommerce Help Forum for Shopping Cart Owners. > Tech Corner > HTML/XHTML CSS & JavaScript
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.

15% discount
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-06-2008, 05:23 PM
PWinter PWinter is offline
Junior Member
 
Join Date: Jun 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need JS routine to price items by inch of length.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-06-2008, 06:21 PM
dezina's Avatar
dezina dezina is offline
http://dezina.com
 
Join Date: Sep 2007
Location: England
Posts: 408
Blog Entries: 6
Thanks: 9
Thanked 60 Times in 57 Posts
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-06-2008, 06:47 PM
PWinter PWinter is offline
Junior Member
 
Join Date: Jun 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-06-2008, 09:26 PM
dezina's Avatar
dezina dezina is offline
http://dezina.com
 
Join Date: Sep 2007
Location: England
Posts: 408
Blog Entries: 6
Thanks: 9
Thanked 60 Times in 57 Posts
Default

Quote:
So I need some other way to calculate cost based on length and pass it to the cart
Url quoted was an example..am sure there is way, using zencart, to
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-06-2008, 03:38 AM
Lawrence Lawrence is offline
Forum Admin
 
Join Date: Aug 2007
Location: Kenley, Surrey, UK
Posts: 1,100
Thanks: 0
Thanked 65 Times in 65 Posts
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools
Display Modes

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

vB 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
price displayed wrong debs family clothing Zen Cart 4 10-08-2007 05:41 PM

Google

Edible Graphics, Affordable E-Commerce, Web Shops & Custom Form Scripts
Fair Trade Quality Handmade Photo Albums & Gifts
tech news, product reviews, the latest home and business technology, the latest in digital imaging


Content Relevant URLs by vBSEO 3.0.0