How to Change the Shopp Storefront Order-by List Dropdown Menu Options

The Shopp storefront order by list dropdown menu appears on the storefront page (e.g. example.com/shop/) and has the following options available:

  • Title
  • Recommended
  • Bestselling
  • Price High to Low
  • Price Low to High
  • Newest to Oldest
  • Oldest to Newest
  • Random

In this tutorial, we’ll learn how to adjust the verbiage or messaging for the options above.

This will be done by using a Learn about gettext filters for WordPress.

Here is an example of the filter:

It works by looking for an exact match for a phrase and then changes it to new messaging. In its current state, the example above would change all of the options to say “Replace me with new messaging.”

[Read more…]

Shopp 1.3.9 Maintenance Release: Tips on Updating

Shopp 1.3.9 was released last month with over 50 fixes. You can view the list of changes here:

https://shopplugin.net/blog/shopp-1-3-9-maintenance-release/

If you are running an older version of Shopp, then we recommend updating to the current release.

WordPress 4.2 was released today and is compatible with Shopp 1.3.9. Below are some tips on upgrading to the current version of Shopp.

Backup your WordPress

Backing up before making changes is a good practice for any website. You can use a plugin like BackupBuddy to backup your site. If you are using managed WordPress hosting, then your site will be automatically backed up each day and you can perform a one-click manual backup.

How to Update your Shopp to 1.3.9

If you are running an existing and older version of the Shopp 1.3.x platform, then you can update via your WordPress dashboard.

Login to your WP dashboard (WP-admin) and go to Plugins. Look for Shopp in the list of plugins and you’ll see an update notice. Click Update Now and your Shopp plugin will be updated. If there are updates for any add-ons such as payment gateways or shipping services, then you should also update those extensions.

How to Upgrade your Shopp to 1.3.9

Are you running an older version of Shopp such as 1.0.18, 1.1.9.1, or 1.2.9? Check out our upgrade checklist for Shopp 1.3.x. Note that we use the term upgrade here instead of update as you are moving from an older platform of Shopp.

Managed WordPress Hosting

How to Add a How Did You Hear About Us Question to Shopp Checkout

Are you running different advertising campaigns for your store? Would you like to ask your customers where they heard about your store? In this tutorial you’ll learn how to add that question to the checkout page for Shopp.

Edit your Checkout.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:

/wp-content/themes/yourthemefolder/shopp

Now locate the checkout.php file and open it for editing.

At around line 28, you’ll see the following:

<span><label for="email"><?php _e('Email','Shopp'); ?></label><?php shopp('checkout','email','required=true&format=email&size=30&title='.__('Email','Shopp')); ?></span>

The line of code above adds a label and the text box for the customer’s email address. [Read more…]

How to Apply an Additional Order Handling Fee When Certain Products are in the Shopp Cart

Extra fees are fees that are set on a per product basis through the Shopp Product Editor. A order handling fee applies once to an order and can be set through Shopp system –> Shipping settings. Currently these fees apply to all shipping options including paid and free shipping options.

In this tutorial, we’ll learn how to add a one-time additional shipping fee when products from a certain category are in the shopping cart for Shopp. This one-time additional shipping fee will be rolled into the existing shipping fee when any quantity of products from a certain category is added to the cart.

This will be done using the shopp_shipping_fees filter.

Here is an example of the filter:

[Read more…]

How to Request the Shipping Address by Default on the Shopp Checkout Page

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 Checkout.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:

/wp-content/themes/yourthemefolder/shopp

Now locate the checkout.php file and open it for editing.

At around line 90, you’ll see the following:

<?php shopp( 'checkout.same-shipping-address' ); ?>

The line of code above adds a checkbox option to use the billing address for the shipping address. [Read more…]

How to Setup a Custom Call for Pricing Message in Shopp

Sometimes you’ll discover that you have an item that could be classified as a specialty item. Perhaps its options are rather complicated and it would be difficult to simply sell through your store.

In these cases, you would want the customer to contact you to purchase the item.

The easiest method is to use Shopp’s out of stock option to display a message. One issue here is that you would be unable to use the out of stock option for products that are actually “out of stock”.

Another option is to using some coding to check for a pricing that is set to zero (0.00). With this option, any products that have a price of 0.00 will show your custom message. This is a better solution as it doesn’t tie up your out of stock feature and can easily be disabled by setting a price greater than zero.

Shopp content templates will be needed. These templates files will ensure that your customizations are not lost on a software update and they can be setup through WP-admin –> Shopp setup –> Presentation.

Update Product.php Content Template File for Shopp

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:

/wp-content/themes/yourthemefolder/shopp

Now locate the product.php file and open it for editing.

At around line 19, you will see the following:

<?php shopp( 'product.price' ); ?>

Change it to this:

<?php if (shopp('product.price', 'number=true&return=true') == "0") {
 echo 'Call for pricing';
 } else {
shopp( 'product.price' ); } ?>

This step will setup the check for zero pricing on Shopp product pages. Change the “Call for pricing” messaging as needed. For example, it could be changed to this:

Call us at 123-456-7890 for pricing! [Read more…]

How to Show Information from Product Inputs in the Shopp Order Receipt

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:

/wp-content/themes/yourthemefolder/shopp

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…]

How to set a Checkout Form Field to Required on the Shopp Checkout Page

By default, only certain form fields are required on the Shopp checkout page (e.g. example.com/shop/checkout/). For example, a name, email, and address is required. However, the other form fields such as company name and phone number fields are not.

In this tutorial, we’ll learn how to set form fields on that page to required.

Edit your Checkout.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:

/wp-content/themes/yourthemefolder/shopp

Now locate the checkout.php file and open it for editing.

At around line 39, you’ll see the following:

<span><label for="phone"><?php _e('Phone','Shopp'); ?></label><?php shopp('checkout','phone','format=phone&size=15&title='.__('Phone','Shopp')); ?></span>

The first part of the code snippet above includes a form field label of Phone. [Read more…]

Improve Delivery of Order Emails by using a Transactional Email Service

Having trouble with some order emails arriving in the junk or SPAM email folder? A transactional email service like Postmark app or Mandrill can help!

These services work by taking over sending emails from the native wp_mail() function on your site. This means that all emails from WordPress (e.g. password resets, new user notifications, comment notifications) will be handled for you. An additional benefit is that emails will be received much quicker than before.

Step 1: Select a transactional email service

Postmark App and Mandrill are two popular transaction email services. Click on the links to learn more about each service. Then register with one of the services.

Learn more about Postmark App

Learn more about Mandrill

Step 2: Install and setup a WordPress plugin for your selected service

Now that you have picked a transactional email service, you’ll just need a plugin to connect the service to your WordPress site. Click on the link below for the service that you have selected. Then download your plugin and upload through WP-admin –> Plugins –> Add New –> Upload. [Read more…]