Jump to content
BastienS

Problème mis à jour du prix suivant la quantité dans le Panier

Recommended Posts

Bonjour à tous,

 

J'ai remarqué un probleme sur ma boutique :

 

Lorsque je suis dans mon panier et que je souhaite mettre à jour la quantité d'un article, le prix reste inchangé et j'ai remarqué dans la console du navigateur une erreur a chaque fois que je change la quantité (voir screenshot).

 

Pour voir le changement de prix il faut que je rafraîchisse l'intégralité de la page.

 

Si quelqu'un a une piste ? 

 

Merci

post-1423809-0-03219200-1505956736_thumb.png

Share this post


Link to post
Share on other sites

Pourrais-tu regarder dans la section "réseau" du navigateur, l'appel ajax, et donner la réponse brute de cet appel (l'erreur exacte est dedans)

Share this post


Link to post
Share on other sites

Bonjour,

 

 
  1. Request URL:
 
  1. {success: true, id_product: 138, id_product_attribute: 0, quantity: 2,…}
    1. cart:{products: [{id_product_attribute: "0", id_product: "138", cart_quantity: "2", id_shop: "1",…}],…}
    2. id_product:138
    3. id_product_attribute:0
    4. quantity:2
    5. success:true
    6.  
    7.  
    8.  
    9.  
    10.  
    11.  
    12. {"success":true,"id_product":138,"id_product_attribute":0,"quantity":2,"cart":{"products":[{"id_product_attribute":"0","id_product":"138","cart_quantity":"2","id_shop":"1","id_customization":null,"name":"Patrizia Mug","is_virtual":"0","description_short":"","available_now":"","available_later":"","id_category_default":"17","id_supplier":"0","id_manufacturer":"6","manufacturer_name":"Bloomingville","on_sale":"0","ecotax":{"value":"0,00\u00a0\u20ac","amount":"0.000000","rate":""},"additional_shipping_cost":"0.00","available_for_order":"1","show_price":true,"price":"7,50\u00a0\u20ac","active":"1","unity":"","unit_price_ratio":"0.000000","quantity_available":"4","width":"0.000000","height":"0.000000","depth":"0.000000","out_of_stock":"2","weight":0,"available_date":"0000-00-00","date_add":"2017-08-07 06:06:46","date_upd":"2017-08-09 02:45:21","quantity":2,"link_rewrite":"patrizia-mug","category":"mugs","unique_id":"0000000138000000000050","id_address_delivery":"5","advanced_stock_management":"0","supplier_reference":null,"customization_quantity":null,"price_attribute":null,"ecotax_attr":null,"reference":"MUGS_025","weight_attribute":null,"ean13":"","isbn":"","upc":"","minimal_quantity":"1","wholesale_price":"0.000000","id_image":"138-285","legend":"","reduction_type":0,"is_gift":false,"reduction":0,"price_without_reduction":7.5,"specific_prices":false,"stock_quantity":4,"price_with_reduction":7.5,"price_with_reduction_without_tax":7.5,"total":"15,00\u00a0\u20ac","total_wt":15,"price_wt":7.5,"reduction_applies":false,"quantity_discount_applies":false,"allow_oosp":0,"features":[{"id_feature":"8","id_product":"138","id_feature_value":"135"},{"id_feature":"10","id_product":"138","id_feature_value":"54"},{"id_feature":"11","id_product":"138","id_feature_value":"55"}],"rate":0,"tax_name":"","remove_from_cart_url":"https:\/\/laparte-store.fr\/fr\/panier?delete=1&id_product=138&id_product_attribute=0&token=cb769316c1f0a010572b063d5415de7e","up_quantity_url":"https:\/\/laparte-store.fr\/fr\/panier?update=1&id_product=138&id_product_attribute=0&token=cb769316c1f0a010572b063d5415de7e&op=up","down_quantity_url":"https:\/\/laparte-store.fr\/fr\/panier?update=1&id_product=138&id_product_attribute=0&token=cb769316c1f0a010572b063d5415de7e&op=down","update_quantity_url":"https:\/\/laparte-store.fr\/fr\/panier?update=1&id_product=138&id_product_attribute=0&token=cb769316c1f0a010572b063d5415de7e","ecotax_rate":"","customizable":"","online_only":"","new":"","condition":false,"pack":"","price_amount":"7,50\u00a0\u20ac","quantity_wanted":"2","id":"138","attributes":[],"weight_unit":"Kg","images":[{"bySize":{"small_default":{"url":"https:\/\/laparte-store.fr\/285-small_default\/patrizia-mug.jpg","width":98,"height":98},"cart_default":{"url":"https:\/\/laparte-store.fr\/285-cart_default\/patrizia-mug.jpg","width":125,"height":125},"home_default":{"url":"https:\/\/laparte-store.fr\/285-home_default\/patrizia-mug.jpg","width":280,"height":364},"medium_default":{"url":"https:\/\/laparte-store.fr\/285-medium_default\/patrizia-mug.jpg","width":452,"height":452},"large_default":{"url":"https:\/\/laparte-store.fr\/285-large_default\/patrizia-mug.jpg","width":800,"height":800[spam-filter],"small":{"url":"https:\/\/laparte-store.fr\/285-small_default\/patrizia-mug.jpg","width":98,"height":98},"medium":{"url":"https:\/\/laparte-store.fr\/285-home_default\/patrizia-mug.jpg","width":280,"height":364},"large":{"url":"https:\/\/laparte-store.fr\/285-large_default\/patrizia-mug.jpg","width":800,"height":800},"legend":"","cover":"1","id_image":"285","position":"1","associatedVariants":[]}],"cover":{"bySize":{"small_default":{"url":"https:\/\/laparte-store.fr\/285-small_default\/patrizia-mug.jpg","width":98,"height":98},"cart_default":{"url":"https:\/\/laparte-store.fr\/285-cart_default\/patrizia-mug.jpg","width":125,"height":125},"home_default":{"url":"https:\/\/laparte-store.fr\/285-home_default\/patrizia-mug.jpg","width":280,"height":364},"medium_default":{"url":"https:\/\/laparte-store.fr\/285-medium_default\/patrizia-mug.jpg","width":452,"height":452},"large_default":{"url":"https:\/\/laparte-store.fr\/285-large_default\/patrizia-mug.jpg","width":800,"height":800[spam-filter],"small":{"url":"https:\/\/laparte-store.fr\/285-small_default\/patrizia-mug.jpg","width":98,"height":98},"medium":{"url":"https:\/\/laparte-store.fr\/285-home_default\/patrizia-mug.jpg","width":280,"height":364},"large":{"url":"https:\/\/laparte-store.fr\/285-large_default\/patrizia-mug.jpg","width":800,"height":800},"legend":"","cover":"1","id_image":"285","position":"1","associatedVariants":[]},"url":"https:\/\/laparte-store.fr\/fr\/mugs\/138-patrizia-mug.html","canonical_url":"https:\/\/laparte-store.fr\/fr\/mugs\/138-patrizia-mug.html","has_discount":false,"discount_type":null,"discount_percentage":null,"discount_percentage_absolute":null,"discount_amount":null,"regular_price_amount":"7,50\u00a0\u20ac","regular_price":"7,50\u00a0\u20ac","discount_to_display":null,"unit_price_full":"","unit_price":"","add_to_cart_url":"https:\/\/laparte-store.fr\/fr\/panier?add=1&id_product=138&id_product_attribute=0&token=cb769316c1f0a010572b063d5415de7e","main_variants":[],"flags":[],"labels":{"tax_short":"TTC","tax_long":"TTC"},"show_availability":true,"availability_date":null,"availability_message":"","availability":"available","quantity_discounts":[],"reference_to_display":"MUGS_025","embedded_attributes":{"id_product_attribute":"0","id_product":"138","id_customization":null,"name":"Patrizia Mug","is_virtual":"0","description_short":"","available_now":"","available_later":"","id_category_default":"17","id_supplier":"0","id_manufacturer":"6","on_sale":"0","ecotax":"0.000000","additional_shipping_cost":"0.00","available_for_order":"1","show_price":"1","price":"7,50\u00a0\u20ac","unity":"","unit_price_ratio":"0.000000","out_of_stock":"2","available_date":"0000-00-00","date_add":"2017-08-07 06:06:46","date_upd":"2017-08-09 02:45:21","quantity":2,"link_rewrite":"patrizia-mug","category":"mugs","advanced_stock_management":"0","reference":"MUGS_025","minimal_quantity":"1","id_image":"138-285","reduction":0,"price_without_reduction":7.5,"specific_prices":false,"allow_oosp":0,"features":[{"id_feature":"8","id_product":"138","id_feature_value":"135"},{"id_feature":"10","id_product":"138","id_feature_value":"54"},{"id_feature":"11","id_product":"138","id_feature_value":"55"}],"rate":0,"tax_name":"","ecotax_rate":"","customizable":"","online_only":"","new":"","condition":"","pack":"","price_amount":7.5,"quantity_wanted":"2"},"customizations":[]}],"totals":{"total":{"type":"total","label":"Total","amount":18.99,"value":"18,99\u00a0\u20ac"},"total_including_tax":{"type":"total","label":"Total TTC","amount":18.99,"value":"18,99\u00a0\u20ac"},"total_excluding_tax":{"type":"total","label":"Total HT :","amount":18.99,"value":"18,99\u00a0\u20ac"[spam-filter],"subtotals":{"products":{"type":"products","label":"Sous-total","amount":15,"value":"15,00\u00a0\u20ac"},"discounts":null,"shipping":{"type":"shipping","label":"Livraison","amount":3.99,"value":"3,99\u00a0\u20ac"},"tax":null},"products_count":2,"summary_string":"2 articles","labels":{"tax_short":"TTC","tax_long":"(TTC)"},"id_address_delivery":"5","id_address_invoice":"5","is_virtual":0,"vouchers":{"allowed":0,"added":[]},"discounts":[],"minimalPurchase":0,"minimalPurchaseRequired":""[spam-filter]
    13.  
    14.  
    15. Voici les infos dans "réseau"
    16.  
    17. Merci
    18.  
    19.  

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More