Jump to content

prestashop 1.6 error 500


bixroger

Recommended Posts

salve, ho attivato il multistore con carrello e clienti condivisi, provando ad acquistare da uno store e dall'altro, mi da errore 500, in debug è questo:

 

[PrestaShopException]

Property Product->price is empty
at line 846 in file classes/ObjectModel.php

840.
841.             $message = $this->validateField($field, $this->$field);
842.             if ($message !== true)
843.             {
844.                 if ($die)
845.                     throw new PrestaShopException($message);
846.                 return $error_return ? $message : false;
847.             }
848.         }
849.
850.         return true;
  • ObjectModelCore->validateFields - [line 260 - classes/ObjectModel.php]
    254.      *
    255.      * @return array All object fields
    256.      */
    257.     public function getFields()
    258.     {
    259.         $this->validateFields();
    260.         $fields = $this->formatFields(self::FORMAT_COMMON);
    261.
    262.         // For retro compatibility
    263.         if (Shop::isTableAssociated($this->def['table']))
    264.             $fields = array_merge($fields, $this->getFieldsShop());
  • ObjectModelCore->getFields - [line 605 - classes/ObjectModel.php]
    599.             $id_shop_list = $this->id_shop_list;
    600.
    601.         if (Shop::checkIdShopDefault($this->def['table']) && !$this->id_shop_default)
    602.             $this->id_shop_default = min($id_shop_list);
    603.         // Database update
    604.         if (!$result = ObjectModel::$db->update($this->def['table'], $this->getFields(), '`'.pSQL($this->def['primary']).'` = '.(int)$this->id, 0, $null_values))
    605.             return false;
    606.
    607.         // Database insertion for multishop fields related to the object
    608.         if (Shop::isTableAssociated($this->def['table']))
    609.         {
  • ObjectModelCore->update - [line 529 - classes/Product.php] - [1 Arguments]
    Argument [0]
     
  • ProductCore->update - [line 251 - modules/customtextdesign/customtextdesign.php]
    245.                 {
    246.                     $product = new Product($id_product);
    247.                     if (! $product->customizable)
    248.                     {
    249.                         $product->customizable = 1;
    250.                         $product->update();
    251.                     }
    252.                     return $this->id_customization_field[$id_product] = $row['id_customization_field'];
    253.                 }
    254.             }
    255.
  • customtextdesign->addCustomField - [line 212 - override/classes/Cart.php] - [1 Arguments]
    Argument [0]
    100
  • Cart->getOrderTotal - [line 2571 - classes/Cart.php] - [3 Arguments]
    Argument [0]
    1
    Argument [1]
    8
    Argument [2]
     
  • CartCore->getPackageShippingCost - [line 590 - classes/Carrier.php] - [5 Arguments]
    Argument [0]
    10
    Argument [1]
    1
    Argument [2]

    Argument [3]

    Argument [4]
    1
  • CarrierCore::getCarriersForOrder - [line 1228 - classes/Carrier.php] - [3 Arguments]
    Argument [0]
    1
    Argument [1]
    Array
    (
    [0] => 1
    )

    Argument [2]
    Cart Object
    (
    [id] => 46
    [id_shop_group] => 4
    [id_shop] => 7
    [id_address_delivery] => 0
    [id_address_invoice] => 0
    [id_currency] => 2
    [id_customer] => 0
    [id_guest] => 933
    [id_lang] => 2
    [recyclable] => 0
    [gift] => 0
    [gift_message] =>
    [mobile_theme] => 0
    [date_add] => 2014-12-03 16:17:49
    [secure_key] =>
    [id_carrier] => 0
    [date_upd] => 2014-12-03 19:40:04
    [checkedTos] =>
    [pictures] =>
    [textFields] =>
    [delivery_option] =>
    [allow_seperated_package] => 0
    [_products:protected] => Array
    (
    [0] => Array
    (
    [id_product_attribute] => 0
    [id_product] => 100
    [cart_quantity] => 3
    [id_shop] => 8
    [name] => Power Bank U-Stone
    [is_virtual] => 0
    [description_short] => potente
    veloce
    il migliore senza paragoni
    ci mettiamo tanto ma viene una bomba ;-)

    [available_now] =>
    [available_later] =>
    [id_category_default] => 2
    [id_supplier] => 0
    [id_manufacturer] => 0
    [on_sale] => 0
    [ecotax] => 0.000000
    [additional_shipping_cost] => 0.00
    [available_for_order] => 1
    [price] => 25.99
    [active] => 1
    [unity] =>
    [unit_price_ratio] => 0.000000
    [quantity_available] => 500
    [width] => 0.000000
    [height] => 0.000000
    [depth] => 0.000000
    [out_of_stock] => 2
    [weight] => 0.000000
    [date_add] => 2014-12-03 15:08:35
    [date_upd] => 2014-12-03 15:11:18
    [quantity] => 3
    [link_rewrite] => power-bank-u-stone
    [category] => home
    [unique_id] => 000000010000000000000
    [id_address_delivery] => 0
    [wholesale_price] => 0.000000
    [advanced_stock_management] => 0
    [supplier_reference] =>
    [reduction_type] => 0
    [id_customization] =>
    [customization_quantity] =>
    [price_attribute] =>
    [ecotax_attr] =>
    [reference] =>
    [weight_attribute] =>
    [ean13] =>
    [upc] =>
    [pai_id_image] =>
    [pai_legend] =>
    [minimal_quantity] => 1
    [stock_quantity] => 500
    [price_wt] => 25.99
    [total_wt] => 77.97
    [total] => 77.97
    [id_image] => 100-119
    [legend] => Power Bank U-Stone
    [reduction_applies] =>
    [quantity_discount_applies] =>
    [allow_oosp] => 0
    [features] => Array
    (
    )

    [rate] => 0
    [tax_name] =>
    )

    [1] => Array
    (
    [id_product_attribute] => 0
    [id_product] => 5
    [cart_quantity] => 60
    [id_shop] => 7
    [name] => Cover iPhone 5 3D Lucida Personalizzabile
    [is_virtual] => 0
    [description_short] =>
    [available_now] =>
    [available_later] =>
    [id_category_default] => 2
    [id_supplier] => 0
    [id_manufacturer] => 0
    [on_sale] => 0
    [ecotax] => 0.000000
    [additional_shipping_cost] => 0.00
    [available_for_order] => 1
    [price] => 7.99
    [active] => 1
    [unity] =>
    [unit_price_ratio] => 0.000000
    [quantity_available] => 494
    [width] => 0.000000
    [height] => 0.000000
    [depth] => 0.000000
    [out_of_stock] => 0
    [weight] => 0.000000
    [date_add] => 2014-11-20 15:37:51
    [date_upd] => 2014-12-03 19:37:49
    [quantity] => 60
    [link_rewrite] => cover-iphone-5-3d-personalizzabile
    [category] => home
    [unique_id] => 000000000500000000000
    [id_address_delivery] => 0
    [wholesale_price] => 0.000000
    [advanced_stock_management] => 0
    [supplier_reference] =>
    [reduction_type] => 0
    [id_customization] => 75
    [customization_quantity] => 1
    [price_attribute] =>
    [ecotax_attr] =>
    [reference] =>
    [weight_attribute] =>
    [ean13] =>
    [upc] =>
    [pai_id_image] =>
    [pai_legend] =>
    [minimal_quantity] => 1
    [stock_quantity] => 494
    [price_wt] => 7.99
    [total_wt] => 479.4
    [total] => 479.4
    [id_image] => 5-32
    [legend] => Cover iPhone 5 3D Personalizzabile
    [reduction_applies] =>
    [quantity_discount_applies] =>
    [allow_oosp] => 0
    [features] => Array
    (
    )

    [rate] => 0
    [tax_name] =>
    )

    )

    [_taxCalculationMethod:protected] => 1
    [webserviceParameters:protected] => Array
    (
    [fields] => Array
    (
    [id_address_delivery] => Array
    (
    [xlink_resource] => addresses
    )

    [id_address_invoice] => Array
    (
    [xlink_resource] => addresses
    )

    [id_currency] => Array
    (
    [xlink_resource] => currencies
    )

    [id_customer] => Array
    (
    [xlink_resource] => customers
    )

    [id_guest] => Array
    (
    [xlink_resource] => guests
    )

    [id_lang] => Array
    (
    [xlink_resource] => languages
    )

    )

    [associations] => Array
    (
    [cart_rows] => Array
    (
    [resource] => cart_rows
    [virtual_entity] => 1
    [fields] => Array
    (
    [id_product] => Array
    (
    [required] => 1
    [xlink_resource] => products
    )

    [id_product_attribute] => Array
    (
    [required] => 1
    [xlink_resource] => combinations
    )

    [id_address_delivery] => Array
    (
    [required] => 1
    [xlink_resource] => addresses
    )

    [quantity] => Array
    (
    [required] => 1
    )

    )

    )

    )

    )

    [id_shop_list] =>
    [get_shop_from_context:protected] => 1
    [table:protected] => cart
    [identifier:protected] => id_cart
    [fieldsRequired:protected] => Array
    (
    [0] => id_currency
    [1] => id_lang
    )

    [fieldsSize:protected] => Array
    (
    [secure_key] => 32
    )

    [fieldsValidate:protected] => Array
    (
    [id_shop_group] => isUnsignedId
    [id_shop] => isUnsignedId
    [id_address_delivery] => isUnsignedId
    [id_address_invoice] => isUnsignedId
    [id_carrier] => isUnsignedId
    [id_currency] => isUnsignedId
    [id_customer] => isUnsignedId
    [id_guest] => isUnsignedId
    [id_lang] => isUnsignedId
    [recyclable] => isBool
    [gift] => isBool
    [gift_message] => isMessage
    [mobile_theme] => isBool
    [allow_seperated_package] => isBool
    [date_add] => isDateFormat
    [date_upd] => isDateFormat
    )

    [fieldsRequiredLang:protected] => Array
    (
    )

    [fieldsSizeLang:protected] => Array
    (
    )

    [fieldsValidateLang:protected] => Array
    (
    )

    [tables:protected] => Array
    (
    )

    [image_dir:protected] =>
    [image_format:protected] => jpg
    [def:protected] => Array
    (
    [table] => cart
    [primary] => id_cart
    [fields] => Array
    (
    [id_shop_group] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_shop] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_address_delivery] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_address_invoice] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_carrier] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_currency] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    [required] => 1
    )

    [id_customer] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_guest] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_lang] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    [required] => 1
    )

    [recyclable] => Array
    (
    [type] => 2
    [validate] => isBool
    )

    [gift] => Array
    (
    [type] => 2
    [validate] => isBool
    )

    [gift_message] => Array
    (
    [type] => 3
    [validate] => isMessage
    )

    [mobile_theme] => Array
    (
    [type] => 2
    [validate] => isBool
    )

    [delivery_option] => Array
    (
    [type] => 3
    )

    [secure_key] => Array
    (
    [type] => 3
    => 32
    )

    [allow_seperated_package] => Array
    (
    [type] => 2
    [validate] => isBool
    )

    [date_add] => Array
    (
    [type] => 5
    [validate] => isDateFormat
    )

    [date_upd] => Array
    (
    [type] => 5
    [validate] => isDateFormat
    )

    )

    [classname] => Cart
    )

    [update_fields:protected] =>
    [force_id] =>
    )
     
  • CarrierCore::getAvailableCarrierList - [line 1728 - classes/Cart.php] - [5 Arguments]
    Argument [0]
    Product Object
    (
    [tax_name] =>
    [tax_rate] =>
    [id_manufacturer] => 0
    [id_supplier] => 0
    [id_category_default] =>
    [id_shop_default] => 8
    [manufacturer_name] =>
    [supplier_name] =>
    [name] => Array
    (
    [2] => Power Bank U-Stone
    )

    [description] => Array
    (
    [2] =>
    )

    [description_short] => Array
    (
    [2] => potente
    veloce
    il migliore senza paragoni
    ci mettiamo tanto ma viene una bomba ;-)

    )

    [quantity] => 0
    [minimal_quantity] =>
    [available_now] => Array
    (
    [2] =>
    )

    [available_later] => Array
    (
    [2] =>
    )

    [price] =>
    [additional_shipping_cost] =>
    [wholesale_price] =>
    [on_sale] =>
    [online_only] =>
    [unity] =>
    [unit_price] =>
    [unit_price_ratio] =>
    [ecotax] =>
    [reference] =>
    [supplier_reference] =>
    [location] =>
    [width] => 0.000000
    [height] => 0.000000
    [depth] => 0.000000
    [weight] => 0.000000
    [ean13] =>
    [upc] =>
    [link_rewrite] => Array
    (
    [2] => power-bank-u-stone
    )

    [meta_description] => Array
    (
    [2] =>
    )

    [meta_keywords] => Array
    (
    [2] =>
    )

    [meta_title] => Array
    (
    [2] =>
    )

    [quantity_discount] => 0
    [customizable] =>
    [new] =>
    [uploadable_files] =>
    [text_fields] =>
    [active] =>
    [redirect_type] =>
    [id_product_redirected] =>
    [available_for_order] =>
    [available_date] =>
    [condition] =>
    [show_price] =>
    [indexed] =>
    [visibility] =>
    [date_add] =>
    [date_upd] =>
    [tags] =>
    [id_tax_rules_group] =>
    [id_color_default] => 0
    [advanced_stock_management] =>
    [out_of_stock] => 2
    [depends_on_stock] =>
    [isFullyLoaded] =>
    [cache_is_pack] => 0
    [cache_has_attachments] => 0
    [is_virtual] => 0
    [cache_default_attribute] =>
    [category] =>
    [webserviceParameters:protected] => Array
    (
    [objectMethods] => Array
    (
    [add] => addWs
    [update] => updateWs
    )

    [objectNodeNames] => products
    [fields] => Array
    (
    [id_manufacturer] => Array
    (
    [xlink_resource] => manufacturers
    )

    [id_supplier] => Array
    (
    [xlink_resource] => suppliers
    )

    [id_category_default] => Array
    (
    [xlink_resource] => categories
    )

    [new] => Array
    (
    )

    [cache_default_attribute] => Array
    (
    )

    [id_default_image] => Array
    (
    [getter] => getCoverWs
    [setter] => setCoverWs
    [xlink_resource] => Array
    (
    [resourceName] => images
    [subResourceName] => products
    )

    )

    [id_default_combination] => Array
    (
    [getter] => getWsDefaultCombination
    [setter] => setWsDefaultCombination
    [xlink_resource] => Array
    (
    [resourceName] => combinations
    )

    )

    [id_tax_rules_group] => Array
    (
    [xlink_resource] => Array
    (
    [resourceName] => tax_rule_groups
    )

    )

    [position_in_category] => Array
    (
    [getter] => getWsPositionInCategory
    [setter] => setWsPositionInCategory
    )

    [manufacturer_name] => Array
    (
    [getter] => getWsManufacturerName
    [setter] =>
    )

    [quantity] => Array
    (
    [getter] =>
    [setter] =>
    )

    [type] => Array
    (
    [getter] => getWsType
    [setter] => setWsType
    )

    )

    [associations] => Array
    (
    [categories] => Array
    (
    [resource] => categories
    [fields] => Array
    (
    [id] => Array
    (
    [required] => 1
    )

    )

    )

    [images] => Array
    (
    [resource] => images
    [fields] => Array
    (
    [id] => Array
    (
    )

    )

    )

    [combinations] => Array
    (
    [resource] => combinations
    [fields] => Array
    (
    [id] => Array
    (
    [required] => 1
    )

    )

    )

    [product_option_values] => Array
    (
    [resource] => product_option_values
    [fields] => Array
    (
    [id] => Array
    (
    [required] => 1
    )

    )

    )

    [product_features] => Array
    (
    [resource] => product_features
    [fields] => Array
    (
    [id] => Array
    (
    [required] => 1
    )

    [custom] => Array
    (
    [required] =>
    )

    [id_feature_value] => Array
    (
    [required] => 1
    [xlink_resource] => product_feature_values
    )

    )

    )

    [tags] => Array
    (
    [resource] => tags
    [fields] => Array
    (
    [id] => Array
    (
    [required] => 1
    )

    )

    )

    [stock_availables] => Array
    (
    [resource] => stock_availables
    [fields] => Array
    (
    [id] => Array
    (
    [required] => 1
    )

    [id_product_attribute] => Array
    (
    [required] => 1
    )

    )

    [setter] =>
    )

    [accessories] => Array
    (
    [resource] => products
    [fields] => Array
    (
    [id] => Array
    (
    [required] => 1
    [xlink_resource] => product
    )

    )

    )

    [product_bundle] => Array
    (
    [resource] => products
    [fields] => Array
    (
    [id] => Array
    (
    [required] => 1
    )

    [quantity] => Array
    (
    )

    )

    )

    )

    )

    [id] => 100
    [id_lang:protected] =>
    [id_shop:protected] => 7
    [id_shop_list] =>
    [get_shop_from_context:protected] => 1
    [table:protected] => product
    [identifier:protected] => id_product
    [fieldsRequired:protected] => Array
    (
    [0] => price
    )

    [fieldsSize:protected] => Array
    (
    [reference] => 32
    [supplier_reference] => 32
    [location] => 64
    [ean13] => 13
    [upc] => 12
    )

    [fieldsValidate:protected] => Array
    (
    [id_shop_default] => isUnsignedId
    [id_manufacturer] => isUnsignedId
    [id_supplier] => isUnsignedId
    [reference] => isReference
    [supplier_reference] => isReference
    [location] => isReference
    [width] => isUnsignedFloat
    [height] => isUnsignedFloat
    [depth] => isUnsignedFloat
    [weight] => isUnsignedFloat
    [quantity_discount] => isBool
    [ean13] => isEan13
    [upc] => isUpc
    [cache_is_pack] => isBool
    [cache_has_attachments] => isBool
    [is_virtual] => isBool
    [id_category_default] => isUnsignedId
    [id_tax_rules_group] => isUnsignedId
    [on_sale] => isBool
    [online_only] => isBool
    [ecotax] => isPrice
    [minimal_quantity] => isUnsignedInt
    [price] => isPrice
    [wholesale_price] => isPrice
    [unity] => isString
    [additional_shipping_cost] => isPrice
    [customizable] => isUnsignedInt
    [text_fields] => isUnsignedInt
    [uploadable_files] => isUnsignedInt
    [active] => isBool
    [redirect_type] => isString
    [id_product_redirected] => isUnsignedId
    [available_for_order] => isBool
    [available_date] => isDateFormat
    [condition] => isGenericName
    [show_price] => isBool
    [indexed] => isBool
    [visibility] => isProductVisibility
    [advanced_stock_management] => isBool
    [date_add] => isDateFormat
    [date_upd] => isDateFormat
    )

    [fieldsRequiredLang:protected] => Array
    (
    [0] => link_rewrite
    [1] => name
    )

    [fieldsSizeLang:protected] => Array
    (
    [meta_description] => 255
    [meta_keywords] => 255
    [meta_title] => 128
    [link_rewrite] => 128
    [name] => 128
    [available_now] => 255
    [available_later] => 255
    )

    [fieldsValidateLang:protected] => Array
    (
    [meta_description] => isGenericName
    [meta_keywords] => isGenericName
    [meta_title] => isGenericName
    [link_rewrite] => isLinkRewrite
    [name] => isCatalogName
    [description] => isCleanHtml
    [description_short] => isCleanHtml
    [available_now] => isGenericName
    [available_later] => IsGenericName
    )

    [tables:protected] => Array
    (
    )

    [image_dir:protected] =>
    [image_format:protected] => jpg
    [def:protected] => Array
    (
    [table] => product
    [primary] => id_product
    [multilang] => 1
    [multilang_shop] => 1
    [fields] => Array
    (
    [id_shop_default] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_manufacturer] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_supplier] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [reference] => Array
    (
    [type] => 3
    [validate] => isReference
    => 32
    )

    [supplier_reference] => Array
    (
    [type] => 3
    [validate] => isReference
    => 32
    )

    [location] => Array
    (
    [type] => 3
    [validate] => isReference
    => 64
    )

    [width] => Array
    (
    [type] => 4
    [validate] => isUnsignedFloat
    )

    [height] => Array
    (
    [type] => 4
    [validate] => isUnsignedFloat
    )

    [depth] => Array
    (
    [type] => 4
    [validate] => isUnsignedFloat
    )

    [weight] => Array
    (
    [type] => 4
    [validate] => isUnsignedFloat
    )

    [quantity_discount] => Array
    (
    [type] => 2
    [validate] => isBool
    )

    [ean13] => Array
    (
    [type] => 3
    [validate] => isEan13
    => 13
    )

    [upc] => Array
    (
    [type] => 3
    [validate] => isUpc
    => 12
    )

    [cache_is_pack] => Array
    (
    [type] => 2
    [validate] => isBool
    )

    [cache_has_attachments] => Array
    (
    [type] => 2
    [validate] => isBool
    )

    [is_virtual] => Array
    (
    [type] => 2
    [validate] => isBool
    )

    [id_category_default] => Array
    (
    [type] => 1
    [shop] => 1
    [validate] => isUnsignedId
    )

    [id_tax_rules_group] => Array
    (
    [type] => 1
    [shop] => 1
    [validate] => isUnsignedId
    )

    [on_sale] => Array
    (
    [type] => 2
    [shop] => 1
    [validate] => isBool
    )

    [online_only] => Array
    (
    [type] => 2
    [shop] => 1
    [validate] => isBool
    )

    [ecotax] => Array
    (
    [type] => 4
    [shop] => 1
    [validate] => isPrice
    )

    [minimal_quantity] => Array
    (
    [type] => 1
    [shop] => 1
    [validate] => isUnsignedInt
    )

    [price] => Array
    (
    [type] => 4
    [shop] => 1
    [validate] => isPrice
    [required] => 1
    )

    [wholesale_price] => Array
    (
    [type] => 4
    [shop] => 1
    [validate] => isPrice
    )

    [unity] => Array
    (
    [type] => 3
    [shop] => 1
    [validate] => isString
    )

    [unit_price_ratio] => Array
    (
    [type] => 4
    [shop] => 1
    )

    [additional_shipping_cost] => Array
    (
    [type] => 4
    [shop] => 1
    [validate] => isPrice
    )

    [customizable] => Array
    (
    [type] => 1
    [shop] => 1
    [validate] => isUnsignedInt
    )

    [text_fields] => Array
    (
    [type] => 1
    [shop] => 1
    [validate] => isUnsignedInt
    )

    [uploadable_files] => Array
    (
    [type] => 1
    [shop] => 1
    [validate] => isUnsignedInt
    )

    [active] => Array
    (
    [type] => 2
    [shop] => 1
    [validate] => isBool
    )

    [redirect_type] => Array
    (
    [type] => 3
    [shop] => 1
    [validate] => isString
    )

    [id_product_redirected] => Array
    (
    [type] => 1
    [shop] => 1
    [validate] => isUnsignedId
    )

    [available_for_order] => Array
    (
    [type] => 2
    [shop] => 1
    [validate] => isBool
    )

    [available_date] => Array
    (
    [type] => 5
    [shop] => 1
    [validate] => isDateFormat
    )

    [condition] => Array
    (
    [type] => 3
    [shop] => 1
    [validate] => isGenericName
    [values] => Array
    (
    [0] => new
    [1] => used
    [2] => refurbished
    )

    [default] => new
    )

    [show_price] => Array
    (
    [type] => 2
    [shop] => 1
    [validate] => isBool
    )

    [indexed] => Array
    (
    [type] => 2
    [shop] => 1
    [validate] => isBool
    )

    [visibility] => Array
    (
    [type] => 3
    [shop] => 1
    [validate] => isProductVisibility
    [values] => Array
    (
    [0] => both
    [1] => catalog
    [2] => search
    [3] => none
    )

    [default] => both
    )

    [cache_default_attribute] => Array
    (
    [type] => 1
    [shop] => 1
    )

    [advanced_stock_management] => Array
    (
    [type] => 2
    [shop] => 1
    [validate] => isBool
    )

    [date_add] => Array
    (
    [type] => 5
    [shop] => 1
    [validate] => isDateFormat
    )

    [date_upd] => Array
    (
    [type] => 5
    [shop] => 1
    [validate] => isDateFormat
    )

    [meta_description] => Array
    (
    [type] => 3
    [lang] => 1
    [validate] => isGenericName
    => 255
    )

    [meta_keywords] => Array
    (
    [type] => 3
    [lang] => 1
    [validate] => isGenericName
    => 255
    )

    [meta_title] => Array
    (
    [type] => 3
    [lang] => 1
    [validate] => isGenericName
    => 128
    )

    [link_rewrite] => Array
    (
    [type] => 3
    [lang] => 1
    [validate] => isLinkRewrite
    [required] => 1
    => 128
    [ws_modifier] => Array
    (
    [http_method] => 2
    [modifier] => modifierWsLinkRewrite
    )

    )

    [name] => Array
    (
    [type] => 3
    [lang] => 1
    [validate] => isCatalogName
    [required] => 1
    => 128
    )

    [description] => Array
    (
    [type] => 6
    [lang] => 1
    [validate] => isCleanHtml
    )

    [description_short] => Array
    (
    [type] => 6
    [lang] => 1
    [validate] => isCleanHtml
    )

    [available_now] => Array
    (
    [type] => 3
    [lang] => 1
    [validate] => isGenericName
    => 255
    )

    [available_later] => Array
    (
    [type] => 3
    [lang] => 1
    [validate] => IsGenericName
    => 255
    )

    )

    [associations] => Array
    (
    [manufacturer] => Array
    (
    [type] => 1
    )

    [supplier] => Array
    (
    [type] => 1
    )

    [default_category] => Array
    (
    [type] => 1
    [field] => id_category_default
    [object] => Category
    )

    [tax_rules_group] => Array
    (
    [type] => 1
    )

    [categories] => Array
    (
    [type] => 2
    [field] => id_category
    [object] => Category
    [association] => category_product
    )

    [stock_availables] => Array
    (
    [type] => 2
    [field] => id_stock_available
    [object] => StockAvailable
    [association] => stock_availables
    )

    [l] => Array
    (
    [type] => 2
    [field] => id_product
    [foreign_field] => id_product
    )

    )

    [classname] => Product
    )

    [update_fields:protected] =>
    [force_id] =>
    )

    Argument [1]

    Argument [2]
    0
    Argument [3]

    Argument [4]
    Cart Object
    (
    [id] => 46
    [id_shop_group] => 4
    [id_shop] => 7
    [id_address_delivery] => 0
    [id_address_invoice] => 0
    [id_currency] => 2
    [id_customer] => 0
    [id_guest] => 933
    [id_lang] => 2
    [recyclable] => 0
    [gift] => 0
    [gift_message] =>
    [mobile_theme] => 0
    [date_add] => 2014-12-03 16:17:49
    [secure_key] =>
    [id_carrier] => 0
    [date_upd] => 2014-12-03 19:40:04
    [checkedTos] =>
    [pictures] =>
    [textFields] =>
    [delivery_option] =>
    [allow_seperated_package] => 0
    [_products:protected] => Array
    (
    [0] => Array
    (
    [id_product_attribute] => 0
    [id_product] => 100
    [cart_quantity] => 3
    [id_shop] => 8
    [name] => Power Bank U-Stone
    [is_virtual] => 0
    [description_short] => potente
    veloce
    il migliore senza paragoni
    ci mettiamo tanto ma viene una bomba ;-)

    [available_now] =>
    [available_later] =>
    [id_category_default] => 2
    [id_supplier] => 0
    [id_manufacturer] => 0
    [on_sale] => 0
    [ecotax] => 0.000000
    [additional_shipping_cost] => 0.00
    [available_for_order] => 1
    [price] => 25.99
    [active] => 1
    [unity] =>
    [unit_price_ratio] => 0.000000
    [quantity_available] => 500
    [width] => 0.000000
    [height] => 0.000000
    [depth] => 0.000000
    [out_of_stock] => 2
    [weight] => 0.000000
    [date_add] => 2014-12-03 15:08:35
    [date_upd] => 2014-12-03 15:11:18
    [quantity] => 3
    [link_rewrite] => power-bank-u-stone
    [category] => home
    [unique_id] => 000000010000000000000
    [id_address_delivery] => 0
    [wholesale_price] => 0.000000
    [advanced_stock_management] => 0
    [supplier_reference] =>
    [reduction_type] => 0
    [id_customization] =>
    [customization_quantity] =>
    [price_attribute] =>
    [ecotax_attr] =>
    [reference] =>
    [weight_attribute] =>
    [ean13] =>
    [upc] =>
    [pai_id_image] =>
    [pai_legend] =>
    [minimal_quantity] => 1
    [stock_quantity] => 500
    [price_wt] => 25.99
    [total_wt] => 77.97
    [total] => 77.97
    [id_image] => 100-119
    [legend] => Power Bank U-Stone
    [reduction_applies] =>
    [quantity_discount_applies] =>
    [allow_oosp] => 0
    [features] => Array
    (
    )

    [rate] => 0
    [tax_name] =>
    )

    [1] => Array
    (
    [id_product_attribute] => 0
    [id_product] => 5
    [cart_quantity] => 60
    [id_shop] => 7
    [name] => Cover iPhone 5 3D Lucida Personalizzabile
    [is_virtual] => 0
    [description_short] =>
    [available_now] =>
    [available_later] =>
    [id_category_default] => 2
    [id_supplier] => 0
    [id_manufacturer] => 0
    [on_sale] => 0
    [ecotax] => 0.000000
    [additional_shipping_cost] => 0.00
    [available_for_order] => 1
    [price] => 7.99
    [active] => 1
    [unity] =>
    [unit_price_ratio] => 0.000000
    [quantity_available] => 494
    [width] => 0.000000
    [height] => 0.000000
    [depth] => 0.000000
    [out_of_stock] => 0
    [weight] => 0.000000
    [date_add] => 2014-11-20 15:37:51
    [date_upd] => 2014-12-03 19:37:49
    [quantity] => 60
    [link_rewrite] => cover-iphone-5-3d-personalizzabile
    [category] => home
    [unique_id] => 000000000500000000000
    [id_address_delivery] => 0
    [wholesale_price] => 0.000000
    [advanced_stock_management] => 0
    [supplier_reference] =>
    [reduction_type] => 0
    [id_customization] => 75
    [customization_quantity] => 1
    [price_attribute] =>
    [ecotax_attr] =>
    [reference] =>
    [weight_attribute] =>
    [ean13] =>
    [upc] =>
    [pai_id_image] =>
    [pai_legend] =>
    [minimal_quantity] => 1
    [stock_quantity] => 494
    [price_wt] => 7.99
    [total_wt] => 479.4
    [total] => 479.4
    [id_image] => 5-32
    [legend] => Cover iPhone 5 3D Personalizzabile
    [reduction_applies] =>
    [quantity_discount_applies] =>
    [allow_oosp] => 0
    [features] => Array
    (
    )

    [rate] => 0
    [tax_name] =>
    )

    )

    [_taxCalculationMethod:protected] => 1
    [webserviceParameters:protected] => Array
    (
    [fields] => Array
    (
    [id_address_delivery] => Array
    (
    [xlink_resource] => addresses
    )

    [id_address_invoice] => Array
    (
    [xlink_resource] => addresses
    )

    [id_currency] => Array
    (
    [xlink_resource] => currencies
    )

    [id_customer] => Array
    (
    [xlink_resource] => customers
    )

    [id_guest] => Array
    (
    [xlink_resource] => guests
    )

    [id_lang] => Array
    (
    [xlink_resource] => languages
    )

    )

    [associations] => Array
    (
    [cart_rows] => Array
    (
    [resource] => cart_rows
    [virtual_entity] => 1
    [fields] => Array
    (
    [id_product] => Array
    (
    [required] => 1
    [xlink_resource] => products
    )

    [id_product_attribute] => Array
    (
    [required] => 1
    [xlink_resource] => combinations
    )

    [id_address_delivery] => Array
    (
    [required] => 1
    [xlink_resource] => addresses
    )

    [quantity] => Array
    (
    [required] => 1
    )

    )

    )

    )

    )

    [id_shop_list] =>
    [get_shop_from_context:protected] => 1
    [table:protected] => cart
    [identifier:protected] => id_cart
    [fieldsRequired:protected] => Array
    (
    [0] => id_currency
    [1] => id_lang
    )

    [fieldsSize:protected] => Array
    (
    [secure_key] => 32
    )

    [fieldsValidate:protected] => Array
    (
    [id_shop_group] => isUnsignedId
    [id_shop] => isUnsignedId
    [id_address_delivery] => isUnsignedId
    [id_address_invoice] => isUnsignedId
    [id_carrier] => isUnsignedId
    [id_currency] => isUnsignedId
    [id_customer] => isUnsignedId
    [id_guest] => isUnsignedId
    [id_lang] => isUnsignedId
    [recyclable] => isBool
    [gift] => isBool
    [gift_message] => isMessage
    [mobile_theme] => isBool
    [allow_seperated_package] => isBool
    [date_add] => isDateFormat
    [date_upd] => isDateFormat
    )

    [fieldsRequiredLang:protected] => Array
    (
    )

    [fieldsSizeLang:protected] => Array
    (
    )

    [fieldsValidateLang:protected] => Array
    (
    )

    [tables:protected] => Array
    (
    )

    [image_dir:protected] =>
    [image_format:protected] => jpg
    [def:protected] => Array
    (
    [table] => cart
    [primary] => id_cart
    [fields] => Array
    (
    [id_shop_group] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_shop] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_address_delivery] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_address_invoice] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_carrier] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_currency] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    [required] => 1
    )

    [id_customer] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_guest] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    )

    [id_lang] => Array
    (
    [type] => 1
    [validate] => isUnsignedId
    [required] => 1
    )

    [recyclable] => Array
    (
    [type] => 2
    [validate] => isBool
    )

    [gift] => Array
    (
    [type] => 2
    [validate] => isBool
    )

    [gift_message] => Array
    (
    [type] => 3
    [validate] => isMessage
    )

    [mobile_theme] => Array
    (
    [type] => 2
    [validate] => isBool
    )

    [delivery_option] => Array
    (
    [type] => 3
    )

    [secure_key] => Array
    (
    [type] => 3
    => 32
    )

    [allow_seperated_package] => Array
    (
    [type] => 2
    [validate] => isBool
    )

    [date_add] => Array
    (
    [type] => 5
    [validate] => isDateFormat
    )

    [date_upd] => Array
    (
    [type] => 5
    [validate] => isDateFormat
    )

    )

    [classname] => Cart
    )

    [update_fields:protected] =>
    [force_id] =>
    )
     
  • CartCore->getPackageList - [line 1926 - classes/Cart.php]
    1920.             return $cache;
    1921.
    1922.         $delivery_option_list = array();
    1923.         $carriers_price = array();
    1924.         $carrier_collection = array();
    1925.         $package_list = $this->getPackageList();
    1926.
    1927.         // Foreach addresses
    1928.         foreach ($package_list as $id_address => $packages)
    1929.         {
    1930.             // Initialize vars
  • CartCore->getDeliveryOptionList - [line 2397 - classes/Cart.php] - [1 Arguments]
    Argument [0]
     
  • CartCore->getDeliveryOption - [line 2465 - classes/Cart.php] - [3 Arguments]
    Argument [0]

    Argument [1]

    Argument [2]
     
  • CartCore->getTotalShippingCost - [line 162 - override/classes/Cart.php] - [2 Arguments]
    156.                 $type = Cart::BOTH_WITHOUT_SHIPPING;
    157.
    158.             if ($with_shipping || $type == Cart::ONLY_DISCOUNTS)
    159.             {
    160.                 if (is_null($products) && is_null($id_carrier))
    161.                     $shipping_fees = $this->getTotalShippingCost(null, (boolean)$with_taxes);
    162.                 else
    163.                     $shipping_fees = $this->getPackageShippingCost($id_carrier, (bool)$with_taxes, null, $products);
    164.             }
    165.             else
    166.                 $shipping_fees = 0;
  • Cart->getOrderTotal - [line 55 - controllers/front/OrderController.php]
    49.         }
    50.
    51.         // Check minimal amount
    52.         $currency = Currency::getCurrency((int)$this->context->cart->id_currency);
    53.
    54.         $orderTotal = $this->context->cart->getOrderTotal();
    55.         $minimal_purchase = Tools::convertPrice((float)Configuration::get('PS_PURCHASE_MINIMUM'), $currency);
    56.         if ($this->context->cart->getOrderTotal(false, Cart::ONLY_PRODUCTS) < $minimal_purchase && $this->step > 0)
    57.         {
    58.             $this->step = 0;
    59.             $this->errors[] = sprintf(
  • OrderControllerCore->init - [line 163 - classes/controller/Controller.php]
    157.     /**
    158.      * Start controller process (this method shouldn't be overriden !)
    159.      */
    160.     public function run()
    161.     {
    162.         $this->init();
    163.         if ($this->checkAccess())
    164.         {
    165.             // setMedia MUST be called before postProcess
    166.             if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
    167.                 $this->setMedia();
  • ControllerCore->run - [line 373 - classes/Dispatcher.php]
    367.             // Execute hook dispatcher
    368.             if (isset($params_hook_action_dispatcher))
    369.                 Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
    370.
    371.             // Running controller
    372.             $controller->run();
    373.         }
    374.         catch (PrestaShopException $e)
    375.         {
    376.             $e->displayMessage();
    377.         }
  • DispatcherCore->dispatch - [line 28 - index.php]
    22. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
    23. * International Registered Trademark & Property of PrestaShop SA
    24. */
    25.
    26. require(dirname(__FILE__).'/config/config.inc.php');
    27. Dispatcher::getInstance()->dispatch();
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...