Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- array (
- '#attributes' =>
- array (
- 'class' =>
- array (
- 0 => 'commerce-add-to-cart',
- 1 => 'commerce-cart-add-to-cart-form-763-764',
- ),
- ),
- 'uid' =>
- array (
- '#type' => 'value',
- '#value' => 0,
- ),
- 'product_id' =>
- array (
- '#type' => 'select',
- '#options' =>
- array (
- 763 => 'Кружка "Предложение", золотое кольцо - 450р. - под заказ',
- 764 => 'Кружка "Предложение", серебрянное кольцо - 550р. - в наличии, несколько',
- ),
- '#default_value' => '763',
- '#weight' => 0,
- '#ajax' =>
- array (
- 'callback' => 'commerce_cart_add_to_cart_form_attributes_refresh',
- ),
- '#title' => '2 варианта товара, выберите:',
- ),
- 'quantity' =>
- array (
- '#type' => 'hidden',
- '#value' => '1',
- '#datatype' => 'integer',
- '#weight' => 45,
- ),
- 'line_item_fields' =>
- array (
- '#type' => 'container',
- '#parents' =>
- array (
- 0 => 'line_item_fields',
- ),
- '#weight' => 10,
- '#tree' => true,
- '#entity' =>
- stdClass::__set_state(array(
- 'type' => 'product',
- 'order_id' => 0,
- 'quantity' => '1',
- 'data' =>
- array (
- 'context' =>
- array (
- 'product_ids' => 'entity',
- 'add_to_cart_combine' => true,
- 'show_single_product_attributes' => false,
- 'display_path' => 'node/75',
- 'entity' =>
- array (
- 'entity_type' => 'node',
- 'entity_id' => '75',
- 'product_reference_field_name' => 'field_products',
- ),
- ),
- ),
- 'line_item_id' => NULL,
- 'line_item_label' => '1914',
- 'created' => '',
- 'changed' => '',
- 'is_new' => true,
- 'commerce_product' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'product_id' => '763',
- ),
- ),
- ),
- 'commerce_display_path' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'value' => '',
- ),
- ),
- ),
- 'commerce_unit_price' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'amount' => '45000',
- 'currency_code' => 'RUB',
- 'data' =>
- array (
- 'components' =>
- array (
- ),
- ),
- ),
- ),
- ),
- )),
- 'commerce_unit_price' =>
- array (
- '#type' => 'container',
- '#attributes' =>
- array (
- 'class' =>
- array (
- 0 => 'field-type-commerce-price',
- 1 => 'field-name-commerce-unit-price',
- 2 => 'field-widget-commerce-price-full',
- ),
- ),
- '#weight' => 0,
- '#tree' => true,
- '#language' => 'und',
- 'und' =>
- array (
- 0 =>
- array (
- '#entity_type' => 'commerce_line_item',
- '#entity' =>
- stdClass::__set_state(array(
- 'type' => 'product',
- 'order_id' => 0,
- 'quantity' => '1',
- 'data' =>
- array (
- 'context' =>
- array (
- 'product_ids' => 'entity',
- 'add_to_cart_combine' => true,
- 'show_single_product_attributes' => false,
- 'display_path' => 'node/75',
- 'entity' =>
- array (
- 'entity_type' => 'node',
- 'entity_id' => '75',
- 'product_reference_field_name' => 'field_products',
- ),
- ),
- ),
- 'line_item_id' => NULL,
- 'line_item_label' => '1914',
- 'created' => '',
- 'changed' => '',
- 'is_new' => true,
- 'commerce_product' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'product_id' => '763',
- ),
- ),
- ),
- 'commerce_display_path' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'value' => '',
- ),
- ),
- ),
- 'commerce_unit_price' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'amount' => '45000',
- 'currency_code' => 'RUB',
- 'data' =>
- array (
- 'components' =>
- array (
- ),
- ),
- ),
- ),
- ),
- )),
- '#bundle' => 'product',
- '#field_name' => 'commerce_unit_price',
- '#language' => 'und',
- '#field_parents' =>
- array (
- 0 => 'line_item_fields',
- ),
- '#columns' =>
- array (
- 0 => 'amount',
- 1 => 'currency_code',
- 2 => 'data',
- ),
- '#title' => 'Unit price',
- '#description' => '',
- '#required' => true,
- '#delta' => 0,
- '#weight' => 0,
- '#attached' =>
- array (
- 'css' =>
- array (
- 0 => 'sites/all/modules/commerce/modules/price/theme/commerce_price.theme.css',
- ),
- ),
- 'amount' =>
- array (
- '#type' => 'textfield',
- '#title' => 'Unit price',
- '#default_value' => '450.00',
- '#required' => true,
- '#size' => 10,
- '#field_suffix' => 'RUB',
- ),
- 'currency_code' =>
- array (
- '#type' => 'value',
- '#default_value' => 'RUB',
- ),
- 'data' =>
- array (
- '#type' => 'value',
- '#default_value' =>
- array (
- 'components' =>
- array (
- 0 =>
- array (
- 'name' => 'base_price',
- 'price' =>
- array (
- 'amount' => '45000',
- 'currency_code' => 'RUB',
- 'data' =>
- array (
- 'components' =>
- array (
- ),
- ),
- ),
- 'included' => true,
- ),
- ),
- ),
- ),
- '#element_validate' =>
- array (
- 0 => 'commerce_price_field_widget_validate',
- ),
- ),
- '#theme' => 'field_multiple_value_form',
- '#field_name' => 'commerce_unit_price',
- '#cardinality' => '1',
- '#title' => 'Unit price',
- '#required' => true,
- '#description' => '',
- '#prefix' => '<div id="line-item-fields-commerce-unit-price-add-more-wrapper">',
- '#suffix' => '</div>',
- '#max_delta' => 0,
- '#after_build' =>
- array (
- 0 => 'field_form_element_after_build',
- ),
- '#language' => 'und',
- '#field_parents' =>
- array (
- 0 => 'line_item_fields',
- ),
- ),
- '#access' => false,
- '#commerce_cart_settings' =>
- array (
- 'field_access' => false,
- ),
- ),
- 'commerce_total' =>
- array (
- '#type' => 'container',
- '#attributes' =>
- array (
- 'class' =>
- array (
- 0 => 'field-type-commerce-price',
- 1 => 'field-name-commerce-total',
- 2 => 'field-widget-commerce-price-full',
- ),
- ),
- '#weight' => 1,
- '#tree' => true,
- '#language' => 'und',
- 'und' =>
- array (
- 0 =>
- array (
- '#entity_type' => 'commerce_line_item',
- '#entity' =>
- stdClass::__set_state(array(
- 'type' => 'product',
- 'order_id' => 0,
- 'quantity' => '1',
- 'data' =>
- array (
- 'context' =>
- array (
- 'product_ids' => 'entity',
- 'add_to_cart_combine' => true,
- 'show_single_product_attributes' => false,
- 'display_path' => 'node/75',
- 'entity' =>
- array (
- 'entity_type' => 'node',
- 'entity_id' => '75',
- 'product_reference_field_name' => 'field_products',
- ),
- ),
- ),
- 'line_item_id' => NULL,
- 'line_item_label' => '1914',
- 'created' => '',
- 'changed' => '',
- 'is_new' => true,
- 'commerce_product' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'product_id' => '763',
- ),
- ),
- ),
- 'commerce_display_path' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'value' => '',
- ),
- ),
- ),
- 'commerce_unit_price' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'amount' => '45000',
- 'currency_code' => 'RUB',
- 'data' =>
- array (
- 'components' =>
- array (
- ),
- ),
- ),
- ),
- ),
- )),
- '#bundle' => 'product',
- '#field_name' => 'commerce_total',
- '#language' => 'und',
- '#field_parents' =>
- array (
- 0 => 'line_item_fields',
- ),
- '#columns' =>
- array (
- 0 => 'amount',
- 1 => 'currency_code',
- 2 => 'data',
- ),
- '#title' => 'Итого',
- '#description' => '',
- '#required' => true,
- '#delta' => 0,
- '#weight' => 0,
- '#attached' =>
- array (
- 'css' =>
- array (
- 0 => 'sites/all/modules/commerce/modules/price/theme/commerce_price.theme.css',
- ),
- ),
- 'amount' =>
- array (
- '#type' => 'textfield',
- '#title' => 'Итого',
- '#default_value' => NULL,
- '#required' => true,
- '#size' => 10,
- '#field_suffix' => 'RUB',
- ),
- 'currency_code' =>
- array (
- '#type' => 'value',
- '#default_value' => 'RUB',
- ),
- 'data' =>
- array (
- '#type' => 'value',
- '#default_value' =>
- array (
- 'components' =>
- array (
- ),
- ),
- ),
- '#element_validate' =>
- array (
- 0 => 'commerce_price_field_widget_validate',
- ),
- ),
- '#theme' => 'field_multiple_value_form',
- '#field_name' => 'commerce_total',
- '#cardinality' => '1',
- '#title' => 'Итого',
- '#required' => true,
- '#description' => '',
- '#prefix' => '<div id="line-item-fields-commerce-total-add-more-wrapper">',
- '#suffix' => '</div>',
- '#max_delta' => 0,
- '#after_build' =>
- array (
- 0 => 'field_form_element_after_build',
- ),
- '#language' => 'und',
- '#field_parents' =>
- array (
- 0 => 'line_item_fields',
- ),
- ),
- '#access' => false,
- '#commerce_cart_settings' =>
- array (
- 'field_access' => false,
- ),
- ),
- 'commerce_product' =>
- array (
- '#type' => 'container',
- '#attributes' =>
- array (
- 'class' =>
- array (
- 0 => 'field-type-commerce-product-reference',
- 1 => 'field-name-commerce-product',
- 2 => 'field-widget-commerce-product-reference-autocomplete',
- ),
- ),
- '#weight' => 0,
- '#tree' => true,
- '#language' => 'und',
- 'und' =>
- array (
- '#entity' =>
- stdClass::__set_state(array(
- 'type' => 'product',
- 'order_id' => 0,
- 'quantity' => '1',
- 'data' =>
- array (
- 'context' =>
- array (
- 'product_ids' => 'entity',
- 'add_to_cart_combine' => true,
- 'show_single_product_attributes' => false,
- 'display_path' => 'node/75',
- 'entity' =>
- array (
- 'entity_type' => 'node',
- 'entity_id' => '75',
- 'product_reference_field_name' => 'field_products',
- ),
- ),
- ),
- 'line_item_id' => NULL,
- 'line_item_label' => '1914',
- 'created' => '',
- 'changed' => '',
- 'is_new' => true,
- 'commerce_product' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'product_id' => '763',
- ),
- ),
- ),
- 'commerce_display_path' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'value' => '',
- ),
- ),
- ),
- 'commerce_unit_price' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'amount' => '45000',
- 'currency_code' => 'RUB',
- 'data' =>
- array (
- 'components' =>
- array (
- ),
- ),
- ),
- ),
- ),
- )),
- '#entity_type' => 'commerce_line_item',
- '#bundle' => 'product',
- '#field_name' => 'commerce_product',
- '#language' => 'und',
- '#field_parents' =>
- array (
- 0 => 'line_item_fields',
- ),
- '#columns' =>
- array (
- 0 => 'product_id',
- ),
- '#title' => 'Товар',
- '#description' => '',
- '#required' => true,
- '#delta' => 0,
- '#type' => 'textfield',
- '#default_value' => '1914',
- '#autocomplete_path' => 'commerce_product/autocomplete/commerce_line_item/commerce_product/product',
- '#size' => 60,
- '#maxlength' => 2048,
- '#element_validate' =>
- array (
- 0 => 'commerce_product_reference_autocomplete_validate',
- ),
- '#after_build' =>
- array (
- 0 => 'field_form_element_after_build',
- ),
- ),
- '#access' => false,
- '#commerce_cart_settings' =>
- array (
- 'field_access' => false,
- ),
- ),
- 'commerce_display_path' =>
- array (
- '#type' => 'container',
- '#attributes' =>
- array (
- 'class' =>
- array (
- 0 => 'field-type-text',
- 1 => 'field-name-commerce-display-path',
- 2 => 'field-widget-text-textfield',
- ),
- ),
- '#weight' => 0,
- '#tree' => true,
- '#language' => 'und',
- 'und' =>
- array (
- 0 =>
- array (
- '#entity_type' => 'commerce_line_item',
- '#entity' =>
- stdClass::__set_state(array(
- 'type' => 'product',
- 'order_id' => 0,
- 'quantity' => '1',
- 'data' =>
- array (
- 'context' =>
- array (
- 'product_ids' => 'entity',
- 'add_to_cart_combine' => true,
- 'show_single_product_attributes' => false,
- 'display_path' => 'node/75',
- 'entity' =>
- array (
- 'entity_type' => 'node',
- 'entity_id' => '75',
- 'product_reference_field_name' => 'field_products',
- ),
- ),
- ),
- 'line_item_id' => NULL,
- 'line_item_label' => '1914',
- 'created' => '',
- 'changed' => '',
- 'is_new' => true,
- 'commerce_product' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'product_id' => '763',
- ),
- ),
- ),
- 'commerce_display_path' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'value' => '',
- ),
- ),
- ),
- 'commerce_unit_price' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'amount' => '45000',
- 'currency_code' => 'RUB',
- 'data' =>
- array (
- 'components' =>
- array (
- ),
- ),
- ),
- ),
- ),
- )),
- '#bundle' => 'product',
- '#field_name' => 'commerce_display_path',
- '#language' => 'und',
- '#field_parents' =>
- array (
- 0 => 'line_item_fields',
- ),
- '#columns' =>
- array (
- 0 => 'value',
- 1 => 'format',
- ),
- '#title' => 'Display path',
- '#description' => '',
- '#required' => true,
- '#delta' => 0,
- '#weight' => 0,
- 'value' =>
- array (
- '#entity_type' => 'commerce_line_item',
- '#entity' =>
- stdClass::__set_state(array(
- 'type' => 'product',
- 'order_id' => 0,
- 'quantity' => '1',
- 'data' =>
- array (
- 'context' =>
- array (
- 'product_ids' => 'entity',
- 'add_to_cart_combine' => true,
- 'show_single_product_attributes' => false,
- 'display_path' => 'node/75',
- 'entity' =>
- array (
- 'entity_type' => 'node',
- 'entity_id' => '75',
- 'product_reference_field_name' => 'field_products',
- ),
- ),
- ),
- 'line_item_id' => NULL,
- 'line_item_label' => '1914',
- 'created' => '',
- 'changed' => '',
- 'is_new' => true,
- 'commerce_product' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'product_id' => '763',
- ),
- ),
- ),
- 'commerce_display_path' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'value' => '',
- ),
- ),
- ),
- 'commerce_unit_price' =>
- array (
- 'und' =>
- array (
- 0 =>
- array (
- 'amount' => '45000',
- 'currency_code' => 'RUB',
- 'data' =>
- array (
- 'components' =>
- array (
- ),
- ),
- ),
- ),
- ),
- )),
- '#bundle' => 'product',
- '#field_name' => 'commerce_display_path',
- '#language' => 'und',
- '#field_parents' =>
- array (
- 0 => 'line_item_fields',
- ),
- '#columns' =>
- array (
- 0 => 'value',
- 1 => 'format',
- ),
- '#title' => 'Display path',
- '#description' => '',
- '#required' => true,
- '#delta' => 0,
- '#weight' => 0,
- '#type' => 'textfield',
- '#default_value' => '',
- '#size' => 60,
- '#maxlength' => 255,
- '#attributes' =>
- array (
- 'class' =>
- array (
- 0 => 'text-full',
- ),
- ),
- ),
- ),
- '#theme' => 'field_multiple_value_form',
- '#field_name' => 'commerce_display_path',
- '#cardinality' => '1',
- '#title' => 'Display path',
- '#required' => true,
- '#description' => '',
- '#prefix' => '<div id="line-item-fields-commerce-display-path-add-more-wrapper">',
- '#suffix' => '</div>',
- '#max_delta' => 0,
- '#after_build' =>
- array (
- 0 => 'field_form_element_after_build',
- ),
- '#language' => 'und',
- '#field_parents' =>
- array (
- 0 => 'line_item_fields',
- ),
- ),
- '#access' => false,
- '#commerce_cart_settings' =>
- array (
- 'field_access' => false,
- ),
- ),
- '#pre_render' =>
- array (
- 0 => '_field_extra_fields_pre_render',
- 1 => 'field_group_form_pre_render',
- ),
- '#entity_type' => 'commerce_line_item',
- '#bundle' => 'product',
- '#attached' =>
- array (
- 'css' =>
- array (
- 0 => 'sites/all/modules/field_group/field_group.field_ui.css',
- ),
- ),
- '#groups' =>
- array (
- ),
- '#fieldgroups' =>
- array (
- ),
- '#group_children' =>
- array (
- ),
- '#suffix' => 'Артикул: <b>1914</b>',
- ),
- 'submit' =>
- array (
- '#type' => 'submit',
- '#value' => 'В корзину',
- '#weight' => 50,
- '#attributes' =>
- array (
- 'class' =>
- array (
- 0 => 'use-ajax-submit',
- ),
- ),
- ),
- '#validate' =>
- array (
- 0 => 'commerce_cart_add_to_cart_form_validate',
- ),
- '#submit' =>
- array (
- 0 => 'commerce_cart_add_to_cart_form_submit',
- 1 => 'caramba_add_to_cart_form_submit',
- 2 => 'commerce_fast_ajax_atc_add_to_cart_form_submit',
- ),
- '#form_id' => 'commerce_cart_add_to_cart_form_763_764',
- '#type' => 'form',
- '#build_id' => 'form-ncW48DzPDqtjj0u2ALQrJMHoTixv-tRysr2yfzuKuo0',
- 'form_build_id' =>
- array (
- '#type' => 'hidden',
- '#value' => 'form-ncW48DzPDqtjj0u2ALQrJMHoTixv-tRysr2yfzuKuo0',
- '#id' => 'form-ncW48DzPDqtjj0u2ALQrJMHoTixv-tRysr2yfzuKuo0',
- '#name' => 'form_build_id',
- '#parents' =>
- array (
- 0 => 'form_build_id',
- ),
- ),
- 'form_id' =>
- array (
- '#type' => 'hidden',
- '#value' => 'commerce_cart_add_to_cart_form_763_764',
- '#id' => 'edit-commerce-cart-add-to-cart-form-763-764',
- '#parents' =>
- array (
- 0 => 'form_id',
- ),
- ),
- '#id' => 'commerce-cart-add-to-cart-form-763-764',
- '#method' => 'post',
- '#action' => '/product/predlozhenie?sku=1914',
- '#theme_wrappers' =>
- array (
- 0 => 'form',
- ),
- '#tree' => false,
- '#parents' =>
- array (
- ),
- '#theme' =>
- array (
- 0 => 'commerce_cart_add_to_cart_form_763_764',
- 1 => 'commerce_cart_add_to_cart_form',
- ),
- '#attached' =>
- array (
- 'library' =>
- array (
- 0 =>
- array (
- 0 => 'system',
- 1 => 'jquery.form',
- ),
- 1 =>
- array (
- 0 => 'system',
- 1 => 'drupal.ajax',
- ),
- 2 =>
- array (
- 0 => 'system',
- 1 => 'ui.dialog',
- ),
- ),
- ),
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement