0

My opencart version is 1.5.6

I want to show product views counter on product page.

For example "Viewed by 350 people"

I installed vQmod and dragged-dropped a xml like in here:

https://forum.opencart.com/viewtopic.php?f=131&t=103535

But it didn't work for 1.5.6

This is I need:

enter image description here

Can you help please?

Manos Nikolaidis
  • 21,608
  • 12
  • 74
  • 82
junior
  • 37
  • 2
  • 9

1 Answers1

0

As you said that you are using a different theme, i would believe this is your trouble.

What you need to do is edit the XML of the product view counter, change:

catalog/view/theme/default/template/product/product.tpl">
to

catalog/view/theme/YOUR THEME NAME/template/product/product.tpl">

To find out the exact name of your theme, go to catalog/view/theme

In there will show you the exact file name of your theme, use that name in the xml and the view counter should work.

Brian
  • 127
  • 11
  • I already tried this. I changed the path correctly. But didnt work. Also it doesnt work for default theme :( – junior Oct 23 '15 at 11:46
  • only way to see what is going on is to paste the xml of the product view counter and the product.tpl – Brian Oct 23 '15 at 11:50
  • I changed xml here: http://postimg.org/image/fg5lohl5h/ And i dont see like "Views: 465" in product page. – junior Oct 23 '15 at 12:15
  • can you post one of the product tpl, so that i can see that you have the code the xml is searching for. – Brian Oct 23 '15 at 12:22