hardknock Posted August 8, 2010 Posted August 8, 2010 Hi all, I was searching the site but I was unable to find an answer to this question. Now, it may be possible that this question has been answer; however, through my attempts, I have not been able to find it. I am at a stand still and a serious dilemma. Right now, I have busted my brain coding a site that contains around 1700 products. I really need to launch the site but my issue is that if i launch the site, i am going to have about 800 products that are priced at $0.00. I have tested it and it will allow a person to checkout with a $0.00 priced product (at least it will get to the final stage and ask user to click confirm payment, not sure if it will actually send) Some solutions that I have thought about are not practical: 1. Turn off "display product on site"(this is not efficient since I would have to turn off each product individually, that would take 4 weeks or more with 800 more products to go) 2. I tried to just remove manufacturer from drop down list, but my search function is pretty good so a person can search for manufac by name and still pull up product, some of which that have yet to be priced. My main purpose is to price about 100-200 products (in progress now), get the site up and running and continue to price products each day while the site is running live. I do not want the site to sit idle for another 4-6 weeks while I price each product or turn off the products that I do not want to display at this time because the site has been sitting idle for about 19 weeks while the final coding was finished. Is there any contrib or code that I can add that will block a person's attempt to buy a $0.00 priced product? This way, I can safely run the site live, and price products and allow honest people to buy without worrying that someone will try and buy a product that I have yet to price, for $0.00. Any intuition into this matter would be GREATLY appreciated. Thank you.
Guest Posted August 8, 2010 Posted August 8, 2010 Andre, You could use this to hide prices if the price is $0.00 and some other snippets of this code will dis allow the customer from adding to cart if it is $0.00 http://addons.oscommerce.com/info/4085 Chris
♥FWR Media Posted August 8, 2010 Posted August 8, 2010 Hi all, I was searching the site but I was unable to find an answer to this question. Now, it may be possible that this question has been answer; however, through my attempts, I have not been able to find it. I am at a stand still and a serious dilemma. Right now, I have busted my brain coding a site that contains around 1700 products. I really need to launch the site but my issue is that if i launch the site, i am going to have about 800 products that are priced at $0.00. I have tested it and it will allow a person to checkout with a $0.00 priced product (at least it will get to the final stage and ask user to click confirm payment, not sure if it will actually send) Some solutions that I have thought about are not practical: 1. Turn off "display product on site"(this is not efficient since I would have to turn off each product individually, that would take 4 weeks or more with 800 more products to go) 2. I tried to just remove manufacturer from drop down list, but my search function is pretty good so a person can search for manufac by name and still pull up product, some of which that have yet to be priced. My main purpose is to price about 100-200 products (in progress now), get the site up and running and continue to price products each day while the site is running live. I do not want the site to sit idle for another 4-6 weeks while I price each product or turn off the products that I do not want to display at this time because the site has been sitting idle for about 19 weeks while the final coding was finished. Is there any contrib or code that I can add that will block a person's attempt to buy a $0.00 priced product? This way, I can safely run the site live, and price products and allow honest people to buy without worrying that someone will try and buy a product that I have yet to price, for $0.00. Any intuition into this matter would be GREATLY appreciated. Thank you. Only took a quick look but try the following ( AFTER backing up the two files ) catalog/includes/modules/product_listing.php Find .. case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; break; replace with case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; if ( $listing['products_price'] < 1 ) { $lc_text = '<div>Unavailable</div>'; break; } $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; break; catalog/product_info.php Find .. <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> Replace with .. <?php if ( $product_info['products_price'] > 0 ): ?> <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> <?php endif; ?> Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
hardknock Posted August 8, 2010 Author Posted August 8, 2010 Thanks guys, I am going to try a each suggestion and hopefully it works out. Thanks!
hardknock Posted August 8, 2010 Author Posted August 8, 2010 For some reason, Chris, the first option actually took the whole site down. I am not sure because I cannot see why it would cause the index.php page to no display. I am on to the 2nd option. Thanks
hardknock Posted August 10, 2010 Author Posted August 10, 2010 Andre, You could use this to hide prices if the price is $0.00 and some other snippets of this code will dis allow the customer from adding to cart if it is $0.00 http://addons.oscommerce.com/info/4085 Chris I tweaked this and changed it to "email for price" but the disallowing of the "add to cart", I have yet to figure out the coding for that. So, now, all prices < 0.01 have an email for price where the price would normally be but I have yet to figure out the appropriate place to code for not allowing the add to cart button to display for price < 0.01
♥FWR Media Posted August 10, 2010 Posted August 10, 2010 I tweaked this and changed it to "email for price" but the disallowing of the "add to cart", I have yet to figure out the coding for that. So, now, all prices < 0.01 have an email for price where the price would normally be but I have yet to figure out the appropriate place to code for not allowing the add to cart button to display for price < 0.01 Is that not the code I wrote? Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
hardknock Posted August 11, 2010 Author Posted August 11, 2010 Is that not the code I wrote? I'll have to go back and place it in there again because when I did, I remember some issues. However, I have been tweaking around 17 different codes with multiple files (listing, new, reviews, etc) and I cannot remember exactly what your code did or may have not done. I've been at it for 2 days now, 8 hours daily and I have forgotten specifically. I'll let you know, thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.