Help with the Woocommerce code.
The logic of work:
If the user adds 2 goods to the basket - then for 2 added goods he receives a discount of -35g.If a user adds 3 goods to a basket, he receives a discount of -46g.For the next goods that he will add to the basket - a discount on each goes -46grn.What to do?This code works well if you add 1 product (volume).It should be done so that the next unit of this goods is counted as a separate good.Example: The user adds Rose1 in number 1, then adds another Rose2 in number 2 - and just Rose2 has to count as 2 separate goods, and give a discount according to the logic in the code.It should also be taken into account that if the user has added a Rose1 product in a number of 3, then you should divide this product into 3 goods, and give them a discount according to the logic in the code.Rose 1, Rose 2 is an invented name.The code that I have now and works properly I attached to the task.The price is offered, the space prices are not worth offering for it, as the code is ready, it is only necessary to subordinate it a little.–
Update: not attached to that code, now it is normal.
Applications 1
Current freelance projects in the category PHP
Integration of the "Where to Watch" block (Laravel / Livewire)It is necessary to implement the integration of an external streaming platform for a website about movies and series on Laravel / Livewire. What needs to be done: Implement the import of an external content catalog that is updated once a day. Match content by IMDb ID and/or TMDB… PHP, Web Programming ∙ 10 hours 51 minutes back ∙ 22 proposals |
Refinement of the existing project on Laravel (PHP)Need to refine an existing project on Laravel (PHP). The project includes a ready-made admin panel that has a builder inside it for creating pages through it with layout (html+css+js) using PHP code for data output. In the project, it is necessary to implement 2-3 pages based… Content Management Systems, PHP ∙ 14 hours 27 minutes back ∙ 30 proposals |
New store on Woocommerce
2314 USD
Looking for a developer to create an online store on Woocommerce. Project - a store for daily promotions, popular products in limited quantities. What is already available: layout of all pages (showcase, checkout, content pages, customer account), corporate identity, logo,… PHP, Web Programming ∙ 16 hours 48 minutes back ∙ 90 proposals |
Need to make improvements on the Modx Evolution CMS 3.1.7 site.
22 USD
The design refinement and layout of the website are being developed, and these works will need to be implemented on the site.Also, some adjustments need to be implemented on the site. HTML & CSS, PHP ∙ 20 hours 54 minutes back ∙ 23 proposals |
Implementation of a technical SEO audit on OpenCartGood day. Need to implement technical SEO fixes on the site softugo.com. The site is already developed but not fully launched yet. Platform: ocStore 3.0.2.0 / OpenCart + custom code. Hosting: Hostinger. Current PHP version: 7.3. (transition to PHP 8.2 is planned) A checklist… PHP, Web Programming ∙ 1 day 18 hours back ∙ 58 proposals |