Problem/Motivation

I believe the /cart view needs some adjustmentes:

- Space between the currency code and the number
- Extra "Price" label in the "Item" column
- A small thumbnail of the product being purchased would be nice
- Centering the "Total" column to the right edge of the form

Cart

Steps to reproduce

Purcharse some items and go to the /cart

Proposed resolution

Apply theming/css/config changes as needed

Remaining tasks

N/A

User interface changes

Mentioned belov

API changes

N/A

Data model changes

N/A

CommentFileSizeAuthor
#2 3527987_cart.png68.41 KBdanrod

Issue fork sshop-3527987

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

danrod created an issue. See original summary.

danrod’s picture

Issue summary: View changes
StatusFileSize
new68.41 KB
kul.pratap’s picture

Assigned: Unassigned » kul.pratap

Working on it.

danrod’s picture

Any luck with this @kul.pratap ? Would you like some help?

danrod’s picture

Assigned: kul.pratap » danrod
anweshas’s picture

Assigned: danrod » anweshas

Hi @danrod, I can pick this issue up.

anweshas’s picture

Assigned: anweshas » Unassigned

While working on the first and last points of the requirement (adding space between the currency code and the number, and aligning the "Total" column to the right), I found that both can be addressed by modifying the existing commerce_cart_form View.

However, this View is not part of the sshop module configuration. It is provided by the Commerce module (specifically its Cart submodule). This means:

  • Any changes made directly to this View will be stored in the Commerce module's config, not in the sshop module.
  • As a result, these adjustments wouldn’t be tracked or exported as part of the sshop configuration.
  • Maintaining them inside sshop would require either overriding the View in code or providing a config override in the module.

We’ll need to decide whether to:

  • Implement these adjustments via a View override in sshop, or
  • Handle them via theme/template/JS changes so they live entirely within sshop and avoid touching the Commerce config.
danrod’s picture

Thanks @anweshas you are right, the cart is fine as it is now and will be up to the frontend developer to make the changes as desired.

I'll move it as "Closed (works as designed)"

Thanks for your input.

danrod’s picture

Status: Active » Closed (works as designed)