Jump to content

Problème avec les images dans le Récapitulatif commande


Recommended Posts

Bonjour,

J'utilise prestashop 1.7 et je viens de m'apercevoir d'un souci au niveau des images produits sur le récapitulatif commande. ( order-confirmation-table.tpl ).

Toutes les images des produits correspondent  à l'image du dernier produit affiché. Partout ailleurs les bonnes images sont affichés en correspondance avec les produits.

Quelque-chose m'échappe.

J'ai donc affiché le tableau pour une commande de deux produits différents

On voit bien pour les deux [cover] , j'ai la même image. Comment se fait-il ??? Et c'est à chaque fois pareil, mais juste pour le récap de la commande

Quelqu'un a remarqué ça ? C'est bizarre, tout de même . J'ai déjà essayé de tout régénérer mais sans succès, toujours pareil.

Array
(
    [0] => Array
        (
            [id_order_detail] => 3
            [id_order] => 3
            [id_order_invoice] => 0
            [id_warehouse] => 0
            [id_shop] => 1
            [product_id] => 160
            [product_attribute_id] => 0
            [id_customization] => 0
            [product_name] => PANNINI POULET
            [product_quantity] => 1
            [product_quantity_in_stock] => 1
            [product_quantity_refunded] => 0
            [product_quantity_return] => 0
            [product_quantity_reinjected] => 0
            [product_price] => 5.46
            [reduction_percent] => 0.00
            [reduction_amount] => 0.000000
            [reduction_amount_tax_incl] => 0.000000
            [reduction_amount_tax_excl] => 0.000000
            [group_reduction] => 0.00
            [product_quantity_discount] => 0.000000
            [product_ean13] => 
            [product_isbn] => 
            [product_upc] => 
            [product_reference] => 
            [product_supplier_reference] => 
            [product_weight] => 0.000000
            [id_tax_rules_group] => 7
            [tax_computation_method] => 0
            [tax_name] => 
            [tax_rate] => 10
            [ecotax] => 0.000000
            [ecotax_tax_rate] => 0.000
            [discount_quantity_applied] => 0
            [download_hash] => 
            [download_nb] => 0
            [download_deadline] => 0000-00-00 00:00:00
            [total_price_tax_incl] => 6.000000
            [total_price_tax_excl] => 5.460000
            [unit_price_tax_incl] => 6.000500
            [unit_price_tax_excl] => 5.455000
            [total_shipping_price_tax_incl] => 0.000000
            [total_shipping_price_tax_excl] => 0.000000
            [purchase_supplier_price] => 0.000000
            [original_product_price] => 5.455000
            [original_wholesale_price] => 0.000000
            [id_product] => 160
            [id_supplier] => 0
            [id_manufacturer] => 0
            [id_category_default] => 14
            [id_shop_default] => 1
            [on_sale] => 0
            [online_only] => 0
            [ean13] => 
            [isbn] => 
            [upc] => 
            [quantity] => 1
            [minimal_quantity] => 1
            [price] => 5,46 €
            [wholesale_price] => 0.000000
            [unity] => 
            [unit_price_ratio] => 0.000000
            [additional_shipping_cost] => 0.00
            [reference] => 
            [supplier_reference] => 
            [location] => 
            [width] => 0.000000
            [height] => 0.000000
            [depth] => 0.000000
            [weight] => 0.000000
            [out_of_stock] => 2
            [quantity_discount] => 0
            [customizable] => 0
            [uploadable_files] => 0
            [text_fields] => 0
            [active] => 1
            [redirect_type] => 404
            [id_type_redirected] => 0
            [available_for_order] => 1
            [available_date] => 0000-00-00
            [show_condition] => 0
            [condition] => used
            [show_price] => 1
            [indexed] => 1
            [visibility] => both
            [cache_is_pack] => 0
            [cache_has_attachments] => 0
            [is_virtual] => 0
            [cache_default_attribute] => 0
            [date_add] => 2018-01-21 19:42:55
            [date_upd] => 2018-01-28 21:03:14
            [advanced_stock_management] => 0
            [pack_stock_type] => 3
            [state] => 1
            [image] => Image Object
                (
                    [id] => 74
                    [id_image] => 74
                    [id_product] => 160
                    [position] => 1
                    [cover] => 1
                    [legend] => Array
                        (
                            [1] => 
                        )

                    [image_format] => jpg
                    [source_index] => C:\wamp\www\test/img/p/index.php
                    [folder:protected] => 
                    [existing_path:protected] => 
                    [id_lang:protected] => 
                    [id_shop:protected] => 1
                    [id_shop_list] => 
                    [get_shop_from_context:protected] => 1
                    [table:protected] => image
                    [identifier:protected] => id_image
                    [fieldsRequired:protected] => Array
                        (
                            [0] => id_product
                        )

                    [fieldsSize:protected] => Array
                        (
                        )

                    [fieldsValidate:protected] => Array
                        (
                            [id_product] => isUnsignedId
                            [position] => isUnsignedInt
                            [cover] => isBool
                        )

                    [fieldsRequiredLang:protected] => Array
                        (
                        )

                    [fieldsSizeLang:protected] => Array
                        (
                            [legend] => 128
                        )

                    [fieldsValidateLang:protected] => Array
                        (
                            [legend] => isGenericName
                        )

                    [tables:protected] => Array
                        (
                        )

                    [webserviceParameters:protected] => Array
                        (
                        )

                    [image_dir:protected] => C:\wamp\www\test/img/p/
                    [translator:protected] => 
                    [def:protected] => Array
                        (
                            [table] => image
                            [primary] => id_image
                            [multilang] => 1
                            [fields] => Array
                                (
                                    [id_product] => Array
                                        (
                                            [type] => 1
                                            [shop] => both
                                            [validate] => isUnsignedId
                                            [required] => 1
                                        )

                                    [position] => Array
                                        (
                                            [type] => 1
                                            [validate] => isUnsignedInt
                                        )

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

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

                                )

                            [classname] => Image
                            [associations] => Array
                                (
                                    [l] => Array
                                        (
                                            [type] => 2
                                            [field] => id_image
                                            [foreign_field] => id_image
                                        )

                                )

                        )

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

            [image_size] => 
            [current_stock] => 4999
            [tax_calculator] => TaxCalculator Object
                (
                    [taxes] => Array
                        (
                            [0] => Tax Object
                                (
                                    [name] => Array
                                        (
                                            [1] => TVA FR 10%
                                        )

                                    [rate] => 10.000
                                    [active] => 1
                                    [deleted] => 0
                                    [webserviceParameters:protected] => Array
                                        (
                                            [objectsNodeName] => taxes
                                        )

                                    [id] => 2
                                    [id_lang:protected] => 
                                    [id_shop:protected] => 
                                    [id_shop_list] => 
                                    [get_shop_from_context:protected] => 1
                                    [table:protected] => tax
                                    [identifier:protected] => id_tax
                                    [fieldsRequired:protected] => Array
                                        (
                                            [0] => rate
                                        )

                                    [fieldsSize:protected] => Array
                                        (
                                        )

                                    [fieldsValidate:protected] => Array
                                        (
                                            [rate] => isFloat
                                        )

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

                                    [fieldsSizeLang:protected] => Array
                                        (
                                            [name] => 32
                                        )

                                    [fieldsValidateLang:protected] => Array
                                        (
                                            [name] => isGenericName
                                        )

                                    [tables:protected] => Array
                                        (
                                        )

                                    [image_dir:protected] => 
                                    [image_format:protected] => jpg
                                    [translator:protected] => 
                                    [def:protected] => Array
                                        (
                                            [table] => tax
                                            [primary] => id_tax
                                            [multilang] => 1
                                            [fields] => Array
                                                (
                                                    [rate] => Array
                                                        (
                                                            [type] => 4
                                                            [validate] => isFloat
                                                            [required] => 1
                                                        )

                                                    [active] => Array
                                                        (
                                                            [type] => 2
                                                        )

                                                    [deleted] => Array
                                                        (
                                                            [type] => 2
                                                        )

                                                    [name] => Array
                                                        (
                                                            [type] => 3
                                                            [lang] => 1
                                                            [validate] => isGenericName
                                                            [required] => 1
                                                            [size] => 32
                                                        )

                                                )

                                            [classname] => Tax
                                            [associations] => Array
                                                (
                                                    [l] => Array
                                                        (
                                                            [type] => 2
                                                            [field] => id_tax
                                                            [foreign_field] => id_tax
                                                        )

                                                )

                                        )

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

                        )

                    [computation_method] => 0
                )

            [product_price_wt] => 6
            [product_price_wt_but_ecotax] => 6
            [total_wt] => 6.000000
            [total_price] => 5.460000
            [customizedDatas] => 
            [customizationQuantityTotal] => 0
            [id_address_delivery] => 10
            [id_product_attribute] => 0
            [cart_quantity] => 1
            [name] => PANNINI POULET
            [total] => 5,46 €
            [attributes] => Array
                (
                )

            [cover] => Array
                (
                    [bySize] => Array
                        (
                            [small_default] => Array
                                (
                                    [url] => http://localhost/test/64-small_default/mixte-iberique.jpg
                                    [width] => 98
                                    [height] => 98
                                )

                            [cart_default] => Array
                                (
                                    [url] => http://localhost/test/64-cart_default/mixte-iberique.jpg
                                    [width] => 125
                                    [height] => 125
                                )

                            [home_default] => Array
                                (
                                    [url] => http://localhost/test/64-home_default/mixte-iberique.jpg
                                    [width] => 250
                                    [height] => 250
                                )

                            [medium_default] => Array
                                (
                                    [url] => http://localhost/test/64-medium_default/mixte-iberique.jpg
                                    [width] => 452
                                    [height] => 452
                                )

                            [large_default] => Array
                                (
                                    [url] => http://localhost/test/64-large_default/mixte-iberique.jpg
                                    [width] => 800
                                    [height] => 800
                                )

                        )

                    [small] => Array
                        (
                            [url] => http://localhost/test/64-small_default/mixte-iberique.jpg
                            [width] => 98
                            [height] => 98
                        )

                    [medium] => Array
                        (
                            [url] => http://localhost/test/64-home_default/mixte-iberique.jpg
                            [width] => 250
                            [height] => 250
                        )

                    [large] => Array
                        (
                            [url] => http://localhost/test/64-large_default/mixte-iberique.jpg
                            [width] => 800
                            [height] => 800
                        )

                    [legend] => 
                    [cover] => 1
                    [id_image] => 64
                    [position] => 1
                    [associatedVariants] => Array
                        (
                        )

                )

            [unit_price_full] => 
            [qty_returned] => 0
            [customizations] => Array
                (
                )

        )

    [1] => Array
        (
            [id_order_detail] => 4
            [id_order] => 3
            [id_order_invoice] => 0
            [id_warehouse] => 0
            [id_shop] => 1
            [product_id] => 163
            [product_attribute_id] => 0
            [id_customization] => 0
            [product_name] => MIXTE IBERIQUE
            [product_quantity] => 1
            [product_quantity_in_stock] => 1
            [product_quantity_refunded] => 0
            [product_quantity_return] => 0
            [product_quantity_reinjected] => 0
            [product_price] => 21.82
            [reduction_percent] => 0.00
            [reduction_amount] => 0.000000
            [reduction_amount_tax_incl] => 0.000000
            [reduction_amount_tax_excl] => 0.000000
            [group_reduction] => 0.00
            [product_quantity_discount] => 0.000000
            [product_ean13] => 
            [product_isbn] => 
            [product_upc] => 
            [product_reference] => 
            [product_supplier_reference] => 
            [product_weight] => 0.000000
            [id_tax_rules_group] => 7
            [tax_computation_method] => 0
            [tax_name] => 
            [tax_rate] => 10
            [ecotax] => 0.000000
            [ecotax_tax_rate] => 0.000
            [discount_quantity_applied] => 0
            [download_hash] => 
            [download_nb] => 0
            [download_deadline] => 0000-00-00 00:00:00
            [total_price_tax_incl] => 24.000000
            [total_price_tax_excl] => 21.820000
            [unit_price_tax_incl] => 23.999800
            [unit_price_tax_excl] => 21.818000
            [total_shipping_price_tax_incl] => 0.000000
            [total_shipping_price_tax_excl] => 0.000000
            [purchase_supplier_price] => 0.000000
            [original_product_price] => 21.818000
            [original_wholesale_price] => 0.000000
            [id_product] => 163
            [id_supplier] => 0
            [id_manufacturer] => 0
            [id_category_default] => 10
            [id_shop_default] => 1
            [on_sale] => 0
            [online_only] => 0
            [ean13] => 
            [isbn] => 
            [upc] => 
            [quantity] => 1
            [minimal_quantity] => 1
            [price] => 21,82 €
            [wholesale_price] => 0.000000
            [unity] => 
            [unit_price_ratio] => 0.000000
            [additional_shipping_cost] => 0.00
            [reference] => 
            [supplier_reference] => 
            [location] => 
            [width] => 0.000000
            [height] => 0.000000
            [depth] => 0.000000
            [weight] => 0.000000
            [out_of_stock] => 2
            [quantity_discount] => 0
            [customizable] => 0
            [uploadable_files] => 0
            [text_fields] => 0
            [active] => 1
            [redirect_type] => 404
            [id_type_redirected] => 0
            [available_for_order] => 1
            [available_date] => 0000-00-00
            [show_condition] => 0
            [condition] => used
            [show_price] => 1
            [indexed] => 1
            [visibility] => both
            [cache_is_pack] => 0
            [cache_has_attachments] => 0
            [is_virtual] => 0
            [cache_default_attribute] => 0
            [date_add] => 2018-01-21 19:42:55
            [date_upd] => 2018-01-28 20:05:52
            [advanced_stock_management] => 0
            [pack_stock_type] => 3
            [state] => 1
            [image] => Image Object
                (
                    [id] => 64
                    [id_image] => 64
                    [id_product] => 163
                    [position] => 1
                    [cover] => 1
                    [legend] => Array
                        (
                            [1] => 
                        )

                    [image_format] => jpg
                    [source_index] => C:\wamp\www\test/img/p/index.php
                    [folder:protected] => 
                    [existing_path:protected] => 
                    [id_lang:protected] => 
                    [id_shop:protected] => 1
                    [id_shop_list] => 
                    [get_shop_from_context:protected] => 1
                    [table:protected] => image
                    [identifier:protected] => id_image
                    [fieldsRequired:protected] => Array
                        (
                            [0] => id_product
                        )

                    [fieldsSize:protected] => Array
                        (
                        )

                    [fieldsValidate:protected] => Array
                        (
                            [id_product] => isUnsignedId
                            [position] => isUnsignedInt
                            [cover] => isBool
                        )

                    [fieldsRequiredLang:protected] => Array
                        (
                        )

                    [fieldsSizeLang:protected] => Array
                        (
                            [legend] => 128
                        )

                    [fieldsValidateLang:protected] => Array
                        (
                            [legend] => isGenericName
                        )

                    [tables:protected] => Array
                        (
                        )

                    [webserviceParameters:protected] => Array
                        (
                        )

                    [image_dir:protected] => C:\wamp\www\test/img/p/
                    [translator:protected] => 
                    [def:protected] => Array
                        (
                            [table] => image
                            [primary] => id_image
                            [multilang] => 1
                            [fields] => Array
                                (
                                    [id_product] => Array
                                        (
                                            [type] => 1
                                            [shop] => both
                                            [validate] => isUnsignedId
                                            [required] => 1
                                        )

                                    [position] => Array
                                        (
                                            [type] => 1
                                            [validate] => isUnsignedInt
                                        )

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

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

                                )

                            [classname] => Image
                            [associations] => Array
                                (
                                    [l] => Array
                                        (
                                            [type] => 2
                                            [field] => id_image
                                            [foreign_field] => id_image
                                        )

                                )

                        )

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

            [image_size] => 
            [current_stock] => 4999
            [tax_calculator] => TaxCalculator Object
                (
                    [taxes] => Array
                        (
                            [0] => Tax Object
                                (
                                    [name] => Array
                                        (
                                            [1] => TVA FR 10%
                                        )

                                    [rate] => 10.000
                                    [active] => 1
                                    [deleted] => 0
                                    [webserviceParameters:protected] => Array
                                        (
                                            [objectsNodeName] => taxes
                                        )

                                    [id] => 2
                                    [id_lang:protected] => 
                                    [id_shop:protected] => 
                                    [id_shop_list] => 
                                    [get_shop_from_context:protected] => 1
                                    [table:protected] => tax
                                    [identifier:protected] => id_tax
                                    [fieldsRequired:protected] => Array
                                        (
                                            [0] => rate
                                        )

                                    [fieldsSize:protected] => Array
                                        (
                                        )

                                    [fieldsValidate:protected] => Array
                                        (
                                            [rate] => isFloat
                                        )

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

                                    [fieldsSizeLang:protected] => Array
                                        (
                                            [name] => 32
                                        )

                                    [fieldsValidateLang:protected] => Array
                                        (
                                            [name] => isGenericName
                                        )

                                    [tables:protected] => Array
                                        (
                                        )

                                    [image_dir:protected] => 
                                    [image_format:protected] => jpg
                                    [translator:protected] => 
                                    [def:protected] => Array
                                        (
                                            [table] => tax
                                            [primary] => id_tax
                                            [multilang] => 1
                                            [fields] => Array
                                                (
                                                    [rate] => Array
                                                        (
                                                            [type] => 4
                                                            [validate] => isFloat
                                                            [required] => 1
                                                        )

                                                    [active] => Array
                                                        (
                                                            [type] => 2
                                                        )

                                                    [deleted] => Array
                                                        (
                                                            [type] => 2
                                                        )

                                                    [name] => Array
                                                        (
                                                            [type] => 3
                                                            [lang] => 1
                                                            [validate] => isGenericName
                                                            [required] => 1
                                                            [size] => 32
                                                        )

                                                )

                                            [classname] => Tax
                                            [associations] => Array
                                                (
                                                    [l] => Array
                                                        (
                                                            [type] => 2
                                                            [field] => id_tax
                                                            [foreign_field] => id_tax
                                                        )

                                                )

                                        )

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

                        )

                    [computation_method] => 0
                )

            [product_price_wt] => 24
            [product_price_wt_but_ecotax] => 24
            [total_wt] => 24.000000
            [total_price] => 21.820000
            [customizedDatas] => 
            [customizationQuantityTotal] => 0
            [id_address_delivery] => 10
            [id_product_attribute] => 0
            [cart_quantity] => 1
            [qty_returned] => 0
            [name] => MIXTE IBERIQUE
            [total] => 21,82 €
            [attributes] => Array
                (
                )

            [cover] => Array
                (
                    [bySize] => Array
                        (
                            [small_default] => Array
                                (
                                    [url] => http://localhost/test/64-small_default/mixte-iberique.jpg
                                    [width] => 98
                                    [height] => 98
                                )

                            [cart_default] => Array
                                (
                                    [url] => http://localhost/test/64-cart_default/mixte-iberique.jpg
                                    [width] => 125
                                    [height] => 125
                                )

                            [home_default] => Array
                                (
                                    [url] => http://localhost/test/64-home_default/mixte-iberique.jpg
                                    [width] => 250
                                    [height] => 250
                                )

                            [medium_default] => Array
                                (
                                    [url] => http://localhost/test/64-medium_default/mixte-iberique.jpg
                                    [width] => 452
                                    [height] => 452
                                )

                            [large_default] => Array
                                (
                                    [url] => http://localhost/test/64-large_default/mixte-iberique.jpg
                                    [width] => 800
                                    [height] => 800
                                )

                        )

                    [small] => Array
                        (
                            [url] => http://localhost/test/64-small_default/mixte-iberique.jpg
                            [width] => 98
                            [height] => 98
                        )

                    [medium] => Array
                        (
                            [url] => http://localhost/test/64-home_default/mixte-iberique.jpg
                            [width] => 250
                            [height] => 250
                        )

                    [large] => Array
                        (
                            [url] => http://localhost/test/64-large_default/mixte-iberique.jpg
                            [width] => 800
                            [height] => 800
                        )

                    [legend] => 
                    [cover] => 1
                    [id_image] => 64
                    [position] => 1
                    [associatedVariants] => Array
                        (
                        )

                )

            [unit_price_full] => 
            [customizations] => Array
                (
                )

        )

)

Merci

 

Eric

Link to comment
Share on other sites

  • 2 months later...

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...