dynamic quantity recipe

Thread began 8/12/2009 12:53 pm by dmtompki336862 | Last modified 8/17/2009 7:18 pm by Eric Mittman | 1533 views | 5 replies |

8/12/2009 12:53 pm  |  #1 dmtompki336862

dynamic quantity recipe

I need to create a scenario for my items where the "quantity" of Item 1 is used for successive items, i.e.,

Item 1 = Qty * Cost
Item 2 = (Item 1 Qty) * Cost
Item 3 = (Item 1 Qty) * Cost
etc...

8/13/2009 1:12 pm  |  #2 Eric Mittman

This type of quantity based manipulation may be possible but how you would implement it will depend on all of the specifics involved. When you are setting the second and third items to be based on the quantity of the first does it matter what item is first, or does this only work with certain items? Please explain as best as you can so everyone can understand the criteria involved and how it should work out.

8/13/2009 1:45 pm  |  #3 dmtompki336862

calculations

This would only be for a specific item. The items have a parent/child hierarchy -- so the first item always remains the same. (sorry if I'm not being clear).

For example:

Party Package #1 = qty of 10 people * \$10
add on option #1 = (same qty of 10) * \$2
add on option #2 = (same qty of 10) * \$3

Total cost \$150

The reason for this is that I don't want users to be able to change the qty for the add-ons. Each add on must be for the full party.

8/17/2009 12:26 pm  |  #4 dmtompki336862

still in need of assistance!

Haven't heard from anyone in days...is this still an open issue?

8/17/2009 6:23 pm  |  #5 Anna Robinson

Still open

Yes, this is still an open issue and I will check in with the tech support engineer working with you. For everyone's sake, I will reiterate that our policy is to respond within 2 business days. We do everything we can to respond within one but Mondays are our heaviest days. The more in-depth or "custom" your question, the higher chance we need a little time to write up a response to you or research your question. Thank you for your patience.

8/17/2009 7:18 pm  |  #6 Eric Mittman

This is not something that you will be able to do using eCart calculations, this will require custom coding. Here is how it would work in a nutshell:

You would need to ensure that whatever options you have available would be available only for a single high level or first item. For example if you have an item called special party the options that are available for special party would need to only be available for that item. Any other item you would like to have options for will need it's own set of options that are also specific to only that item.

Once you have an item and options for that item setup you can check to see if the item is in the cart when the user tries to add one of those item's options. If it is in the cart then you can proceed to the add to cart functionality. When you apply this add to cart functionality to the page select the quantity field and ensure that it is set to not be updatable.

Once you have this in place the next thing to do is replace the current value you have for the quantity with the eCart function that will retrieve the quantity of your main item. This will allow you to have item options where the quantity is not updatable and where it is set to the quantity of the first item.

However if the user updates the quantity of the main item you will need to evaluate the quantity of the main item and set it to the options for that item. This part is a bit more complicated and will require you to edit the eCart update functionality. One way to avoid this issue would be to make the quantity of the main item not editable and use only the quantity that the user enters originally. This would mean that to update the quantity they would need to first remove the item from the cart then add it again with the correct quantity.

Please post back with any questions about any of these steps or the eCart code needed for any part of this.

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.

Everything else!

Close Window

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

Need technical support?
Please visit support to ask a question

Content

Layout

Ease of use

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 Window

We were unable to retrieve the attached file

Close Window

Attach and remove files

• Text Formatting
• Insert Element
• Block Formatting
• Cancel
Close Window

Close Window

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 --