MaxButtons and Shopp

We just updated MaxButtons Pro to version 1.6.0 and it contains one very important update: integration with the Shopp e-commerce plugin for WordPress. Shopp is a powerful shopping cart system which we use here on the MaxButtons website (as well as on our MaxGalleria and MaxInbound sites). Since we started using Shopp, one of the things we’ve wanted to do was take buttons created with MaxButtons Pro and use them in the shopping cart instead of the default buttons that come with Shopp. We’re happy to say that day is here.

We worked really closely with the Shopp team to make this integration as smooth as possible, and in fact, Shopp customers don’t even need an update to the Shopp plugin to make this work. All you need is the latest version of MaxButtons Pro and some small tweaks to your Shopp templates, as described below.

Shopp Template Changes

To make Shopp use buttons created with MaxButtons Pro instead of its own default buttons, follow the simple code changes below for each type of button or link. For additional information about Shopp templates, refer to the Shopp API documentation for more details.

Add To Cart Button

// Add maxbutton option, where 1 is the id of your
// "Add to Cart" button created with MaxButtons Pro
<?php shopp('product', 'addtocart', 'maxbutton=1') ?>

Continue Shopping Link

// Replace this:
<a href="<?php shopp('cart', 'referrer') ?>">Continue Shopping</a>

// With this, where 5 is the id of your "Continue Shopping"
// button created with MaxButtons Pro
<?php $url = shopp('cart', 'referrer', 'return=1') ?>
<?php echo do_shortcode('[maxbutton id="5" url="' . $url . '"]') ?>

Proceed to Checkout Link

// Replace this:
<a href="<?php shopp('checkout', 'url') ?>">Proceed to Checkout</a>

// With this, where 4 is the id of your "Process to Checkout"
// button create with MaxButtons Pro
<?php $url = shopp('checkout', 'url', 'return=1') ?>
<?php echo do_shortcode('[maxbutton id="4" url="' . $url . '"]') ?>

Remove Item Button

// Add maxbutton option, where 2 is the id of your
// "Remove Item" button created with MaxButtons Pro
<?php shopp('cartitem', 'remove', 'maxbutton=2') ?>

Promo Code Button

// Add maxbutton option, where 6 is the id of your
// "Apply Code" button created with MaxButtons Pro
<?php shopp('cart', 'promo-code', 'maxbutton=6') ?>

Update Cart Button

// Add maxbutton option, where 3 is the id of your
// "Update Cart" button created with MaxButtons Pro
<?php shopp('cart', 'update-button', 'maxbutton=3') ?>

Submit Order Button

// Add maxbutton option, where 11 is the id of your
// "Submit Order" button created with MaxButtons Pro
<?php shopp('checkout', 'submit', 'value=Submit Order&maxbutton=11') ?>

Login Button

// Add maxbutton option, where 7 is the id of your
// "Login" button created with MaxButtons Pro
<?php shopp('customer', 'login-button', 'maxbutton=7') ?>

Recover Password Button

// Add maxbutton option, where 10 is the id of your
// "Recover Password" button created with MaxButtons Pro
<?php shopp('customer', 'recover-button', 'maxbutton=10') ?>

Save Profile Button

// Add maxbutton option, where 8 is the id of your
// "Save Profile" button created with MaxButtons Pro
<?php shopp('customer', 'save-button', 'label=Save Profile&maxbutton=8') ?>