close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

eCart Options

Thread began 11/03/2009 3:48 pm by gdeac284426 | Last modified 11/12/2009 5:36 pm by gdeac284426 | 2100 views | 10 replies


Options Array programming

Thanks Eric

I am working on a total new e-commerce site, and looking for quotes on a variant array and programming code for one of the e-commerce platforms. I have experimented with several platforms x-cart, Magento and have also considered PowerStore™ 2 from webassist as it works with Dreamweaver.
I presently have a clean install of Magento loaded at index.php at this time.
In the admin back-end of most carts the options are covered except for the width and length increments as it used in my specific application of blinds, shades, drapery or anything that need a specific range selection.

The best explanation is the visual source code the following link this is a must see to explain the option needed.
When you go to the following link and look at "click / view / source / in your browser and scroll down to the variants array: it will display all the code and show the pricing which would have to be put in through an options panel in the Admin back-end, "as pricing is always changing.”



If you watch, the price change as you select the different sizes on the front end you would see not all increments change the price on the front end

A sample grid example very elementary

width ---- 12" 24" 36" 48"
length 12" $48 56 59 65
length 24" $58 60 68 70
length 36" $65 72 75 81

The price changes on the increment from example @ 24" wide x 36"length
through 35" & 7/8 to 36"
from $72 and goes to $75

The range of both options need to range in the following increments.
( width-inches) (12" to 210" ) & (1/8",1/4" etc. to 7/8", 1")
( height-inches) (12" to120" ) & ( 1/8",1/4" etc. to 7/8", 1")

One thing to keep in mind there is no set formula in the grids of a manufactures’
price list / I'm sure they have a formula of some kind really doesn't matter here.

• The Question is, if and when you have to reinstall the total program and database the custom implementation needs to be able re-implemented at that time, as either a Mod, / Plug-in etc. Otherwise, you would have to start from scratch everytime.
• As pricing is fluid the need to adjust it in the administration back-end is a crucial factor.

Not having a programming background, you may have other ideas and suggestions
Please feel free to elaborate.

Thank you,


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...