Post by ninogui » Fri Aug 19, 2011 8:35 pm

Hello

I see on the front end customer order history the total number of products for each order placed is not really the total number of products ordered but in fact the total number of different products ordered.

I would surely prefer it to show the in fact total number of products ordered

Has anyone wrote a line of code to swap / correct this ?

kindly thks

New member

Posts

Joined
Thu May 05, 2011 7:52 pm

Post by ninogui » Mon Aug 22, 2011 12:45 am

bump anyone please..

is this a bug and/or can it be easily corrected ?

New member

Posts

Joined
Thu May 05, 2011 7:52 pm

Post by ninogui » Mon Aug 22, 2011 9:53 pm

bump again

New member

Posts

Joined
Thu May 05, 2011 7:52 pm

Post by uksitebuilder » Mon Aug 22, 2011 9:57 pm

it is the total product lines, what you are after is the total sum of the quantities of all those products

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by ninogui » Mon Aug 22, 2011 10:02 pm

Precisely Simon

At least for me that one does make some sense, why anyone would care to know how many product lines are in the order ?
I´d rather have nothing
Of course I can take it out, that I can do myself, but I have no knowledge of php to go and get those variables
Maybe if someone cares to take a look into this it would probably be of value to all

New member

Posts

Joined
Thu May 05, 2011 7:52 pm

Post by uksitebuilder » Mon Aug 22, 2011 10:14 pm

It makes sense for me

Scenario:

Shop sells small widgets - you need a lot of these widgets sometimes, but other times only a few

Customer purchases:

5000 x widget(a)
50 x widget(b)
1 x widget(c)
1117 x widget(d)

Currently order history displays 4 products purchased

To me this makes more sense than showing:

6168 products purchased

---

if you would like to remove that line, then:

edit catalog/view/theme/default/template/account/order_list.tpl

find:

Code: Select all

      <div><b><?php echo $text_date_added; ?></b> <?php echo $order['date_added']; ?><br />
        <b><?php echo $text_products; ?></b> <?php echo $order['products']; ?></div>
replace with:

Code: Select all

      <div><b><?php echo $text_date_added; ?></b> <?php echo $order['date_added']; ?></div>

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by ninogui » Tue Aug 23, 2011 1:00 am

I understand that Simon

well better still would probably be having both, like

´xx different products on a total of yy products´

New member

Posts

Joined
Thu May 05, 2011 7:52 pm
Who is online

Users browsing this forum: Bing [Bot], Semrush [Bot] and 18 guests