Forum Replies Created
-
AuthorPosts
-
March 22, 2011 at 6:22 pm in reply to: Display items that are not for sale & sold out redirection #30524odiousfunkMember
OK… leave me alone long enough and I might just find my answers.
I found the code related to where the qty was being output and simply qualified it first:
Code:if (!empty($ret_product->available_copies))
if ($ret_product->available_copies > 0)// We got some
{
$output .= ”.ESTORE_AVAILABLE_QTY.’: ‘.$ret_product->available_copies;
}
else
{
$output .= ”;
}Great product!
edit: I thought the bbcode code brackets would handle the html pagebreak in the code but it does not… just note that there is a pgbrk between the single quotes before the ESTORE_AVAIL and within the single quotes of the else.
March 22, 2011 at 6:11 pm in reply to: Display items that are not for sale & sold out redirection #30523odiousfunkMemberIt was easy enough to add a link outside the input tag of the ‘sold out’ button build within the ‘get_button_code_for_element’ function of ‘eStore_misc_functions.php’.
And I added a second if statement to look for a -1 qty for those products I did not want to sell. However, the product display lists the qty avail of -1 which I am trying to locate and remove.
Code:if ($ret_product->available_copies == -1)// Not for sale
{
$replacement = ‘<input type=”image” src=”http:…/notforsale.png” class=”eStore_sold_out” title=”This item is not for sale.” alt=”NOT FOR SALE”/>’;
return $replacement;
}Can anyone point me in a direction to remove the text that lists the qty available from the product display?
Thanks
-
AuthorPosts