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)
-   -   additional fields in "bestsellers" and "recently viewed" modules (https://forum.x-cart.com/showthread.php?t=58803)

King Django 04-07-2011 01:41 PM

additional fields in "bestsellers" and "recently viewed" modules
 
Hi friends!

We are in the process of customizing version 4.4.2 to eventually replace our version 3.4.8

We have added custom fields to the products table without using the extra fields feature.

I am wondering if anyone has any ideas about how to display such fields in bestseller and recently viewed modules.

Thanks much!

cflsystems 04-07-2011 07:03 PM

Re: additional fields in "bestsellers" and "recently viewed" modules
 
If they are in the products table most likely they will be included in products array by default. Just call them by their name - $product.field

King Django 04-09-2011 06:17 PM

Re: additional fields in "bestsellers" and "recently viewed" modules
 
If only it were that simple.
The bestsellers are in an array called $b, if I remember correctly.
We just haven't yet figured out where this array is created.

cflsystems 04-09-2011 07:11 PM

Re: additional fields in "bestsellers" and "recently viewed" modules
 
I seriously doubt there is array called $b in stock XC.

cherie 04-12-2011 01:10 PM

Re: additional fields in "bestsellers" and "recently viewed" modules
 
Looks like the foreach item in menu_bestsellers.tpl is $b but the array (from=) is $bestsellers. This is created in modules/Bestsellers/bestsellers.php.


All times are GMT -8. The time now is 10:25 PM.

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