Forum

Thread tagged as: Question, Addons, PayPal

Marking items as sold out - Shop App (PayPal)

I've got the Shop App (PayPal) working nicely, but could really do with an additional feature: I need products to still display but be marked as 'sold out' once their available quantity reaches zero. productCount is decreasing as expected when items are selling, but out-the-box it would appear there's no way to use this data other than to hide out of stock items.

I appreciate that the app docs do say that any inventory control is rudimentary, but for my needs I'm confident that the control on offer will suffice.

Would I need to hack the app code itself to be able to if productCount == 0 echo "sold out"?

Pete Aylward

Pete Aylward 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you not just do that in the template?

<perch:if id="productCount" match="eq" value="0">
Sold out.
</perch:if>

I could, but that would be simple. ;-)

Thanks Drew.

LOL, the question was also the answer. Love the final reply Pete.... :)