/** * Used for storing the quantity update link for ajax use. */ public function AJAXLinkHiddenField() { if ($quantitylink = $this->item->setquantityLink()) { $attributes = array('type' => 'hidden', 'class' => 'ajaxQuantityField_qtylink', 'name' => $this->MainID() . '_Quantity_SetQuantityLink', 'value' => $quantitylink); $formfield = new FormField('hack'); return $formfield->createTag('input', $attributes); } }
/** * Used for storing the quantity update link for ajax use. */ function AJAXLinkHiddenField() { if ($quantitylink = ShoppingCart::set_quantity_item_link($this->item->getProductIDForSerialization(), null, $this->parameters)) { $attributes = array('type' => 'hidden', 'class' => 'ajaxQuantityField_qtylink', 'name' => $this->item->MainID() . '_Quantity_SetQuantityLink', 'value' => $quantitylink); $formfield = new FormField('hack'); return $formfield->createTag('input', $attributes); } }
/** * Used for storing the quantity update link for ajax use. * @return String (HTML) */ function AJAXLinkHiddenField() { $name = $this->orderItem->AJAXDefinitions()->TableID() . '_Quantity_SetQuantityLink'; if ($quantitylink = $this->getQuantityLink()) { $attributes = array('type' => 'hidden', 'class' => 'ajaxQuantityField_qtylink', 'name' => $name, 'value' => $quantitylink); $formfield = new FormField($name); return $formfield->createTag('input', $attributes); } }