Adding inventory to custom loop
-
Dear Ronald
I have installed the ithemes exchange custom loop add-on.
I have now a fantastic grid showing my products. I want to show the inventory on this grid as well. where can I add / change stuff like:
————
<?php
$inventory = it_exchange( ‘product’, ‘inventory’, ‘return=true’ );if ( 0 == $inventory ) {
echo ‘Helaas, dit product is niet meer op voorraad!’; // We’re completely out
} elseif ( 1 == $inventory ) {
echo ‘Er is er nog maar 1!’; // There is one in stock
} else {
printf( ‘We hebben er %s op voorraad.’, number_format( $inventory, 0, null, ‘,’ ) );
} ?>—-
Hope you can help me out
Brent
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding inventory to custom loop’ is closed to new replies.