Zen Cart Logo
Forums / General Questions / attributeHiddenField -- what is its purpose ?

attributeHiddenField -- what is its purpose ?

Locked

Views: 999

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
19 Jul 2006, 3:13 PM
#1
grossd avatar

grossd

Zen Follower

Join Date:
Sep 2005
Posts:
173
Plugin Contributions:
0

attributeHiddenField -- what is its purpose ?

Hello,

When products in a shopping cart are displayed there is a attributeHiddenField that is made use of.

What exactly is the purpose of this field?
Where is the contents of this field set or configured?

appreciating your response,

Daniel

ps. its only used in all of zencart (admin/catalogue):

includes/modules/pages/shopping_cart/header_php.php
includes/templates/<customTempate>/templates/tpl_shopping_cart_default.php
includes/templates/template_default/templates/tpl_shopping_cart_default.php

19 Jul 2006, 5:20 PM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: attributeHiddenField -- what is its purpose ?

Hmm
Are you talking about zen_draw_hidden_field?
San

19 Jul 2006, 5:30 PM
#3
grossd avatar

grossd

Zen Follower

Join Date:
Sep 2005
Posts:
173
Plugin Contributions:
0

Re: attributeHiddenField -- what is its purpose ?

Hello,

Thank you for the reply. Yes, amongst others also this ...

Here are several relevant lines obtained from the toolkit ...

I am contemplating whether i can use that field to somehow add custom information i'd like to maintain for products in the shopping cart and products in orders.

Daniel

Line #68 : $attributeHiddenField = "";

Line #100 : $attributeHiddenField .= zen_draw_hidden_field('id[' . $products[$i]['id'] . '][' . TEXT_PREFIX . $option . ']', $products[$i]['attributes_values'][$option]);

Line #103 : $attributeHiddenField .= zen_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value);

Line #127 : $productArray[$i] = array('attributeHiddenField'=>$attributeHiddenField,