Hi There,

I have setup a content type with a names field with no of items set to 'unlimited', I have done the node checkout shabangle and am now looking at setting the no of items above to the product qty added to cart.

Has anyone tried this?

I notice that in the argument string
http//:blahblah.com/node/add/names?product_nid=15&qty=3&attr=1-1

As the qty is set to a value here, is there any way to get it into the "form builder"?

Many thanks in advance.

Comments

sabweb’s picture

What an amazing journey!

If anyone is looking for a solution to this problem, the secret lies in the content.node_form.inc file found in the includes folder of cck.

The function at line 150 holds the power, that and the $form["#action"] value, with some php string manipulation.

;)