Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

additional fields in "bestsellers" and "recently viewed" modules

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-07-2011, 01:41 PM
 
King Django King Django is offline
 

Newbie
  
Join Date: Apr 2011
Posts: 2
 

Default 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!
__________________
X-Cart version 4.4.2
PHP 5.2.9
GD bundled (2.0.34 compatible)
MySQL server 5.0.92-community
Web server Apache/2.0.63
(Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9
Operation system Linux
Perl 5.008008
Net::SSLeay 1.36
CURL executable curl 7.15.5
OpenSSL executable OpenSSL
X-Cart version 4.4.2
PHP 5.2.9
MySQL server 5.0.92
Web server Apache/2.0.63
Perl 5.008008
Net::SSLeay 1.36
CURL executable curl 7.15.5
OpenSSL executable OpenSSL
Reply With Quote
  #2  
Old 04-07-2011, 07:03 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 04-09-2011, 06:17 PM
 
King Django King Django is offline
 

Newbie
  
Join Date: Apr 2011
Posts: 2
 

Default 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.
__________________
X-Cart version 4.4.2
PHP 5.2.9
GD bundled (2.0.34 compatible)
MySQL server 5.0.92-community
Web server Apache/2.0.63
(Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9
Operation system Linux
Perl 5.008008
Net::SSLeay 1.36
CURL executable curl 7.15.5
OpenSSL executable OpenSSL
X-Cart version 4.4.2
PHP 5.2.9
MySQL server 5.0.92
Web server Apache/2.0.63
Perl 5.008008
Net::SSLeay 1.36
CURL executable curl 7.15.5
OpenSSL executable OpenSSL
Reply With Quote
  #4  
Old 04-09-2011, 07:11 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: additional fields in "bestsellers" and "recently viewed" modules

I seriously doubt there is array called $b in stock XC.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 04-12-2011, 01:10 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default 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.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020