Changes in prices in minishop2 depending on the chosen city
44 USDYou can change your location by selecting a city in the following window:
For cities set its rate of price:Moscow+0%St Petersburg+0%Vladimir+0%Ekaterinburg+5%Kaluga+0%Novosibirsk+10%Ufa+5%Rostov-on-Don+5%Krasnodar+5%Stavropol+5%Voronezh+0%Ulyanovsk+5%Kazan+5%Samara+5%Minsk+0%Almates+0%Costs for cities differ due to additional transport costs.By silence in minishop2 the prices are filled with 0% of the price, which is convenient, since.in the page template where the price is indicated you need to add the condition(basic price + city price percentage 0%, 5%, 10%) depending on the city determined/selected by the geolocation module.Important is!The standard functionality of the minishop2 basket is not used.Detailed how the "order" occurs.Admin part of the product:
How it looks on the page:
When you click on the "Order" button, the variation values are set in a line with the gap symbol divider (including price) and sent to the email.I see the solution of the task.When a person changes the city by his hands, the price exchange is performed through the JS code based on the selected city by the price identifier (without rebooting the page), example:
The 1118
After the subsequent opening of the pages, the price change is already through the Modx templator.You can only make one option (JS or templator) - discussed.On which pages you need to change prices depending on your chosen city:page of the rubric http://linktmp.com/3/UmqJNeS
Product page http://linktmp.com/3/ubkr75X
price section http://linktmp.com/3/pnlgXy0
Information about the CMS Modx Revo:
Кратко суть задачи. При заходе на сайт пользователя, модуль geolocation автоматически определяет город посетителя:
Человек может самостоятельно изменить локацию выбрав город, в следующем окне:
Для городов установлен свой процент наценки:
Москва | +0% |
Санкт-Петербург | +0% |
Владимир | +0% |
Екатеринбург | +5% |
Калуга | +0% |
Новосибирск | +10% |
Уфа | +5% |
Ростов-на-Дону | +5% |
Краснодар | +5% |
Ставрополь | +5% |
Воронеж | +0% |
Ульяновск | +5% |
Казань | +5% |
Самара | +5% |
Минск | +0% |
Алматы | +0% |
Цены для городов отличаются из-за дополнительных транспортных расходов.
По-умолчанию в minishop2 заполнены цены с 0% наценки, что удобно, т.к. в шаблоне страниц, где выводится цена необходимо добавить условие(базовая цена + процент наценки города 0%, 5%, 10%) в зависимости от определившегося/выбранного города модулем geolocation. ВАЖНО! Стандартный функционал корзины minishop2 не используется.
Подробно, как происходит "заказ".
При нажатии на кнопку "Заказать" значения вариаций складываются в строку с разделителем символа пробела(включая цену) и отправляется на емайл.
Как вижу решение задачи. Когда человек меняет город руками замена цен выполняется посредством JS кода на основе выбранного города по идентификатору у элемента цены(без перезагрузки страницы), пример:
<div id=price>1118</div>
При последующем открытии страниц подмена цены уже происходит посредством шаблонизатора Modx. Можно сделать только один вариант(JS или шаблонизатор) - обсуждаемо.
На каких страницах нужно подменять цены в зависимости от выбранного города:
- страница рубрики http://linktmp.com/3/UmqJNeS
- страница товара http://linktmp.com/3/ubkr75X
- раздел цены http://linktmp.com/3/pnlgXy0
Информация об установленной CMS Modx Revo:
Client's feedback on cooperation with freelancer
Changes in prices in minishop2 depending on the chosen cityThe task has been completed faster than the deadline. Adequate, loyal, maximum expertise in the matters of knowledge ModX Revo!
Profile deleted | Safe
Freelancer's feedback on cooperation with client
Changes in prices in minishop2 depending on the chosen cityВсе идеально. Четко, быстро, безупречно
Profile deleted | Safe
-
Оформление каталога должно быть в этом стиле:
https://onetimesecret.com/secret/d5uiumwefb4mrp1k42ac5ihigb52qod
Без фильтров и без функционала корзины.
-
Current freelance projects in the category Web programming
Development of functionality on the WP/Jobster websiteIt is necessary to add functionality to the site on WP https://bit.ly/3TrPwKt. There are 2 tasks: 1. It is necessary to make it possible to enter a unit of measurement (kg/hour/etc.) for custom price and display it on the frontend. Currently, when a seller selects the "Custom"… Web programming |
Exchange service
510 USD
There are working exchangers, it is necessary to rely on the example, make a cryptocurrency exchanger: Design and code can be taken completely from a working website, that is - make a copy. The exchange rate and other data for the exchange - what I could set manually. The… JavaScript, Web programming ∙ 9 proposals |
Create a 3D scene for integration on a websiteHello, I am involved in creating a space for mutual support and self-development. Your task will be: Create an optimized 3D scene based on the description from the first chapter of the story of the key character for subsequent integration into the website and write the logic… Web programming |
Module for Opencart 3 for uploading to Google Merchant.I need a module that exports products from Opencart in the correct format for Google Merchant Centre Version ocStore 3.0.3.8 Need to install and configure Web programming ∙ 6 proposals |
Design layout and write frontendGood day. It is necessary to design and write the frontend part of the application. Preferences for technologies used: SASS, sass (css) modules, TypeScript, React, webpack Link to Figma HTML and CSS, Web programming ∙ 12 proposals |