Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted
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" ?

Treasurer MFC

Posted

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.. ;)

Posted
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 ?

Treasurer MFC

Posted
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.

Posted
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.

Treasurer MFC

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...