Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / My Account - complete listing of items purchased

My Account - complete listing of items purchased

Locked

Views: 1,778

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
16 Oct 2007, 8:22 PM
#1
ksoup avatar

ksoup

Zen Follower

Join Date:
Jan 2004
Posts:
413
Plugin Contributions:
1

My Account - complete listing of items purchased

This doesn't need to be fancy.. it can even be like the quick reorder box...
but it would be cool if a customer could see a complete listing in a sidebox of all the items they have purchased with the store.

Thoughts?

16 Oct 2007, 8:39 PM
#2
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: My Account - complete listing of items purchased

Zen already has that inplaced, infact if a customer comes back to the site and they have order something they can view that order.
I think you can find that info in the admin>tools>Column Boxes Controller
then look for sideboxes/shopping_cart.php and turn it on

nomad

16 Oct 2007, 11:34 PM
#3
ksoup avatar

ksoup

Zen Follower

Join Date:
Jan 2004
Posts:
413
Plugin Contributions:
1

Re: My Account - complete listing of items purchased

Hi Nomad, We already have that one on (it is for the current order only) ...
What would be nice is one that lists all purchases (like a history) that the customer has made. :)

Know of anything that would do that?

nomadrw:

Zen already has that inplaced, infact if a customer comes back to the site and they have order something they can view that order.
I think you can find that info in the admin>tools>Column Boxes Controller
then look for sideboxes/shopping_cart.php and turn it on

nomad

17 Oct 2007, 12:26 AM
#4
nomadrw avatar

nomadrw

Zen Follower

Join Date:
Sep 2007
Location:
Somewhere in Southern Cal
Posts:
331
Plugin Contributions:
0

Re: My Account - complete listing of items purchased

Ksoup:
The close you can get is the re-order side bar which list the product only, or the Account information which gives them a history on what they purchaced, date, order id.
Something to think about is how would you get all that info onto the width of the side bar, unless you just had one side bar.
The best think I think would tell the customer to click on the Account information for a history of their purchases.

nomad
PS Just my thoughts. If you know php I'm sure there is away of doing this.
Good luck....

17 Oct 2007, 3:06 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: My Account - complete listing of items purchased

ksoup:

Hi Nomad, We already have that one on (it is for the current order only) ...
What would be nice is one that lists all purchases (like a history) that the customer has made.

Um ... the quick-re-order sidebox isn't limited to the current order. It's based on all orders ever placed by the currently-logged-in customer.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 Oct 2007, 4:20 AM
#6
ksoup avatar

ksoup

Zen Follower

Join Date:
Jan 2004
Posts:
413
Plugin Contributions:
1

Re: My Account - complete listing of items purchased

Dr Byte, it doesn't show everything... is there a way to change it to list all purchases... it is exactly what i am looking for... but it isnt listing everything. :)

17 Oct 2007, 5:07 AM
#7
ksoup avatar

ksoup

Zen Follower

Join Date:
Jan 2004
Posts:
413
Plugin Contributions:
1

Re: My Account - complete listing of items purchased

ok... found the settings in admin... but they are not named the same...

Recent purchases box in admin > max values allows you to set the maximum amount of items to show...
but the side box is order_history.

When i run a query of all products ordered, it doesn't match up to the amount listed in that box.

I did a compare and it doesnt include products that are off (which is awesome) but it doesnt include all products purchased that are on...

why could that be?

17 Oct 2007, 6:10 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: My Account - complete listing of items purchased

The only reasons for differences would be:
a) you're comparing against all customers or somehow have the wrong query;
or
b) you've got the max limit set too low in the admin

The query it uses is this:

                   select distinct op.products_id
                   from orders o, orders_products op, products p
                   where o.customers_id = [I]<insert_customer_number>[/I]
                   and o.orders_id = op.orders_id
                   and op.products_id = p.products_id
                   and p.products_status = '1'
                   group by products_id
                   order by o.date_purchased desc
                   limit [I]<insert max value from admin>[/I]

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.