Mookie_Jam Posted December 5, 2005 Posted December 5, 2005 Hi, once installed this simple contribution http://www.oscommerce.com/community/contributions,3703 I found out that the button of "Buy now" desappears in ALL the products, the ones which price is 0 and in all the rest... It seems to be a recent version, so I do not understand.. Have anybody solved this?? :( Quote
boxtel Posted December 6, 2005 Posted December 6, 2005 Hi, once installed this simple contribution http://www.oscommerce.com/community/contributions,3703 I found out that the button of "Buy now" desappears in ALL the products, the ones which price is 0 and in all the rest... It seems to be a recent version, so I do not understand.. Have anybody solved this?? :( as far as I can tell, that contrib is for the product_info page, so what do you mean by "all the products" ? Quote Treasurer MFC
Mookie_Jam Posted December 6, 2005 Author Posted December 6, 2005 The button "buy now" dissappears for any product you see. Anyway it price is over 0. Alos, the 2 actualizations of the contribution, are for the product_list and the index.php so the buy now button doesn't appear on them.. ;) Quote
boxtel Posted December 6, 2005 Posted December 6, 2005 The button "buy now" dissappears for any product you see. Anyway it price is over 0. Alos, the 2 actualizations of the contribution, are for the product_list and the index.php so the buy now button doesn't appear on them.. ;) you are actually selecting the "products_quantity" field in your queries ? Quote Treasurer MFC
Mookie_Jam Posted December 6, 2005 Author Posted December 6, 2005 you are actually selecting the "products_quantity" field in your queries ? I am not sure what you mean... :blush: I just follow the instalation steps.. (very easy!) Installation Notes:In product_info.php <((>--Find line 213 in a clean install--<))> <?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?> <((>--Replace with--<))> <?php //start no button if quantity 0 if ( $product_info['products_quantity'] > 0 ) { echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); } else { } //end no button if quantity 0 ?> Thats all. Quote
boxtel Posted December 6, 2005 Posted December 6, 2005 I am not sure what you mean... :blush: I just follow the instalation steps.. (very easy!) yes, very easy. but if your queries do not select products_quantity from the database, just following the instructions is also very wrong. Quote Treasurer MFC
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.