Post by PurpleHaze » Fri Sep 11, 2009 2:27 am

How can I reset my Product Viewed number so I my start at zero? Thanks

Newbie

Posts

Joined
Fri Sep 11, 2009 2:24 am

Post by dbstr » Fri Sep 11, 2009 2:39 am

Log onto phpMyAdmin, and run this query:

Code: Select all

UPDATE op_product SET viewed=0
Remember to change op_product to whatever your product table is called.

Request Reviews v1.0 released.


Active Member

Posts

Joined
Sun Aug 30, 2009 12:20 am

Post by PurpleHaze » Fri Sep 11, 2009 5:23 am

Sorry, I don't understand where to go to zero products viewed.

Newbie

Posts

Joined
Fri Sep 11, 2009 2:24 am

Post by Qphoria » Fri Sep 11, 2009 5:25 am

run that above command via phpmyadmin

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by comiclair » Fri Sep 11, 2009 7:16 am

Thanks for showing how to do that.

Active Member

Posts

Joined
Sun Jun 07, 2009 5:08 am
Location - Trenton, NJ

Post by PurpleHaze » Fri Sep 11, 2009 7:22 am

Sorry, I'm new to this. How do I get to phpMyAdmin?

Newbie

Posts

Joined
Fri Sep 11, 2009 2:24 am

Post by dbstr » Fri Sep 11, 2009 9:17 am

Good question. Did you install opencart yourself? The database info you entered during installation is most likely your friend in ths case.

You probably also got a mail from your hosting provider containing info about phpmyadmin…

Request Reviews v1.0 released.


Active Member

Posts

Joined
Sun Aug 30, 2009 12:20 am

Post by PurpleHaze » Fri Sep 11, 2009 9:34 pm

Thanks for the reply. I am not the one that setup my cart. I can get into the cart through ADMIN and make changes to my pricing, shipping, etc. But I don't know how to get to what your saying about loggin into phpMyAdmin. Or is that where I am already at? I don't know where to find or put in the code: select all . I'll try to get ahold of the person that setup my cart for me. All I really need to do is set my Product Viewed numbers to zero. Thank You for your help.

Newbie

Posts

Joined
Fri Sep 11, 2009 2:24 am

Post by Qphoria » Fri Sep 11, 2009 9:52 pm

1. save this text to a notepad file named "reset_viewed.sql"

Code: Select all

UPDATE `product` SET `viewed` = 0;
2. Goto OpenCart admin area under Configuration->Setting->Backup/Restore
3. upload the "reset_viewed.sql" file you just made

Do this everytime you want to reset the view list.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by PurpleHaze » Fri Sep 11, 2009 11:59 pm

Thank You. Hope you have a good day.

Newbie

Posts

Joined
Fri Sep 11, 2009 2:24 am

Post by jc-piazza » Thu Nov 19, 2009 12:10 am

this seems like a feature that would be simple to create as a "reset" button on that page in admin. I'm have a fear of blowing away my database my mistake.

Do I type on CODE: SELECT ALL or just that line of code?

New member

Posts

Joined
Mon Sep 07, 2009 3:23 am

Post by Qphoria » Thu Nov 19, 2009 12:28 am

just the line

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by mark4785 » Sat Apr 25, 2015 4:21 am

Hi,

Can I zero the products viewed data in the same way mentioned here for OC 1.4.9 or is there a different procedure?

Regards,
Mark.


Active Member

Posts

Joined
Fri Jan 30, 2015 3:01 am
Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 102 guests