Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Помогите в программировании


Recommended Posts

Добрый день! Пожалуйста, помогите правильно написать кусок кода. Необходимо написать примерно следующее:


if stock_status мало

<?php echo $stock; ?>


тут будет прописано словами

Link to comment
Share on other sites

почему-то в моём случае высвечивается только test, даже если статус у другого товара 7:


<?php if ($stock_status_id != 9) { ?>
<?php } else { ?>
<?php echo $text_stock; ?><?php echo $stock; ?>
<?php } ?>

Edited by mihailgoryachev
Link to comment
Share on other sites

Почитайте внимательней в админке подсказку по статусу, при каком случае этот статус показывается.

Edited by magneto2010
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.