X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Product views and amount of downloads (https://forum.x-cart.com/showthread.php?t=42622)

pixelposh 09-26-2008 07:44 AM

Product views and amount of downloads
 
Hi All, Hope everybody is good and your stores are booming with business

Wanted to check for some advice or if anyone knows of some mods for the following.

I am building an xcart store that will sell just digital downloads,I want to show the customer in the product details pages how manny times a product has been viewed or purchased.

your help and thoughts would be great.

Thanks in advance.
Barry

Yurij 09-26-2008 07:50 AM

Re: Product views and amount of downloads
 
The table "xcart_product" have next fields:
- view_stats;
- sales_stats.

You can use this.

pixelposh 09-26-2008 08:29 AM

Re: Product views and amount of downloads
 
Hi Yurij

Thanks for the response

Would I have to create something in the php file and add some smarty code to pull in/update the values?

or can I just pull exisiting data from these tables?

Lingerieblowout 09-26-2008 08:48 AM

Re: Product views and amount of downloads
 
You can used these just the way there are in product.tpl

Viewed:{$product.views_stats}

Sold:{$product.sales_stats}

of course you can change "Viewed" or "Sold" to whatever you want

pixelposh 09-26-2008 11:07 AM

Re: Product views and amount of downloads
 
Great Stuff, Thanks

Il give those a go ;)

Lingerieblowout 09-26-2008 12:04 PM

Re: Product views and amount of downloads
 
Let me you if that doesnt work I already tested on the latest release.

pixelposh 09-27-2008 12:24 AM

Re: Product views and amount of downloads
 
Lingerieblowout, Thank you so much, That works perfect and so easy ;)

Lingerieblowout 09-27-2008 06:56 AM

Re: Product views and amount of downloads
 
Anytime


All times are GMT -8. The time now is 06:56 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.