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

Stopping free product showing up in Recommends list

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-02-2004, 04:55 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default Stopping free product showing up in Recommends list

I have some zero priced items (free products) that I have in a hidden category that are only made available on checkout. This works fine apart from the free products are turning up on the Recommends lists. Is there a way to block specific products from the Recommends lists?

Thanks

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
  #2  
Old 08-02-2004, 05:31 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

you could have a look at customer/recommends.php and edit as follows

find

Code:
$query_condition .= ")"; $query = "SELECT * FROM $sql_tbl[products] WHERE forsale='Y' AND avail>0".$query_condition; } else

adjust to

Code:
$query_condition .= ")"; $query = "SELECT * FROM $sql_tbl[products] WHERE forsale='Y' AND price>0 AND avail>0".$query_condition; } else
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 08-02-2004, 06:21 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

Thanks Shan,

Is the price meant to be called something else as I'm getting:

INVALID SQL: 1054 : Unknown column 'price' in 'where clause'

Just had a look at the xcart_products table and there is no price field as such (unless I'm blind!). All I can see is the list_price which is different to the "our price" value.

Thanks

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
  #4  
Old 08-02-2004, 06:25 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

Hi Dan,

yeh thats probably more like it.

i posted that on off the top of my head. give list_price a go
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 08-02-2004, 06:31 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

Thanks Shan,

list_price works so long as list price is 0.00 but I was hoping to have the list price of the figure it originally was (so the cutsomer can see it has a value!) and a price of 0.00 i.e. free. Whereabouts is the price stored then?

Thanks

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote
  #6  
Old 08-02-2004, 06:34 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

the original price is market price if Im not mistaken and list price is your price
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
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 09:40 AM.

   

 
X-Cart forums © 2001-2020