Scoder: Custom PHP Conditions for 1C-Bitrix Cart Discounts
Payments are experiencing issues due to temporary restrictions in Russia. If your payment does not go through, please submit a support request.•Our support team is available 24/7 — we are always here to help with hosting and server issues.•We are now accepting requests for dedicated server rental and colocation services in our data center.•Reminder: we recommend enabling backups for additional data protection.•A new VPS/VDS lineup with NVMe storage and improved performance is now available.•Maintenance work on some servers has been completed. All services are operating normally.•
Payments are experiencing issues due to temporary restrictions in Russia. If your payment does not go through, please submit a support request.•Our support team is available 24/7 — we are always here to help with hosting and server issues.•We are now accepting requests for dedicated server rental and colocation services in our data center.•Reminder: we recommend enabling backups for additional data protection.•A new VPS/VDS lineup with NVMe storage and improved performance is now available.•Maintenance work on some servers has been completed. All services are operating normally.•
Аккаунт в General iT
Вход / Регистрация
Войдите или создайте аккаунт для управления услугами в панели.
Scoder: Arbitrary PHP condition for cart operation rules. Custom conditions in discounts
The Scoder module enables applying or disabling discounts in the shopping cart and checkout forms using arbitrary PHP conditions. Standard 1C-Bitrix tools allow limiting product participation in promotions by categories, properties, and other parameters, but their functionality is often insufficient for complex scenarios.
The Scoder module enables applying or disabling discounts in the shopping cart and checkout forms using arbitrary PHP conditions. Standard 1C-Bitrix tools allow limiting product participation in promotions by categories, properties, and other parameters, but their functionality is often insufficient for complex scenarios. This module extends the system capabilities by allowing custom conditions to be defined via PHP code.
The Scoder module extends the list of cart rule conditions by adding support for arbitrary PHP expressions. The condition value must be a boolean expression returning true or false.
This tool is designed for developers and requires configuration for specific tasks. It is not a ready-made solution for a narrow set of scenarios, but it enables the implementation of complex, non-standard marketing logic when used correctly.
How it works:
1. A standard cart rule is created.
2. Standard conditions and restrictions are specified if needed.
3. An arbitrary PHP expression is entered in the additional conditions field. It is recommended to encapsulate the logic in a separate function for easier algorithm description and to minimize errors. The function must return true or false.
Example function implementation in init.php:
----------------------------------------------
----------------------------------------------
The Scoder module allows setting arbitrary PHP conditions for cart operation rules, including custom conditions within discounts. To configure this, specify the name of your function in the PHP condition field; the example uses the __sc_check() function. The tool effectively addresses a wide range of tasks related to cart logic.
The Scoder module enables the creation of arbitrary PHP conditions for shopping cart rules, providing flexible discount configuration. It supports complex scenarios that are not available with standard tools.
Key capabilities include:
Applying different discount amounts for a single coupon based on the total cart value, item quantity, or the presence of specific products and their properties.
Flexible coupon usage management: limiting the number of times a coupon can be used by a single user without restricting other customers from using the same promo code.
Applying discounts or markups based on the selected pickup point in the order form.
Automatically selecting the most or least beneficial discount for the cart.
Disabling all discounts if any coupon is present in the cart.
Configuring individual discounts for each specific customer.
Providing discounts on products after completing a survey.
Restricting the number or type of discounts applied in the cart.
Accounting for dates, holidays, and other time-based factors when calculating discounts.
Advantages of the module:
Unique capabilities for customizing discount logic.
Comprehensive informational support, including documentation and thematic articles.
Direct technical support from developers without intermediary managers.
For the “Scoder: Arbitrary PHP condition for cart operation rules. Custom conditions in discounts” module, General iT can perform installation, configuration and a functional check in your project.
UPDATE HISTORY
What’s new
7 releases
1.0.7 (17.01.2024)Latest update
Added support for PHP condition functionality for the Buy More module
1.0.6 (31.01.2023)
Adjustments for PHP 8
1.0.5 (29.12.2022)
Adjustments for PHP 8
1.0.4 (30.11.2020)
Adjustments for working with the 'Online Store + CRM' edition
1.0.3 (05.06.2020)
Warning elimination
1.0.2 (05.01.2018)
Added support for English language (en)
1.0.1 (13.12.2017)
Added trial mode check
USER EXPERIENCE
Solution reviews
How does this solution work in a real project? Share your experience and help others choose.
Be the first to share your experience
There are no reviews of this solution on git.ru yet. Tell us what worked well and what could be improved.
✓
Verified purchaseAdd a key if you wish. A verified review gets a badge, priority placement and more rating weight.
↗
Open to every clientJust sign in to your account. A key is optional; all reviews are moderated.
ARA: Subscription Discount. Subscription Popup. Coupon for Subscription
A tool designed to encourage website visitors to subscribe to a newsletter. After a specified time interval, a modal window appears offering a discount coupon in exchange for an email address.
The 'Sections from Properties' module automatically generates information block sections based on element property values. It supports property types: string (S), list (L), directory (S:directory), element binding (E), and section binding (G).
This solution enables the creation of unique, SEO-friendly URLs.
Registration discount is available in the 'Start' edition.
This module allows offering discounts to new users and increasing visitor engagement through a registration pop-up window. When an account is created, the system automatically generates a coupon based on a predefined shopping cart rule. The generated code is sent to the email address or phone number provided during registration.
SDEK integration module for 1C-Bitrix.
SDEK is one of Russia's largest logistics companies, providing courier delivery and operating a network of pickup points.
The module connects the online store with the SDEK personal account, offering the following capabilities:
Providing customers with delivery options: courier, pickup point, or postmat.
The module automatically determines the visitor's location based on their IP address and offers city selection in a stylish popup window. It is available in all platform editions.
Key features include automatic location detection by IP address, domain, or website, along with automatic redirection to specific domains and subdomains, including external resources.
The ipol.mailorder module extends email templates to include information about order properties, delivery options, and selected payment types. Standard platform tools do not allow transmitting critical details such as the user-specified delivery address or chosen payment system in notifications.
The displayed price covers the solution itself. Platform licensing, installation and customisation are checked separately. If the page offers bundles, select the required option before submitting a request.
How do I check compatibility?
Compare the supported editions and solution version in the technical details with your project. Before installing on a live website, we recommend making a backup and checking the solution in a test environment.
How much does this solution’s renewal cost?
The current renewal price is 2,950 ₽. Before you order, a manager will confirm the renewal period and whether it applies to your licence.
Can you help with implementation?
We can help install the module, check its settings and verify how it works in your project. Compatibility with other customisations and the scope of work are assessed before we begin.
Your cookie choices
Necessary cookies support sign-in, your cart and security. Optional analytics helps improve the website and starts only with your permission.
Our metrika.git.ru system: public pages, a random identifier, device and interaction events. Form contents, account and payment pages are excluded. Raw events: up to 90 days. Operator: General IT Rus LLC, INN 2310208877.
Your browser requests no tracking: analytics is off.