Review Code PHP for PrestaShop 1.7.x

Hi have a PHP Code to Create Cart and Order.

Work in PrestaShop 1.6 but not in 1.7

you can review this code for work in 1.7 version

This i the Code:

$cart = new Cart();

$cart->id_customer = Tools::getValue('cliente');

$cart->id_address_delivery = Tools::getValue('indirizzo_consegna');

$cart->id_address_invoice = Tools::getValue('indirizzo_fatturazione');

$cart->id_lang = $default_lang;

$cart->id_currency = $valuta;

$cart->id_carrier = $corriere;


$cart = new Cart($cart->id);

$idXfor = 0;

foreach($_POST["prodotto"] as $prodotto) {

$qta = $_POST["qta"][$idXfor];

//This code not work in 1.7

$cart->updateQty($qta, $prodotto, $id_product_attribute = null, $id_customization = false, $operator = 'up', $id_address_delivery = 0, $shop = null, $auto_add_cart_rule = true);


//End of code not work in 1.7

$idXfor = $idXfor+1;


$cart = new Cart($cart->id);

//This code not work in 1.7

$total = $cart->getOrderTotal(true, Cart::BOTH);

//End of code not work in 1.7

$customer = new Customer(Tools::getValue('cliente'));


Kemahiran: PHP, Prestashop

Lihat lagi: prestashop pdf invoice , VERINT Call Recording ( V 7.x,V9, V10, V11 v15.1,) AVAYA Call recording Solution,Voice Technical Designer Quality Monitoring,, prestashop 1.7, prestashop 1.7 upgrade, prestashop 1.6 1.7, prestashop 1.6 to 1.7, platform php mysql review code, show preview flash code php, flex chat source code php, job code php, invitation code php script, convert code php, unique code php, google conversion code php, forgot password code php, security code php, mail code php post check, video url embedd code php, convertir code php php, random alphanumeric code php online

Tentang Majikan:
( 2 ulasan ) PESARO, Italy

ID Projek: #16349090

Dianugerahkan kepada:


Hi, I've checked the project description and I'm sure we can handle the task. Prestashop is our expertise - [url removed, login to view] and we've already helped our customers for their Prestashop related website & platforms. Lagi

€34 EUR dalam 2 hari
(40 Ulasan)

11 pekerja bebas membida secara purata €33 untuk pekerjaan ini


Hi, We are efficient in Prestashop site creation and customization. We can try to solve this issue now. Below are the Prestashop sites created by us: [url removed, login to view] [Prestashop] [url removed, login to view] [ Lagi

€55 EUR dalam sehari
(177 Ulasan)

Hello, I hope you all is well your side, I have WordPress, CMS ,and PHP backend skill. I'm ready to work on your project. I have gone through your project requirement and it is clear to me. I can do this work as p Lagi

€30 EUR dalam sehari
(227 Ulasan)

Hi, I am very interested to work on your project. I have 15+ years experience in Web Development using a large variety of programming languages, frameworks, database architecture, APIs, CRMs, ERPs, mobile develo Lagi

€28 EUR dalam 3 hari
(53 Ulasan)

Prestashop EXPERT HERE! Hello How are you? I am working with Prestashop since last 9 years. Can you please share more details of this project? What is website URL? I can surely help you. Thank you.

€87 EUR dalam 2 hari
(16 Ulasan)

Thanks for your job posting. I have read carefully looked at your project requirements and I can do best job. If you have desire to work with me, please contact me. Thanks.

€23 EUR dalam sehari
(12 Ulasan)

Hi, Can you come over to chat to discuss further in this regards as I would love to hear more about the idea/concept ? Allow me to discuss in details so that the detail features and functional flow gets clarified and w Lagi

€23 EUR dalam sehari
(4 Ulasan)

A proposal has not yet been provided

€34 EUR dalam sehari
(49 Ulasan)

Hi, Thanks for your post. I've carefully read your project proposal and clearly understand it. I believe i can be the best productive candidate for this requirement. (I believe that I can relieve your worries.) Lagi

€15 EUR dalam sehari
(2 Ulasan)
€23 EUR dalam sehari
(0 Ulasan)

BeYoutifool designs, are creative, unconventional, and impeccably unique. These designs give personality to your brand. The convergence of brilliance and simplicity, is the inception of your success

€8 EUR dalam sehari
(2 Ulasan)