in the pages where it works, the add to cart button is showing. in the pages where it doesnt work, the add to cart button is not showing
change:
<input type="hidden" name="WA_Store_Cart_1_ID_Add" id="WA_Store_Cart_1_ID_Add" value="<?php echo $row_WADAProducts["ProductID"]; ?>" />
<p class="ATC_Button_Wrapper">
<input type="submit" value="Add to Cart" name="WA_Store_Cart_1_ATC" class="ps_buttons submit" /></p>
<?php } ?>
to:
<p class="ATC_Button_Wrapper">
<input type="submit" value="Add to Cart" name="WA_Store_Cart_1_ATC" class="ps_buttons submit" /></p>
<?php } ?>
<input type="hidden" name="WA_Store_Cart_1_ID_Add" id="WA_Store_Cart_1_ID_Add" value="<?php echo $row_WADAProducts["ProductID"]; ?>" />
so that whatever if statement is hiding the add to cart button, wont also hide the item id element