Re: Re: URL API

Posts: 16
Joined: 08/17/2007

Cart Links will let me add a Product to the cart and give me a destination url option, but what I really need is to be able to submit the option text to the product as well, similar to the request to modify the price automatically.

I describe my situation:

Users can view over 100,000 photos in a third party app (Gallery attached to Drupal)
From the photo view, users can order prints (3x5, 4x6, 5x7, etc)
In Ubercart, I have products corresponding the the prints (3x5, 4x6, 5x7, etc)
I haven't really thought about somehow generating 100,000 Attribute Options for each print size.

So instead, I created one Attribute Option as a blank text field that the user can input the Image_Code which is readily available in the url as ?Image_Code=123456

I can do php and html but the programming logic is a bit over my head in these modules.
The simplest solution I can think of is to extract the Image_code from the url and insert it in the Attribute/Option text box.

Placing it directly in the cart Like the Cart Links can do would actually work better if it was designed to add the Image_Code to the product.

URL API By: Lowell (13 replies) Sun, 03/23/2008 - 14:50