PDA

View Full Version : Dynamic Custom Fields - Possible?


adrious
02-12-07, 11:44 PM
I am trying to evaluate MM5's fitness for a website with very out-of-the-ordinary requirements.

We would like to create a set of 18-20 Product SKUs. However, these "products" are highly configurable and I would like to associate some of these products with about 6 Custom Fields. No problem... However, I need to be able to SET the values for these fields from the web interface (as hidden fields generated by database queries to our own internal system), NOT pull their values from the Miva database.

I've tried looking up examples, on how to post/write values but have not been able to do anything but retrieve pre-configured settings. Is there a specific call or method that has to be invoked to achieve this?

This is a base MM5 installation. Any help with code or modules would be greatly appreciated.

DesignExtend-MSI
02-13-07, 01:18 AM
What exactly are you wanting to do? Is the purpose to build a custom product?

adrious
02-13-07, 01:41 AM
Yes, these are customized purchases, so the only thing I want to keep in the store is the generic product code. Ultimately I want to set all the product parameters, including unit cost and quantity, by passing hidden field values from the website (HTML, not MVC).

How can this be done?

DesignExtend-MSI
02-13-07, 02:01 AM
You have two options:

Use a script that will toss in those parameters to a TEXTAREA attribute on the product (unless they're varying available options that cost additional, in which case you'd need to make them options on the product itself).

Use an External Product (http://www.designextend.com/page/miva/PROD/exproduct) module, which will allow ordering and payment of a non-standard, non-catalog defined item.

adrious
02-13-07, 02:24 AM
Would this module allow me to set up the dynamic parameters from an HTML page. I don't want to put the user into the MIVA interface (mvc) unitl the dynamic parameters like price, qty, etc. have been set. Basically, I need to know if all this data can be passed via a form POST.

DesignExtend-MSI
02-13-07, 05:24 AM
Would this module allow me to set up the dynamic parameters from an HTML page. I don't want to put the user into the MIVA interface (mvc) unitl the dynamic parameters like price, qty, etc. have been set. Basically, I need to know if all this data can be passed via a form POST.

Yes, it can. If you look at a MIVA Merchant product page and view the source code, you'll see it uses a form as well, so you can mimic that form (or build one with another script) to pass variables, even via a direct URL.