Completed

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->add();

$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);

$cart->update();

//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 1.7.0.2 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, php, css, html, shopping carts, prestashop, ecommerce development, 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

Tentang Majikan:
( 2 ulasan ) PESARO, Italy

ID Projek: #16349090

Dianugerahkan kepada:

protovosolutions

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

€34 EUR dalam 2 hari
(46 Ulasan)
5.3

9 pekerja bebas membida secara purata €36 untuk pekerjaan ini

identityself

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: [login to view URL] [Prestashop] [login to view URL] [ Lagi

€55 EUR dalam sehari
(178 Ulasan)
7.4
mascotindia123

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
(235 Ulasan)
7.4
adicoman

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
(54 Ulasan)
5.8
AppSquads

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)
5.2
al2018

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
(14 Ulasan)
4.3
mayankinnovative

A proposal has not yet been provided

€34 EUR dalam sehari
(51 Ulasan)
3.6
BeyoutiF00L

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
(4 Ulasan)
1.5
€23 EUR dalam sehari
(0 Ulasan)
0.0