andreano Posted February 19 Share Posted February 19 Bonjour, J'espère que quelqu'un pourra m'aider. Quand j’essaie de commander un nouveau produit depuis +ajouter une commande, après avoir choisi le client j’essaie de rajouter un produit au niveau du panier. Je sélectionne un produit qui m'indique qu'il y a du stock. Quand je l'ajoute au panier il me fait une erreur du style "Une erreur inattendue s'est produite. [PrestaShop\PrestaShop\Core\Domain\Cart\Exception\CartException code 0] : Failed to update product quantity in cart." ou m'indique que je n'ai plus de stock. Le problème s'est qu'il ne crée pas le panier sur la boutique sélectionnée sur laquelle je passe la commande, mais sur la boutique d'origine du client où effectivement le produit n'existe pas. Comment faire pour qu'il crée le panier sur la bonne boutique ? Pour la configuration Version de PrestaShop : 1.7.8.10 Version de PHP : 7.3.33 sur le groupe : Partager les clients : oui Partager les quantités disponibles à la vente : non Partager les commandes : non CartController :: addProductAction -> request KeyValue _token "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" POST Parameters KeyValue product_id "492" product_quantity "1" Request Attributes KeyValue _controller "PrestaShopBundle\Controller\Admin\Sell\Order\CartController::addProductAction" _firewall_context "security.firewall.map.context.main" _legacy_controller "AdminCarts" _route "admin_carts_add_product" _route_params _security cartId "14710" controller_name "PrestaShopBundle\Controller\Admin\Sell\Order\CartController" controller_type 2 Request Headers HeaderValue accept "*/*" accept-encoding "gzip, deflate, br" accept-language "fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3" content-length "302" content-type "multipart/form-data; boundary=---------------------------25460553012382331873656320351" cookie "id_employee=2; iso_code=fr; autoupgrade=729c130d6b6bcb666426e9f6f1f876d1; swatches=%2300ffff%7C%7Crgb%28255%2C%20255%2C%20255%29%7C%7Crgb%28255%2C%20255%2C%200%29%7C%7Crgb%280%2C%20255%2C%200%29%7C%7Crgb%280%2C%200%2C%20255%29%7C%7Crgb%28255%2C%200%2C%20255%29%7C%7Crgb%28255%2C%200%2C%200%29%7C%7Crgb%2876%2C%2043%2C%2017%29%7C%7Crgb%2859%2C%2059%2C%2059%29%7C%7Crgb%280%2C%200%2C%200%29; PrestaShop-e3c01190eaae37abaee8bbec488d1369=def5020044703031b65bef643710784b8853b514f19bab83654648a2788ab34137737b9687c64d4abc5a33ac5bde74051faf18d57a0903ce28c9a1770890494457a4db2333e21e0111056ccec8059c8204bcf85ae16eb100095747d5f9b9b7e167efcb57a4a1f3d26176d73beb396b2144eefc7623a0da249c395d1dc4864567e806544263f15da6bf0a603ce70423357339738b9ca3e66324eee28da27834b95a7d0e1d830ef8c18e4ae11abf3fb75aabe2d2d17a6d73239328469b6f01e962a51758b91acd7b241f482ef8b017a61cffbca09fa3e8b9af76fb7589cca23440a08ee73e84b3db5f25103245d4282c903779d40a37f6f286b0a05d5f58704d0ef91e461fd01b68dc1d09687de2e8db7d3fc29a6eeeeab7b0c23d018c174faaebf79b44794d3f2c6e65fca59d26c5de5598ab00198c63015f15d4b494c7d08a0fae0e9372a8ac256be6763ac2f5433368f7afd5c19a09a9d449b3f44b3c7bb2da17d49a9e00d3a25e55e9f3678faaec22f76fec2305cfc6539f1202370fc4d705c0750284d960a14880d5f98408c75c88fdc6a49e2f1938c4835f088379bca79563d8e02fc379638aca07b7025f69ade5cd0265decde6f60917d64e502dd60940da4a042c5c785178ee0720080d4680a5df4925d795cf45402fd22519fa977f3840db547778c5c881a16bb1e8b883817dc86c898f86b341359695df7c3156cb85b2ed009a1ca10e67f791b8a7f6707ccec2d6; _gcl_au=1.1.2007062642.1707922374; _ga_8YM8R682SE=GS1.1.1708334086.10.1.1708336471.45.0.0; _ga=GA1.1.186912438.1707922374; _fbp=fb.1.1707922375305.374840544; AdminFront=ok; PHPSESSID=f929b7c8ae161a230259680739bae416; PHPSESSID=xxxxxxxxxxxxxxxxxxxxxxxxxx" file-sizes "" host "boutique.xxxxxxxxxxxx.com" mod-rewrite "On" origin "https://boutique.xxxxxxxxxxxxxxxxxxx.com" referer "https://boutique.xxxxxxxxxxxxxxxxx.com/admin798eeavuu/index.php/sell/orders/new?_token=pb-G8ZC3RVh9lWXuXy6nMmhfpeoMLym2xrMYh8LKok4" remote-ip "00.000.000.000" sec-fetch-dest "empty" sec-fetch-mode "cors" sec-fetch-site "same-origin" user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0" x-forwarded-for "00.000.000.000" x-forwarded-proto "https" x-ovhrequest-id "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" x-php-ob-level "1" x-predictor "1" x-requested-with "XMLHttpRequest" Request Content Request content not available (it was retrieved as a resource). Server Parameters KeyValue APP_ENGINE "php" APP_ENGINE_VERSION "7.3" CFG_CLUSTER "cluster000" CONTENT_LENGTH "302" CONTENT_TYPE "multipart/form-data; boundary=---------------------------25460553012382331873656320351" DOCUMENT_ROOT "/xxxxxxxxx/xxxxxxxxx/xxxxxxxx/xxxxxx_boutique" ENVIRONMENT "production" FCGI_ROLE "RESPONDER" GATEWAY_INTERFACE "CGI/1.1" GEOIP_AREA_CODE "0" GEOIP_CITY b"La Vaupalière" GEOIP_COUNTRY_CODE "FR" GEOIP_COUNTRY_NAME "France" GEOIP_DMA_CODE "0" GEOIP_LATITUDE "00.00000000" GEOIP_LONGITUDE "0.000000000" GEOIP_REGION "A7" HTTPS "on" HTTP_ACCEPT "*/*" HTTP_ACCEPT_ENCODING "gzip, deflate, br" HTTP_ACCEPT_LANGUAGE "fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3" HTTP_COOKIE "id_employee=2; iso_code=fr; autoupgrade=729c130d6b6bcb666426e9f6f1f876d1; swatches=%2300ffff%7C%7Crgb%28255%2C%20255%2C%20255%29%7C%7Crgb%28255%2C%20255%2C%200%29%7C%7Crgb%280%2C%20255%2C%200%29%7C%7Crgb%280%2C%200%2C%20255%29%7C%7Crgb%28255%2C%200%2C%20255%29%7C%7Crgb%28255%2C%200%2C%200%29%7C%7Crgb%2876%2C%2043%2C%2017%29%7C%7Crgb%2859%2C%2059%2C%2059%29%7C%7Crgb%280%2C%200%2C%200%29; PrestaShop-e3c01190eaae37abaee8bbec488d1369=def5020044703031b65bef643710784b8853b514f19bab83654648a2788ab34137737b9687c64d4abc5a33ac5bde74051faf18d57a0903ce28c9a1770890494457a4db2333e21e0111056ccec8059c8204bcf85ae16eb100095747d5f9b9b7e167efcb57a4a1f3d26176d73beb396b2144eefc7623a0da249c395d1dc4864567e806544263f15da6bf0a603ce70423357339738b9ca3e66324eee28da27834b95a7d0e1d830ef8c18e4ae11abf3fb75aabe2d2d17a6d73239328469b6f01e962a51758b91acd7b241f482ef8b017a61cffbca09fa3e8b9af76fb7589cca23440a08ee73e84b3db5f25103245d4282c903779d40a37f6f286b0a05d5f58704d0ef91e461fd01b68dc1d09687de2e8db7d3fc29a6eeeeab7b0c23d018c174faaebf79b44794d3f2c6e65fca59d26c5de5598ab00198c63015f15d4b494c7d08a0fae0e9372a8ac256be6763ac2f5433368f7afd5c19a09a9d449b3f44b3c7bb2da17d49a9e00d3a25e55e9f3678faaec22f76fec2305cfc6539f1202370fc4d705c0750284d960a14880d5f98408c75c88fdc6a49e2f1938c4835f088379bca79563d8e02fc379638aca07b7025f69ade5cd0265decde6f60917d64e502dd60940da4a042c5c785178ee0720080d4680a5df4925d795cf45402fd22519fa977f3840db547778c5c881a16bb1e8b883817dc86c898f86b341359695df7c3156cb85b2ed009a1ca10e67f791b8a7f6707ccec2d6; _gcl_au=1.1.2007062642.1707922374; _ga_8YM8R682SE=GS1.1.1708334086.10.1.1708336471.45.0.0; _ga=GA1.1.186912438.1707922374; _fbp=fb.1.1707922375305.374840544; AdminFront=ok; PHPSESSID=f929b7c8ae161a230259680739bae416; PHPSESSID=f8a27ef43db384bf97296fb7a686ee7e; PrestaShop-27f9247932d2d251161dd46a8edb06f0=def50200dc1d7264a44c75389a32b20f513b1568625eee8cc788865e4f44fc8678cfc64a8e274566e7d4350d0a7c282985d4b5ffd5195fef3784e436fc00276b79c37de96af856726b0197425cfd028fde8ac6a6b1253c50b49b74c96abb7ec25a42d005e8cef215ace12fe36e121855c726a97f97b5e6cb690d0923a3909d09b7f828b5460ad14b8012bc5db9b92d3ef4a0be2dda98e4ceaed8eda94174519f204a7bbd6ac4309129e959933cfd61067d136eb74fd8fb200c8a540463a2be43e57091fe6e5382e9ba3f47c3d4ce69133ae356f168; PrestaShop-ecabedf8ab0348284b0a6ec8a573ce9a=def50200df637aa710bf93b67e908d6ccad4f8440367e5650b45c9d6b7cc8466214be0f139893eddd85e22a0355d6552228ec63e307ebe89874f20b4f9a7b486cb762ead1c241789d5dc4fc057c80e457a6b104bb1dc6efff7529e1d001e7599fda2d2371d6624ae17f9d6df5bdd683b2c91041911a965c557313869e6fea00387fe5b621252c20a86d91ef6ce0a3dd7eeed809f3441a0d233c5800fd5c252ef6202973728b621b46b1868c8afb4babaeda9fc9be949f473252e6afbcea8092a24b739e3e63c1db64ca548d3d57a405e3beb3998526e2b8a32d87e12f292dd3a6e3b518ec304b66d752e13b8572f20170e0ed61e05a993e0464ef779739b033a9b557747c6f09d8f6ab0628ab134f922e28f2650de6adc5f85a3c9572c16e33438ca64a4915004752e86d99e6afc238a9802299ef717708edf37e5c7efd546a92179d92e5c01c1b19c4d908f54d98cb1b7d456885d26a0ae919980809ca917ffa51cfa30a9b9c2a3259f869b9fdfbf866961bd416e76df9fd694eb6e812bf601971b9b4125a938be010c898eb93b5dd2744480f018eafc8c07d20c48a06e851f8cbee5df239e5f081ec5f979a48f9a722347d8098bbdb55336a4a15e12c6b5d258523a6aaf2e30d77f6f1803871b4b59f40d59d67669b49dbcdb325b0f9b7dab058a" HTTP_FILE_SIZES "" HTTP_HOST "boutique.xxxxxxxxxxx.com" HTTP_MOD_REWRITE "On" HTTP_ORIGIN "https://boutique.xxxxxxxxxxxxx.com" HTTP_REFERER "https://boutique.xxxxxx.com/adminxxxxxxxx798eeavuu/index.php/sell/orders/new?_token=pb-G8ZC3RVh9lWXuXy6nMmhfpeoMLym2xrMYh8LKok4" HTTP_REMOTE_IP "00.000.000.000" HTTP_SEC_FETCH_DEST "empty" HTTP_SEC_FETCH_MODE "cors" HTTP_SEC_FETCH_SITE "same-origin" HTTP_USER_AGENT "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0" HTTP_X_FORWARDED_FOR "00.000.000.000" HTTP_X_FORWARDED_PROTO "https" HTTP_X_OVHREQUEST_ID "xxxxxxxxxxxxxxxxxxxxxxxxxx" HTTP_X_PREDICTOR "1" HTTP_X_REQUESTED_WITH "XMLHttpRequest" PATH_INFO "/sell/orders/carts/14710/products" PATH_TRANSLATED "redirect:/index.php/orders/carts/14710/products" PHP_SELF "/adminwxxxxxxx/index.php/sell/orders/carts/14710/products" QUERY_STRING "_token=pb-xxxxxxxxxxxxx" REMOTE_ADDR "00.000.000.00" REMOTE_PORT "43182" REQUEST_METHOD "POST" REQUEST_TIME 1708338367 REQUEST_TIME_FLOAT 1708338367.0529 REQUEST_URI "/adminxxxxxxxxxxxx/index.php/sell/orders/carts/14710/products?_token=pb-xxxxxxxxxxxxxxxx" SCRIPT_FILENAME "/xxxxxx/xxxxxxxxxxx/xxxxxxxxx/xxxxxxxxxxx_boutique/adminxxxxxxxxxx/index.php" SCRIPT_NAME "/adminxxxxxxxxxxxx/index.php" SCRIPT_URI "https://boutique.xxxxxxxxxxxxx.com:443/adminxxxxxxxxxx/index.php/sell/orders/carts/14710/products" SCRIPT_URL "/xxxxxxxxxx/index.php/sell/orders/carts/14710/products" SERVER_ADDR "00.0.00.00" SERVER_ADMIN "[email protected]" SERVER_NAME "boutique.xxxxxxx.com" SERVER_PORT "443" SERVER_PROTOCOL "HTTP/1.1" SERVER_SIGNATURE "" SERVER_SOFTWARE "Apache" UNIQUE_ID "xxxxxxxxxxxxxxxxxxxxxxxxx" USER "xxxxxx" argc 1 argv Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now