osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Buy It Now

This is a discussion on Buy It Now within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Heya peeps! Was just wondering if there is any way to hide the Buy It Now Button in sold out ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-05-2005, 02:33 PM
New Member
 
Join Date: Nov 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
r_fulton13
Default Buy It Now

Heya peeps! Was just wondering if there is any way to hide the Buy It Now Button in sold out products and the products yet to come. I want my customers to be able to see the products but not be able to add them to the cart..... I realise that these items can't be purchased anyway but it would be so much neater if I could just get rid of the button on certain items.... Thanks guys
please don't leave me hanging!!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 01-26-2006, 06:48 PM
Active Member
 
Join Date: Oct 2004
Posts: 215
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 5
groggory
Default RE: Buy It Now

this would be fantastic. Any pointers, I'll look into the code if I just get a few tips.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 01-26-2006, 08:46 PM
Active Member
 
Join Date: Oct 2004
Posts: 215
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 5
groggory
Default RE: Buy It Now

the button for the 'add to cart' is:

Code:
<?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>
You'll need to do an if statement in php wherever that button is, I don't know the proper syntax, but it'd be something like:

if [quantity.product()>0){
<?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>
}

I don't know PHP very well, and don't feel like looking in my ref books for the code, but you get the idea.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 01-27-2006, 05:44 AM
New Member
 
Join Date: Nov 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
r_fulton13
Default Almost there...

Ok. Thats cool. I'm a little confused about where this text is changed though. Is it in product_listing or content? Tried doing an if statement beofre successfully but couldn't get this partuicular thing to work because I don't know where it needs to go. Thanks for your help though!!!

Rob
www.adoptafurby.com/catalog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 01-27-2006, 01:07 PM
Active Member
 
Join Date: Oct 2004
Posts: 215
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 5
groggory
Default RE: Almost there...

Where it is depends on what template you are using. For my case, it was in 'template/fallback/content/product_info.tpl.php ' But needless to say, it was in the template directory. I can't recommend dreamweaver 8 enough for doing this, it handles CSS wonderfully. Just make sure to sync your local site to your remote site and your life will be easy. It'll do a site-wide code check fast!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -8. The time now is 02:33 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax