Make Basic Cart more basic for Drupal 10

Created on 4 December 2024, 4 months ago

Problem/Motivation

To install basic cart for drupal 10 you are faced with this issue.
Issue with easy_install module on fresh installation on Drupal 10 πŸ› Issue with easy_install module on fresh installation on Drupal 10 Active

An easy fix is to remove easy install as a dependency in the module info file.

Some other fields are also not really required, like address, city, zipcode and phone.
You can create your own order fields if you need them.
You can use phone field (in core) and the address β†’ module.
If you want users to place their location on a map you can add geolocation field β†’

Proposed resolution

Remove the following from the config > install folder.
field.field.node.basic_cart_order.basic_cart_address.yml
field.field.node.basic_cart_order.basic_cart_city.yml
field.field.node.basic_cart_order.basic_cart_phone.yml
field.field.node.basic_cart_order.basic_cart_zipcode.yml

field.storage.node.basic_cart_address.yml
field.storage.node.basic_cart_city.yml
field.storage.node.basic_cart_phone.yml
field.storage.node.basic_cart_zipcode.yml

Update the following yml files with new configurations.

core.entity_form_display.node.basic_cart_order.default.yml

core.entity_view_display.node.basic_cart_order.default.yml
core.entity_view_display.node.basic_cart_order.teaser.yml

Remaining tasks

Enable the module to use tokens from the order node to be used in the email template

User interface changes

There will be less fields available on a fresh install and only the basic fields needed to make the cart work will be available.

✨ Feature request
Status

Active

Version

7.0

Component

Code

Created by

πŸ‡ΏπŸ‡¦South Africa vlooi vlerke

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024