Shopp allows your customers to enter information on the product page by using the Shopp product input API call. This information is then stored with the order in Shopp orders. It is also possible to show that information on the order receipt and we’ll show you how to do that in this guide.
Edit your Receipt.php Content Template File
Login to your WordPress root with your preferred SFTP or FTP client. If you are using a Mac, then recommend Transmit. If you are on another system, then try Cyberduck or FileZilla.
Next, browse to your Shopp content templates folder in this location:
Now locate the receipt.php file and open it for editing.
At around line 78, you’ll see the following:
<?php while ( shopp( 'purchase.items' ) ) : ?> <tr> <td> <?php shopp( 'purchase.item-name' ); ?><?php shopp( 'purchase.item-options', 'before= – ' ); ?><br /> <?php shopp( 'purchase.item-sku' ); ?><br /> <?php shopp( 'purchase.item-download' ); ?> <?php shopp( 'purchase.item-addons-list' ); ?> </td> <td><?php shopp( 'purchase.item-quantity' ); ?></td> <td class="money"><?php shopp( 'purchase.item-unitprice' ); ?></td> <td class="money"><?php shopp( 'purchase.item-total' ); ?></td> </tr> <?php endwhile; ?>
The coding above grabs certain parts of a Shopp order (i.e. a purchase). We can expand upon it to have it retrieve more information by adding Shopp purchase item inputs list. [Read more…]