Page 1 of 1
Zeroing my Product Viewed number
Posted: Fri Sep 11, 2009 2:27 am
by PurpleHaze
How can I reset my Product Viewed number so I my start at zero? Thanks
Re: Zeroing my Product Viewed number
Posted: Fri Sep 11, 2009 2:39 am
by dbstr
Log onto phpMyAdmin, and run this query:
Remember to change
op_product to whatever your product table is called.
Re: Zeroing my Product Viewed number
Posted: Fri Sep 11, 2009 5:23 am
by PurpleHaze
Sorry, I don't understand where to go to zero products viewed.
Re: Zeroing my Product Viewed number
Posted: Fri Sep 11, 2009 5:25 am
by Qphoria
run that above command via phpmyadmin
Re: Zeroing my Product Viewed number
Posted: Fri Sep 11, 2009 7:16 am
by comiclair
Thanks for showing how to do that.
Re: Zeroing my Product Viewed number
Posted: Fri Sep 11, 2009 7:22 am
by PurpleHaze
Sorry, I'm new to this. How do I get to phpMyAdmin?
Re: Zeroing my Product Viewed number
Posted: Fri Sep 11, 2009 9:17 am
by dbstr
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…
Re: Zeroing my Product Viewed number
Posted: Fri Sep 11, 2009 9:34 pm
by PurpleHaze
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.
Re: Zeroing my Product Viewed number
Posted: Fri Sep 11, 2009 9:52 pm
by Qphoria
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.
Re: Zeroing my Product Viewed number
Posted: Fri Sep 11, 2009 11:59 pm
by PurpleHaze
Thank You. Hope you have a good day.
Re: Zeroing my Product Viewed number
Posted: Thu Nov 19, 2009 12:10 am
by jc-piazza
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?
Re: Zeroing my Product Viewed number
Posted: Thu Nov 19, 2009 12:28 am
by Qphoria
just the line
Re: Zeroing my Product Viewed number
Posted: Sat Apr 25, 2015 4:21 am
by mark4785
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?