CRE Loaded Community

Banner


Board index » CRE Loaded Support » CRE Loaded 6.2

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Setting Allow Checkout to "FALSE"
PostPosted: Sat Mar 20, 2010 6:42 pm 
Offline
CRE Newbie

Joined: Sat Mar 20, 2010 6:32 pm
Posts: 4
Hi everyone!!

I am new here, hope to learn from all the pros here...

I noticed that by setting allow checkout to "FALSE" causes the product_status to go "FALSE" when the stock remaining is less than 1. I managed to find the source code that does it, but there are 5 php files that have similar code. Which is the one I should be changing? Or do I change all of them?

Any help on this is welcomed!!

Thanks!!


Top
 Profile  
 
 Post subject: Re: Setting Allow Checkout to "FALSE"
PostPosted: Sat Mar 20, 2010 7:20 pm 
Offline
CRE Talented

Joined: Sun Nov 29, 2009 10:57 am
Posts: 348
Hi Winkat and welcome..

What is it you are trying to do by altering the code?

_________________
CSS Store - http://mdjl40.mdjl-demo.co.uk -Work in Progress
YMM Filter Lists - http://mdjl-demo.co.uk/6-4-1a -Pagnation/Filter Lists


Top
 Profile  
 
 Post subject: Re: Setting Allow Checkout to "FALSE"
PostPosted: Sat Mar 20, 2010 10:54 pm 
Offline
CRE Newbie

Joined: Sat Mar 20, 2010 6:32 pm
Posts: 4
Thanks for responding...

I am trying to change all instances of

if ( ($stock_left < 1) && (STOCK_ALLOW_CHECKOUT == 'false') ) {
tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '1' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'");

to

if ( ($stock_left < 1) && (STOCK_ALLOW_CHECKOUT == 'false') ) {
tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0' where products_id = '" . tep_get_prid($order->products[$i]['id']) . "'");

this is to allow those out to stock products to remain active. We load up a different page for those out of stock products.


Top
 Profile  
 
 Post subject: Re: Setting Allow Checkout to "FALSE"
PostPosted: Thu Apr 08, 2010 7:48 am 
Offline
CRE Legend
User avatar

Joined: Sun Nov 09, 2003 1:00 am
Posts: 7258
Location: Baconton, GA USA
Goto Admin - locate STOCK_ALLOW_CHECKOUT 's key presentation and switch it to TRUE.

Duh.

_________________
My CRE Loaded FAQ List
CRE Loaded Hosting


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Board index » CRE Loaded Support » CRE Loaded 6.2

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Wed Feb 08, 2012 7:49 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

Follow Us on Twitter

An error occurred

Oops, an error seems to have occurred. We're sorry for any inconvenience this might have caused. If the error persists, feel free to tell us about it.

CRE Loaded Community Chat hosted by CRE Loaded.

Join now


Chat about what's on your mind. More about public chats.


© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy