WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Shopp Product Page Browser

Add "previous/next"-product links to your Shopp webshop's product pages.

Install the plugin through your WordPress Admin Panel, or

  1. Download the right plugin zip-file.
    • Version 1.0.2 for Shopp 1.1.x,
    • Version 1.2.5 for Shopp 1.2.5,
    • Version 1.3.x for Shopp 1.3.x
  2. Unzip the zip-file.
  3. Upload the folder to the /wp-content/plugins/ directory
  4. The plugin is NOT going to change or edit your Shopp files, but just to be sure, back up your files and database.
  5. Activate the plugin through the 'Plugins' menu in WordPress
  6. For Shopp version 1.0.x put the following code in your Shopp product.php template file

    <?php shopp('product','browser','show=both'); ?>

    If you want just one button only, you can replace the last line of code with
    <?php shopp('product', 'browser', 'show=previous'); ?>
    or
    <?php shopp('product', 'browser', 'show=next'); ?>.

    For Shopp version 1.2.5 put the following code in your Shopp product.php template file. If you want you can add the complete if-loop at the top, and the actually Shopp command anywhere you want.

    <?php if ($_GET["cat"]): ?>
    <?php $cat = $_GET["cat"]; ?>
    <?php else: ?>
    <?php $cat = shopp('product', 'category', 'show=id&return=true'); ?>
    <?php endif; ?>
    <?php shopp('product', 'browser', "show=both&cat=$cat"); ?>

    For Shopp version 1.3.x put the following code in your Shopp product.php template file. If you want you can add the complete if-loop at the top, and the actually Shopp command anywhere you want.

    <?php if ($_GET["cat"]): ?>
    <?php $cat = $_GET["cat"]; ?>
    <?php else: ?>
    <?php $cat = shopp('product.get-category','show=id'); ?>
    <?php endif; ?>
    <?php shopp('product.browser', "show=both&cat=$cat"); ?>

    Alternatively, for version 1.2.5 as well as 1.3.x, if you only want one button you can replace the last line of code with

    <?php shopp('product.browser', "show=next&cat=$cat"); ?>
    or
    <?php shopp('product.browser', "show=previous&cat=$cat"); ?>

    ONLY FOR 1.3.x If you just need the plain url of a button, you can add the 'property' option to the Shopp command like this

    <?php shopp('product.browser', "show=next&cat=$cat&property=url"); ?>
    or
    <?php shopp('product.browser', "show=previous&cat=$cat&property=url"); ?>

  7. Adjust the settings on the settings page (Shopp Extra, Shopp sppb)

  8. If you run in any trouble please use the contact form on our own website. For some reason we do not get notified when you leave a message here at WordPress.org.
  9. Supply Feedback. We'd love to hear from you!

Requires: 2.0.2 or higher
Compatible up to: 4.7.3
Last Updated: 1 month ago
Active Installs: 100+

Ratings

0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2
0,1,0
0,1,0
100,2,2