How to Rename Product Elements in the Shopp Product Editor

Today you’ll learn how to change the messaging or verbiage for elements in the Shopp product editor. For this tutorial, we’ll use SKU as an example and this can be applied to other elements in the product editor.

Various elements in the Shopp product editor are wrapped in the Shopp language domain. This means that they can be changed by using a Learn more about the gettext filter for WordPress.

Here is an example for changing SKU to Part Number:

The phrase or messaging before the arrow is the match that the gettext filter is looking for. The phrase or messaging after the arrow is what it should be changed to. Here is what the gettext filter above will do:

  • SKU will be changed to Part Number
  • Stock Keeping Unit with be changed to Part Number
  • Enter a unique stock keeping unit identification code will be changed to Enter a unique part number.

Before and after examples can be seen below:

shopp-product-editor-sku

shopp-product-editor-rename-sku-to-part-number

These changes will apply where ever a translation string is in use that matches (e.g. The translation string for SKU will be changed site-wide for Shopp). This includes the Shopp product editor as well as on the front-end of your site such as in Shopp content templates.

The sample coding can be added to your child theme’s functions.php file or via a site specific plugin.

Quick Tip: Turn Off Logging for Shopp on Live/Production Sites

Shopp has a logging option that is useful for debugging or troubleshooting. However, when you are finished, then it should be turned off (disabled).

You can find it by logging into your WordPress dashboard (WP-admin) and browsing to Shopp –> System –> Advanced. You’ll now be viewing the Advanced Settings page for Shopp. About half-way on the page, you’ll see an option  for Logging. Switch the dropdown option to Disabled and save changes.

Here is an example of what it looks like:

shopp-logging-settings

Having trouble finding the option above? Your software may be out of date. Check out our upgrade checklist for Shopp 1.3.x.

Managed WordPress Hosting

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.

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