FoxyPress has a few items that can be changed in the wp-config.php file that comes with your WordPress install. These can help the look or functionality of your store depending what they are. We have outlined the current options below:
Product Template Path
define('FOXYPRESS_PRODUCT_TEMPLATE_PATH', dirname(__FILE__) . '/wp-content/themes/foxyv3/single-foxypress_product.php');
By default, we provide shortcodes and a product look/feel printout for viewing products, but it isn’t always ideal for the look and feel of your store. The above definition allows you to define a custom product template file. You can then use the API we’ve provided to create your own custom look and feel for products. This is great for implementing with different plugins or jQuery sliders.
By default, we set the custom post slug as “products”. This isn’t always the best option, so we’ve decided to let you be the judge of that and make it work for your store. Copy and paste the line above into your WordPress config file and save, then go to your WordPress settings, permalinks, and click save. This will enable the new slug for your products to use.
SMTP Mail Include
We’ve extended FoxyPress to allow you to use SMTP mail sending instead of regular mail() calls through PHP. This can be helpful to avoid server relays where you don’t get your mail right away. Simply include the path to your SMTP mail file with this code in your wp-config.php. You might need to contact your web host.
WordPress Subfolder Installation
There are some oddities that have presented themselves when using FoxyPress within a WordPress environment that has been installed in a sub folder of your domain. We’ve added the following definition that can be placed in your config file to allow for FoxyPress to run smoothly.
FoxyPress User Portal Path
With the addition of the FoxyPress user portal, we’ve taken into consideration that some installs might already use the slug “user”, which we chose to have by default. Simply add this line to your wp-config file if you’d like to change it to something else, such as user-portal, or something like that.