1. How to Show the Shopping Cart Widget Only When There are Items in the Cart
Add a standard WordPress text widget to the sidebar widget. Then use the following shortcode in that text widget:
[wp_eStore_cart_when_not_empty]
2. How to Change the Look and Feel of the Shopping Cart?
If you want to customize/change the way your shopping cart looks (for example you want to change the size of the ‘Your Shopping Cart’ title) then just introduce the following ‘div’ in your wordpress theme’s Stylesheet (style.css) file. Alternatively, you can just modify the ‘wp_eStore_style.css’ file that came with the plugin.
.shopping_cart{ font-size:12px; color:#228CD2; } .shopping_cart h2{ font-size:14px; }
Of course you will have to change the font size and color etc to your needs and maybe add more style to it. This is just a guideline.
3. How to Use a Custom Image as the button
Simply put the URL of the image that you want to use as the button (for customized button image) in the “Button Image URL” field of that product under the “Additional Product Details” section. There are some button images included in the “images” directory of the plugin that you can use freely.
4. How to Use the ‘Buy Now’ or ‘Subscribe’ button on a Standalone HTML page
If you want to use the ‘Buy Now’ or ‘Subscribe’ button on a standalone HTML page (eg. landing page) on a domain where you have the WP eStore plugin installed then you can use the following option to achieve this:
Alternatively, you can use the following method:
- Configure a product with ‘Subscription’ or ‘Buy Now’ button using the WP eStore.
- Put this product on a WordPress post or page then preview the page or publish it so you can view the page from the front end.
- Now, select view source in the browser so you can view the HTML code of this page. Find the HTML code generated for the button.
- Then copy and paste the HTML code for this button in the standalone HTML page.
The plugin will handle the post payment processing when someone makes a purchase using this button.
5. How to make the “instruction” input box bigger
Search for the following line in the “eStore_button_display_helper.php” file:
<input type="text" name="custom_input" value="" class="eStore_text_input" />
Once you find it replace it with the following (there will be 2 occurrences so change them both):
<textarea name="custom_input" cols="20" rows="3" /></textarea>
Please note that you shouldn’t use the Instruction input box to collect long instructions as that field has a limit of 256 characters. If you need to collect long instructions from the customer during checkout then you should use PayPal’s special instruction input section explained here.
6. How to Customize the Checkout Page on PayPal
7. How to Hide a Page (eg. Thank You page) from the WordPress Menu
The pages in the menu are displayed using the following code in your template file (it may have some additional parameters):
<?php wp_list_pages(); ?>
You just have to change that to use the following:
<? php wp_list_pages('exclude=5,8'); ?>
This way WordPress will exlcude pages with the id 5 and 8 from displaying on the navigation. You will have to replace these number with the page id of the pages that you want to hide from displaying.
If you don’t want to do it manually then you can use a plugin eg. the Page Exclude Plugin that helps you exclude pages from displaying.
8. How to Display Button(s) on the Sidebar
In order to add button(s) to the sidebar you will need to use one of the PHP function calls. Please refer to the WP eStore Shortcodes for a list of available functions.
Now if you are calling the function from the theme’s template file (sidebar.php, header.php, footer.php etc) then you are fine but there is another way to do this using the widgets which could be more practical in some cases.
1. Download and activate the Executable PHP code plugin if you don’t have it already. This plugin lets you call php functions from the widgets (it’s similar to the Text widget but it lets you execute PHP code too).
2. Go to the widgets menu and add a ‘PHP Code’ widget to the sidebar (where you want to display the ‘Add to Cart’ buttons). Now you can enter PHP code here to display the buttons.
<?php echo print_eStore_buy_now_button(1); ?>
This will display a ‘Buy Now’ type button for the product with product id 1.
9. How to Display the Shopping Cart Using a PHP Function Call
If you ever want to show the shopping cart by calling a php function for whatever reason then the following bit of code should do the trick:
<?php echo eStore_cart_when_not_empty(); ?>
10. How to Display a Simple List of all the Products with ‘Add to Cart’ Buttons
WP eStore allows the listing of all the products configured in the database with a simple trigger text or by calling a function. To show the listing of all the products in a post or page use the following trigger text in HTML view.
You can also call the following function from any template file of your theme to display the products list.
Credit: This feature was suggested and implement by Cornel Ivanescu
11. How to Display the MP3 Tracks as Preview
Step1: Download the WordPress audio player plugin
Step2: Create your preview/demo mp3 file (eg. first 10 seconds of your real mp3 music).
Step3: Embed this demo mp3 using the Audio player
Step4: Configure a product using the eStore’s Add/Edit Products menu (specify the URL of the real mp3 file as the downloadable file)
Step5: Put the “Add to Cart” or “Buy Now” button next to the embedded demo that you created in step 3 so customers can purchase it.
When anyone makes a purchase using that “Add to Cart” button they will get the full version mp3 as the download.
12. How to Create Buttons to Accept Payment in Multiple Currencies
You can create “Buy Now” type buttons in any currency you like. For example, you can have two buttons for the same product (one in USD and the other in EUR).
To create “Buy Now” type buttons in different currencies simply specify it in the “Buy Now Type Button Specific Settings” section of the product (enter it in the “Currency Code” field).
This does not work for “Add to Cart” type buttons though. Here is the reason if you are asking why:
13. Making Credit Card the Default PayPal Checkout Option
Note: We provide technical support for our premium plugins via our customer only support forum