Write a little bit of code for my custom magento2 system

Kapalı İlan edilme: 3 yıl önce Teslim sırasında ödenir
Kapalı Teslim sırasında ödenir

OK so I am a php developer but I am struggling with a simple thing in magento2 I have written a custom php app for my client and I am struggling to add some code to add a product to the cart with a custom option .

Here is the code so you can see :

############ ADD SIMPLE PRODUCT NO OPTIONS

if ($_GET['process'] == 'add') {

$productId = $_GET['PID'];

$product = $objectManager->create('\Magento\Catalog\Model\Product')->load($productId);

$quoteItem = $quote->addProduct($product);

$quoteItem->setQty($_GET['QTY']);

//// your job is to add some code here to add the product to the quote with selected options by id !!!!!

if($CP>0) {

$quoteItem->setIsSuperMode(true);

$quoteItem->setCustomPrice($CP);

$quoteItem->setPrice($CP);

$quoteItem->setFinalPrice($CP);

$quoteItem->setData('price', $CP);

$quoteItem->setOriginalCustomPrice($CP);

}

$quote->collectTotals();

$quote->save();

}

Once I find someone I will give them full access to the system to work on it. If you are any good I will for sure be able to give you more work too

Magento Linux PHP Magento 2

Proje NO: #28959624

Proje hakkında

25 teklif Uzak proje Aktif 3 yıl önce

Bu iş için 25 freelancer ortalamada £131 teklif veriyor

ambientinfotech

Dear Client, Greetings!! We have read your project description "a little bit of code for my custom magento2 system " We are familier and work on all the versions of Magento and currently updated with Magento 2.3.5 Daha Fazla

£135 GBP in 3 gün içinde
(341 Değerlendirme)
7.6
wmkosc

I have been magento developer for over 7 years and have much experience in this field. I read your requirement and really interested, I can start working immediately, I am sure I can finish it fast and make it work per Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(168 Değerlendirme)
6.9
magesuperltd

Hello, Is this for promo or fixed for specific products? I have over 9 years of experience in eCommerce Development and over 6 years in Magento. Looking forward to hearing from you. Sincerely, Ibrahim Saleh MageSup Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(70 Değerlendirme)
6.7
crystalhitesh

Hey there, I have read your project description carefully as per that you need custom coding for your ongoing website. As a Magento 2 Designer/Developer are expert at offering:- => * Web Design & Development, => * Daha Fazla

£200 GBP in 3 gün içinde
(147 Değerlendirme)
6.7
inviSystems

Dear Client, I have understood your entire requirement and I will do the code for your product adding page. I have experience with personal scripts in PHP, JS, and CSS. I have completed around 20+ projects of personal Daha Fazla

£120 GBP in 4 gün içinde
(26 Değerlendirme)
5.6
elregresodejosec

Hello. I am a Magento expert I can help you as well I'll provide you good result Please contact me best regards Jose

£200 GBP in 7 gün içinde
(6 Değerlendirme)
3.8
itSoftProjects

Hi, I have read your requirement and i can do it. I have more than 5 years of experience in Magento and i did many customization. If you would like to work with me then we will discuss further on chat. Thank you.

£200 GBP in 5 gün içinde
(11 Değerlendirme)
3.9
ExpertWebCoder1

Hello Sir, Magento Expert is here. * I'm Magento Expert & I can surely make changes & add code to add the product to the cart. * Can you please share your site URL? * I have 4+ Years of experience in Magento & I can s Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(12 Değerlendirme)
3.3
mzdesmag

hi, I have read the details of the project. I have completed many simple and complex projects with Visual Studio and C++, some linux-things too, I also do JAVA tasks on eclipse and netbeans. I have the knowledge of how Daha Fazla

£135 GBP in 7 gün içinde
(1 Yorum)
3.0
HoangKenny1994

3 years ++ in Magento. I can do anything in Magento in the shortest time. Please just bid me. thank you

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(2 Değerlendirme)
2.2
m2developer

Dear Client, I'm a Senior Magento developer. I have 5+ years of successful experience in Magento 2 e-Commerce. I have developed a wide range of Magento e-Commerce websites using Magento, PHP, HTML, CSS, jQuery and MyS Daha Fazla

£111 GBP in 3 gün içinde
(2 Değerlendirme)
0.9
softwaremanager

I am software project manager and I will develop your task in lowest rates so feel free to contact me . your satisfaction is guaranteed

£222 GBP in 21 gün içinde
(0 Değerlendirme)
0.0
nhthaison

Hi client, Maybe I just joined Freelancer.com but I'm not an amateur with the Magento 2 platform. I'm a PHP developer with 3 years+ of experience on Magento 2, especially an Adobe Certified Professional—Magento Commer Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% GBP
(0 Değerlendirme)
0.0