Kodelabs Posted March 1, 2018 Share Posted March 1, 2018 Hello WHMCS Family,I am selling a server from a hosting site and I need to show the number of servers that the client has staked out. I am writing the inventory name from the admin panel, but it does not appear on the system What should I follow in order to be able to show it? http://prntscr.com/ilenh8 I need to show it in the red blog here: http://prntscr.com/ileog2how do you rate the number of products in stock? Quote Note: I hope this is the correct categorie opened, if the subject is wrong place apologize Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted March 2, 2018 Share Posted March 2, 2018 Hello @Kodelabs this would require a customisation, I would reach out to your theme developer to see if they are able to assist you in adding this. Link to comment Share on other sites More sharing options...
brian! Posted March 2, 2018 Share Posted March 2, 2018 20 hours ago, Kodelabs said: how do you rate the number of products in stock? so you want to do something like the image below - either show it's out of stock (Tükenmiş Durumda) or the quantity available ? if you were inside the cart, the variable would already exist {$product.qty} and you would just edit the products.tpl template to display it (or an out of stock message)... but looking at your website, this is occurring outside of the cart and you are using Data Feeds to display this information. that being the case, I would just tweak the code within productsinfo.php data feed - even better to avoid it being overwritten during an update, create a new .php file in the feeds directory, copy the entire code but change... $description = str_replace(array("\r", "\n", "\r\n"), "", nl2br($description)); to... $description = str_replace(array("\r", "\n", "\r\n"), "", nl2br($description)); $description .= '<br>Adet : '.$data['qty']; and then call that new data feed for any product that you want to show a stock quantity for... for any product, you don't want to show stock quantity for, just use the productsinfo.php data feed as you are now. Link to comment Share on other sites More sharing options...
Kodelabs Posted March 2, 2018 Author Share Posted March 2, 2018 Thanks yours @brian! I've done it the way you said it and I appreciate that it happened Link to comment Share on other sites More sharing options...
Recommended Posts