Hello Everyone.
(ok, ok, no more Drupal 7-centric posts, despite it being BCMS's foundation)

Trying my best to be a good boy, today I installed the latest version of Backdrop 1.x +Ubercart  1.x, or B1U1.

While doing so, I noticed an issue regarding the default Shopping Cart Page:

I believe that the column heading Total is incorrect and should in actuality be Cost

After all, is it not paradoxical to present a Total before a Subtotal?

Fixing this problem is not difficult in the GUI:

In:

/site/modules/ubercart/uc_cart/uc_cart.module

As:

function uc_cart_view_table($table) {
 $table['#columns'] = array(
   'remove' => array(
     'cell' => t('Remove'),
     'weight' => 0,
   ),
   'image' => array(
     'cell' => t('Products'),
     'weight' => 1,
   ),
   'desc' => array(
     'cell' => '',
     'weight' => 2,
   ),
   'qty' => array(
     'cell' => theme('uc_qty_label'),
     'weight' => 3,
   ),
   'total' => array(
     //'cell' => t('Total'), # 2024-10-18-GL:  Incorrectly labeled value
     'cell' => t('Cost'),
     'weight' => 4,
   ),
 );

Here's the result:

N.B.:  It is much more difficult to accomplish this change in code, as this semantic error has been replicated in the form of the name of both variables and form elements.

g.
----
 

Comments

The "Total" value changes depending on the "Quantity" of each row, so the "Total" header makes sense, displaying the total of each row. Nobody says this is the final “Total”. But, to each his own.

And changing the module code is not the best idea, it seems to me.

Hmmm....

In /cart/checkout (unchanged) the same value is listed as "Price".

Look for yourself if you don't believe me.

Cheers, 

g.
----