' . __( 'Fischer Creative Media, LLC develops custom WordPress Themes and Plugins for clients who need a more individualized look, but still want the simplicity of a WordPress website.', 'amazon-product-in-a-post-plugin' ) ) );
$screen->set_help_sidebar(
'
' . __( 'For more information:', 'amazon-product-in-a-post-plugin' ) . '
' . __( 'Amazon Product in a Post Important Message!', 'amazon-product-in-a-post-plugin' ) . '
' . __( 'Please note: You need to add your Access Key ID and Secrect Access Key to the options page before the plugin will display any Amazon Products!dismiss', 'amazon-product-in-a-post-plugin' ) . '
';
} elseif ( $appip_partner_id == '' ) {
echo '
' . __( 'Amazon Product in a Post Important Message!', 'amazon-product-in-a-post-plugin' ) . '
' . __( 'You need to enter your Amazon Partner ID in order to get credit for any products sold. enter your partner id heredismiss', 'amazon-product-in-a-post-plugin' ) . '
' . __( 'WARNING:', 'amazon-product-in-a-post-plugin', 'amazon-product-in-a-post-plugin' ) . ' ' . __( 'You will not get credit for Amazon purchases until you add your Amazon Affiliate ID on the options page.', 'amazon-product-in-a-post-plugin' ) . '
' . __( 'if checked the product will be live', 'amazon-product-in-a-post-plugin' ) . '
';
echo '
' . __( 'For multiple, separate with a comma. You will need to get ASINs from Amazon', 'amazon-product-in-a-post-plugin' ) . '
';
echo '
' . __( 'Optional. To hide title all together, type "null". No HTML, plain text only. Use this if you want your own title to show instead of Amazon\'s title.', 'amazon-product-in-a-post-plugin' ) . '
';
echo '';
echo '
' . __( 'Product will show when full content is used (when the_content() template tag). On by default.', 'amazon-product-in-a-post-plugin' ) . '
';
echo '
' . __( 'Product will show when partial excerpt content is used(when the_excerpt() is used. Off by default.', 'amazon-product-in-a-post-plugin' ) . '
';
echo '
' . __( 'if checked the product will only show when on single page. Off by default.', 'amazon-product-in-a-post-plugin' ) . '
';
echo '
' . __( 'if checked the product will open a new browser window. Off by default unless set in options.', 'amazon-product-in-a-post-plugin' ) . '
';
echo '
';
echo '';
echo '
' . __( 'Above Post Content - Default - Product will be first then post text', 'amazon-product-in-a-post-plugin' ) . ' ';
echo ' ' . __( 'Below Post Content - Post text will be first then the Product', 'amazon-product-in-a-post-plugin' ) . ' ';
echo ' ' . __( 'Post Text becomes Description - Post text will become part of the Product layout', 'amazon-product-in-a-post-plugin' ) . '
';
echo '
Additional Features:
';
echo '
' . __( 'Uses Add to Cart URL instead of product page link. helps with 90 day conversion cookie.', 'amazon-product-in-a-post-plugin' ) . '
';
echo '
' . __( 'if available. This will be IN ADDITION TO your own content.', 'amazon-product-in-a-post-plugin' ) . '
';
echo '
' . __( 'if available (Consists of Amazon Approved images only). Not all products have an Amazon Image Gallery.', 'amazon-product-in-a-post-plugin' ) . '
';
echo '
' . __( 'if available. Not all items have this feature.', 'amazon-product-in-a-post-plugin' ) . '
';
echo '
' . __( 'if available. Not all items have this feature.', 'amazon-product-in-a-post-plugin' ) . '
';
echo '
' . __( 'if available. Not all items have this feature.', 'amazon-product-in-a-post-plugin' ) . '
';
/* Possibly Remove */
//echo '
'.__('if available. Not all items have this feature.','amazon-product-in-a-post-plugin').'
Amazon.com Price: $32.77 (as of 01/07/2008 14:11 PST - Details) Amazon.com Price: $32.77 (as of 14:11 PST - More info)
','amazon-product-in-a-post-plugin').'';
//echo '' . __( 'Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on amazon.' . APIAP_LOCALE . ' at the time of purchase will apply to the purchase of this product.', 'amazon-product-in-a-post-plugin' ) . '';
echo '';
}
/* When the post is saved, saves our custom data */
function amazonProductInAPostSavePostdataForm( $post_id, $post ) {
if ( $post_id == '' ) {
$post_id = $post->ID;
}
if ( !isset( $post[ 'post_save_type_apipp' ] ) ) {
return;
}
$mydata = array();
$mydata[ 'amazon-product-isactive' ] = sanitize_text_field( $post[ 'amazon-product-isactive' ] );
$mydata[ 'amazon-product-content-location' ] = sanitize_text_field( $post[ 'amazon-product-content-location' ] );
$mydata[ 'amazon-product-single-asin' ] = sanitize_text_field( $post[ 'amazon-product-single-asin' ] );
$mydata[ 'amazon-product-excerpt-hook-override' ] = sanitize_text_field( $post[ 'amazon-product-excerpt-hook-override' ] );
$mydata[ 'amazon-product-content-hook-override' ] = sanitize_text_field( $post[ 'amazon-product-content-hook-override' ] );
$mydata[ 'amazon-product-newwindow' ] = sanitize_text_field( $post[ 'amazon-product-newwindow' ] );
$mydata[ 'amazon-product-singular-only' ] = sanitize_text_field( $post[ 'amazon-product-singular-only' ] );
$mydata[ 'amazon-product-amazon-desc' ] = sanitize_text_field( $post[ 'amazon-product-amazon-desc' ] );
$mydata[ 'amazon-product-show-gallery' ] = sanitize_text_field( $post[ 'amazon-product-show-gallery' ] );
$mydata[ 'amazon-product-show-features' ] = sanitize_text_field( $post[ 'amazon-product-show-features' ] );
$mydata[ 'amazon-product-show-list-price' ] = sanitize_text_field( $post[ 'amazon-product-show-list-price' ] );
$mydata[ 'amazon-product-show-used-price' ] = sanitize_text_field( $post[ 'amazon-product-show-used-price' ] );
//$mydata['amazon-product-show-saved-amt'] = sanitize_text_field($post['amazon-product-show-saved-amt']);
//$mydata['amazon-product-timestamp'] = sanitize_text_field($post['amazon-product-timestamp']);
$mydata[ 'amazon-product-new-title' ] = sanitize_text_field( $post[ 'amazon-product-new-title' ] );
$mydata[ 'amazon-product-use-cartURL' ] = sanitize_text_field( $post[ 'amazon-product-use-cartURL' ] );
if ( $mydata[ 'amazon-product-isactive' ] == '' && $mydata[ 'amazon-product-single-asin' ] == "" ) {
$mydata[ 'amazon-product-content-location' ] = '';
}
if ( $mydata[ 'amazon-product-excerpt-hook-override' ] == '' ) {
$mydata[ 'amazon-product-excerpt-hook-override' ] = '3';
}
if ( $mydata[ 'amazon-product-content-hook-override' ] == '' ) {
$mydata[ 'amazon-product-content-hook-override' ] = '3';
}
if ( $mydata[ 'amazon-product-newwindow' ] == '' ) {
$mydata[ 'amazon-product-newwindow' ] = '3';
}
$mydata = apply_filters( 'amazon_product_in_a_post_plugin_meta_presave', $mydata );
foreach ( $mydata as $key => $value ) {
if ( isset( $post->post_type ) && $post->post_type == 'revision' ) {
return;
}
$value = implode( ',', ( array )$value );
if ( get_post_meta( $post_id, $key, FALSE ) ) {
update_post_meta( $post_id, $key, $value );
} else {
add_post_meta( $post_id, $key, $value );
}
if ( !$value )delete_post_meta( $post_id, $key ); //delete if blank
}
}
function apipp_plugin_menu() {
global $fullname_apipp, $shortname_apipp, $options_apipp;
apipp_options_add_admin_page( $fullname_apipp, $shortname_apipp, $options_apipp );
add_menu_page( __( 'Amazon Product In a Post Plugin', 'amazon-product-in-a-post-plugin' ), _x('Amazon Product', 'Main Menu Title', 'amazon-product-in-a-post-plugin'), 'edit_posts', 'apipp-main-menu', 'apipp_main_page', 'dashicons-amazon' ); //toplevel_page_apipp-main-menu
add_submenu_page( 'apipp-main-menu', _x( "Getting Started", 'Page Title','amazon-product-in-a-post-plugin' ), _x( "Getting Started", 'Menu Title', 'amazon-product-in-a-post-plugin' ), 'edit_posts', 'apipp-main-menu', 'apipp_main_page' );
add_submenu_page( 'apipp-main-menu', _x( "New Amazon Post", 'Page Title', 'amazon-product-in-a-post-plugin' ), _x( "New Amazon Post", 'Menu Title', 'amazon-product-in-a-post-plugin' ), 'edit_posts', "apipp-add-new", 'apipp_add_new_post' ); //amazon-product_page_apipp-add-new
add_submenu_page( 'apipp-main-menu', _x( "Amazon Product in a Post Options", 'Page Title', 'amazon-product-in-a-post-plugin' ), _x( "Plugin Settings",'Menu Title', 'amazon-product-in-a-post-plugin' ), 'manage_options', "apipp_plugin_admin", 'apipp_options_add_subpage' );
add_submenu_page( 'apipp-main-menu', _x( "Product Cache",'Page Title', 'amazon-product-in-a-post-plugin' ), _x( "Product Cache", 'Menu Title', 'amazon-product-in-a-post-plugin' ), 'edit_posts', "apipp-cache-page", 'apipp_cache_page' );
add_submenu_page( 'apipp-main-menu', _x( "Shortcode Usage", 'Page Title', 'amazon-product-in-a-post-plugin' ), _x( 'Shortcode Usage', 'Menu Title', 'amazon-product-in-a-post-plugin' ), 'manage_options', 'apipp_plugin-shortcode', 'apipp_shortcode_help_page' );
add_submenu_page( 'apipp-main-menu', _x( "FAQs/Help",'Page Title', 'amazon-product-in-a-post-plugin' ), _x( 'FAQs/Help', 'Menu Title', 'amazon-product-in-a-post-plugin' ), 'manage_options', 'apipp_plugin-faqs', 'apipp_options_faq_page' );
//add_submenu_page( 'apipp-main-menu', __('Layout Styles', 'amazon-product-in-a-post-plugin'), __('Layout Styles', 'amazon-product-in-a-post-plugin'), 'manage_options', 'appip-layout-styles', 'apipp_templates');
}
function apipp_cache_page() {
global $current_user, $wpdb;
if ( !current_user_can( 'manage_options' ) ) {
wp_die( __( 'You do not have sufficient permissions to access this page.', 'amazon-product-in-a-post-plugin' ) );
}
echo '
';
echo '
' . __( 'Amazon Product In A Post CACHE', 'amazon-product-in-a-post-plugin' ) . '
';
if ( isset( $_GET[ 'appmsg' ] ) && ( int )$_GET[ 'appmsg' ] == 1 ) {
if ( isset( $_GET[ 'qty' ] ) && ( int )$_GET[ 'qty' ] > 0 ) {
echo '
' . esc_attr( ( int )$_GET[ 'qty' ] ) . ' ' . __( 'Product post(s) have been saved. To edit, use the standard Post Edit options.', 'amazon-product-in-a-post-plugin' ) . '
';
} else {
echo '
' . __( 'Product post has been saved. To edit, use the standard Post Edit options.', 'amazon-product-in-a-post-plugin' ) . '
' . __( 'The product cache is stored for ' . $cacheSec . ' minutes and then deleted automatically. To refetch a product, delete the cache and it will be updated on the next product load.', 'amazon-product-in-a-post-plugin' ) . '
' . __( 'WordPress shortcodes were introduced in WordPress version 2.5. A shortcode is basically a placeholder for content that you want to put in a specific spot in a page or post. The content is usually generated when the page/post is loaded on the front end by the viewer. Shortcodes make it very easy to add all sorts of advanced content without the need to know any programming and without needing to modify any theme or template code.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'Anatomy of a Shortcode', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'A Shortcode is comprised of a few simple elements. The main thing you will notice is that a shortcode is placed in square brackets', 'amazon-product-in-a-post-plugin' ) . ' ([]). ' . __( 'Inside the brackets you add the shortcode name and any attributes and values needed to produce the desired effect. The outcome depends on how the shortcode was programmed and the number of attributes can be zero (none) up to an unlimited number - again, depending on how it was programmed.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'In its simplest form, a shortcode is just a name or word inside the brackets and nothing else, like so:', 'amazon-product-in-a-post-plugin' ) . ' ';
$pageTxtArr[] = ' [shortcode]
';
$pageTxtArr[] = '
' . __( 'A shortcode can also contain a closing "tag" is you want to include text with the shortcode, like:', 'amazon-product-in-a-post-plugin' ) . ' ';
$pageTxtArr[] = ' [shortcode]' . __( 'Put your content here', 'amazon-product-in-a-post-plugin' ) . '[/shortcode] ';
$pageTxtArr[] = ' ' . __( 'Not all shortcodes use closing tags and not all of them allow content text, so check with the documentation when you use one for a specific plugin or theme.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
Most shortcodes have multiple attributes that you can set if you want to have different outcomes when the content is generated. Attributes (also called "Parameters") and their Value are entered in a "keyed pair" type manner, which is attribute="value". The attributes allowed and their allowed value are all determined by the shortcode creator. ';
$pageTxtArr[] = ' ' . __( 'Examples:', 'amazon-product-in-a-post-plugin' ) . ' [shortcode title="shortcode title" text_color="red"]' . __( 'Your Content Here', 'amazon-product-in-a-post-plugin' ) . '[/shortcode] ' . __( 'or', 'amazon-product-in-a-post-plugin' ) . ' [shortcode title="shortcode title" text_color="green"]
';
$pageTxtArr[] = '
' . __( 'Once you know what attributes you can use and the acceptable values, you can add them to do whatever you want - again, depending on what they are for and how they are programmed.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'The Amazon Product In a Post Plugin comes with several shortcodes for you to use. They each have their own set of allowed Attributes/Parameters.', 'amazon-product-in-a-post-plugin' ) . ' ' . __( 'Click the name to see how to use each one:', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
';
$pageTxtArr[] = '
AMAZONPRODUCTS ' . __( 'The main Shortcode. You can also use', 'amazon-product-in-a-post-plugin' ) . ' "amazonproducts" ' . __( 'all lowercase. This will output an entirely formatted Amazon product (the same as if you do not use a shortcode for your products).', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
amazon-elements ' . __( 'A Shortcode specifically designed to make adding individual elements of an Amazon product. Can also use the singular', 'amazon-product-in-a-post-plugin' ) . ' "amazon-element".
';
$pageTxtArr[] = '
amazon-product-search ' . __( 'A Shortcode for displaying Amazon search results.', 'amazon-product-in-a-post-plugin' ) . '
' . __( 'The shortcode should be used as follows:', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'Usage in the most basic form is simply the Shortcode and the ASIN written as (where the XXXXXXXXX is the Amazon ASIN):', 'amazon-product-in-a-post-plugin' ) . ' ';
$pageTxtArr[] = ' [AMAZONPRODUCTS asin="XXXXXXXXXX"]';
$pageTxtArr[] = '
' . __( 'There are additional parameters that can be added if you need them. The parameters are', 'amazon-product-in-a-post-plugin' ) . ' locale, desc, features, listprice, partner_id, private_key, and public_key
';
$pageTxtArr[] = '
' . __( 'A description of each parameter:', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
';
$pageTxtArr[] = '
asin — ' . __( 'this is the ASIN or ASINs up to 10 comma separated.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
locale — ' . __( 'this is the Amazon locale you want to get the product from, i.e., com, co.uk, fr, etc. default is your plugin setting.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
desc — ' . __( 'using 1 shows Amazon description (if available) and 0 hides it — default is 0.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
features — ' . __( 'using 1 shows Amazon Features (if available) and 0 hides it - default is 0.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
listprice — ' . __( 'using 1 shows the list price and 0 hides it — default is 1.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
partner_id — ' . __( 'allows you to add a different parent ID if different for other locale — default is ID in settings.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
private_key — ' . __( 'allows you to add different private key for locale if different — default is private key in settings.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
public_key — ' . __( 'allows you to add a different private key for locale if different — default is public key in settings.', 'amazon-product-in-a-post-plugin' ) . '
' . __( 'If you want to add a .com item and you have the same partner id, public key, private key and want the features showing: ', 'amazon-product-in-a-post-plugin' );
$pageTxtArr[] = ' [AMAZONPRODUCTS asin="B0084IG8TM" features="1" locale="com"]
';
$pageTxtArr[] = '
' . __( 'If you want to add a .com item and you have a different partner id, public key, private key and want the description showing but features not showing: ', 'amazon-product-in-a-post-plugin' );
$pageTxtArr[] = ' [AMAZONPRODUCTS asin="B0084IG8TM,B005LAIHPE" locale="com" public_key="AKIAJDRNJ6O997HKGXW" private_key="Nzg499eVysc5yjcZwrIV3bhDti/OGyRHEYOWO005" partner_id="mynewid-20"]
';
$pageTxtArr[] = '
' . __( 'If you just want to use your same locale but want 2 items with no list price and features showing: ', 'amazon-product-in-a-post-plugin' );
$pageTxtArr[] = ' [AMAZONPRODUCTS asin="B0084IG8TM,B005LAIHPE" features="1" listprice="0"]
';
$pageTxtArr[] = '
' . __( 'If you just want 2 products with regular settings: ', 'amazon-product-in-a-post-plugin' );
$pageTxtArr[] = ' [AMAZONPRODUCTS asin="B0084IG8TM,B005LAIHPE"]
';
$pageTxtArr[] = '
' . __( 'If you want to add text to a product: ', 'amazon-product-in-a-post-plugin' );
$pageTxtArr[] = ' [AMAZONPRODUCTS asin="B0084IG8TM"]your text can go here![/AMAZONPRODUCTS]
' . __( 'shortcode implementation for elements only — for when you may only want specific element(s) like the title, price and image or image and description, or the title and the buy now button, etc.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
';
$pageTxtArr[] = '
asin — ' . __( 'the Amazon ASIN (up to 10 comma sep). Required ', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
locale — ' . __( 'the amazon locale, i.e., co.uk, es. This is handy of you need a product from a different locale than your default one. Applies to all ASINs in list. (optional)', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
gallery — ' . __( 'use a value of 1 to show extra photos if a product has them. Applies to all ASINs in list. (optional)', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
partner_id — ' . __( 'your amazon partner id. default is the one in the options. You can set a different one here if you have a different one for another locale or just want to split them up between multiple ids. Applies to all ASINs in list. (optional)', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
private_key — ' . __( 'amazon private key. Default is one set in options. You can set a different one if needed for another locale. Applies to all ASINs in list. (optional)', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
public_key — ' . __( 'amazon public key. Default is one set in options. You can set a different one if needed for another locale. Applies to all ASINs in list. (optional)', 'amazon-product-in-a-post-plugin' ) . '
';
//$pageTxtArr[] = '
showformat — '.__('show or hide the format in the title i.e., "Some Title (DVD)" or "Some Title (BOOK)". 1 to show 0 to hide. Applies to all ASINs. Default is 1. (optional)', 'amazon-product-in-a-post-plugin').'
';
$pageTxtArr[] = '
msg_instock — ' . __( 'message to display when an image is in stock. Applies to all ASINs. (optional)', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
msg_outofstock — ' . __( 'message to display when an image is out of stock. Applies to all ASINs in list. (optional)', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
target — ' . __( 'default is "_blank". Applies to all ASINs in list. (optional)', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
fields — ' . __( 'Fields you want to return. And valid return field form Amazon API (you could see API for list) or common fields of: title, lg-image,md-image,sm-image, large-image-link,description (or desc),ListPrice, new-price,LowestUsedPrice, button. You should have at least one field when using this shortcode, as no field will return a blank result. Applies to all ASINs in list. (optional)', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
labels — ' . __( 'Labels that correspond to the fields (if you want custom labels). They should match the fields and be comma separated and :: separated for the field name and value i.e., field name::label text,field-two::value 2, etc. These can be ASIN specific. If you have 2 ASINs, the first label field will correspond to the first ASIN, the second to the second one, and so on. (optional)', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
button_url — ' . __( 'URL for a button image, if you want to use a different image than the default one. ASIN Specific - separate the list of URLs with a comma to correspond with the ASIN. i.e., if you had 3 ASINs and wanted the first and third to have custom buttons, but the second to have the default button, use button_url="http://first.com/image1.jpg,,http://first.com/image1.jpg" (optional)', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
';
$pageTxtArr[] = '
' . __( 'Example of the new elements shortcode usage:', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
';
$pageTxtArr[] = '
' . __( 'if you want to have a product with only a large image, the title and button, you would use:', 'amazon-product-in-a-post-plugin' ) . ' ';
$pageTxtArr[] = ' [amazon-element asin="0753515032" fields="title,lg-image,large-image-link,button"]
';
$pageTxtArr[] = '
' . __( 'If you want that same product to have the description, you would use:', 'amazon-product-in-a-post-plugin' ) . ' ';
$pageTxtArr[] = ' [amazon-element asin="0753515032" fields="title,lg-image,large-image-link,desc,button"]
';
$pageTxtArr[] = '
' . __( 'If you want that same product to have the list price and the new price, you would use:', 'amazon-product-in-a-post-plugin' ) . ' ';
$pageTxtArr[] = ' [amazon-element asin="0753515032" fields="title,lg-image,large-image-link,desc,ListPrice,new-price,button" msg_instock="in Stock" msg_outofstock="no more left!"] ';
$pageTxtArr[] = ' '.__('The msg_instock and msg_outofstock are optional fields.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'If you want to add som of your own text to a product, and makeit part of the post, you could do something like this: ', 'amazon-product-in-a-post-plugin' );
$pageTxtArr[] = ' [amazon-element asin="0753515032" fields="title,lg-image,large-image-link" labels="large-image-link::click for larger image:,title-wrap::h2,title::Richard Branson: Business Stripped Bare"]Some normal content text here.[amazon-element asin="0753515032" fields="desc,gallery,ListPrice,new-price,LowestUsedPrice,button" labels="desc::Book Description:,ListPrice::SRP:,new-price::New From:,LowestUsedPrice::Used From:" msg_instock="Available"]
';
$pageTxtArr[] = '
';
$pageTxtArr[] = '
' . __( 'Available Fields for the shortcode:', 'amazon-product-in-a-post-plugin' ) . '
' .'UPC - ' .__( 'Universal Product Code, which is a 12 digit number, 6 of which represents an item\'s manufacturer. These numbers are translated into a bar code that is printed on an item or its packaging.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' .'CustomerReviews - '. __( 'Product Customer Reviews (shown in an iframe only).', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = __( ' Available only to their select product groups and not available in all locales. Try it first to see if it returns a value. For example, the Actor field is not going to be returned if the product is a computer or some form of electronics, but would be returned if the product was a DVD or Blu-ray Movie.', 'amazon-product-in-a-post-plugin' );
$pageTxtArr[] = '
' . __( 'Setting Up an Amazon Affiliate Account', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'There are 2 steps to using this plug-in to make additional income as an Amazon Affiliate. The first is to sign up for an Amazon Affiliate Account. The second is to get a set of Product Advertising API keys so the plug-in can access the product API and return the correct products. Both of these steps are a little intense, but if you have about 15-20 minutes, you can set up everything you need to start making money.', 'amazon-product-in-a-post-plugin' ) . '
' . __( 'Sign up for your Amazon Affiliate/Partner account at one of the following URLs (choose the correct link based on your Amazon location):', 'amazon-product-in-a-post-plugin' );
$pageTxtArr[] = '
' . __( 'Amazon requires that you have a different affiliate ID for each country (aka, locale).', 'amazon-product-in-a-post-plugin' ).'
';
$pageTxtArr[] = '
' . __( 'Since the Affiliate signup has not changed much over the years, and it is not too difficult, I will not go into it in any more detail. Follow the steps until you are issued your affiliate partner ID. Paste that into the plug-in options page.', 'amazon-product-in-a-post-plugin' ).'
' . __( 'Step 2 - Signing Up for the Amazon Product Advertising API', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'This next step can be a little frustrating and one of the most time consuming. Not for the amount of actual time it takes to sign up, but for the time you may have to wait to get your API approval.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'After you have created your Amazon Affiliate Account, sign in. Then go to "TOOLS" and "Product Advertising API". If your account was approved previously (if you already had an account), then you can move right on to signing up for the Product Advertising API.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'If your account is not yet approved, there are some things you need to be aware of:', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'As of May 1, 2018, Amazon now requires complete approval of your affiliate account before you can use the Product Advertising API. This makes it difficult to use this plugin immediately for most people. If you already have an approved Affiliate account from prior to May 1, 2018, then it should be much easer for you.' ) . '
';
$pageTxtArr[] = '
' . __( 'If your account requires approval (most will unless you already have one from prior), you will see an information message like this on the Advertising API page. This means they are still reviewing your site/application for the Amazon Affiliate program and you will have to wait until that process is completed before you can use this plugin fully.' ) ;
$pageTxtArr[] = '
';
$pageTxtArr[] = '
' . __( 'The approval process takes time!', 'amazon-product-in-a-post-plugin' ) .' ' . __( 'Amazon will not fully approve the affiliate account until after you make a few sales. They require 3 sales in the first 180 days after signup, before they will review your site for complete approval.' ) . '
';
$pageTxtArr[] = '
' . __( 'Using Amazon\'s other link building methods (located on the affiliate site), you will need to create a few links to start generating traffic and get a few sales. You can start setting up your site (if you have not done so already) and add the links into products or sidebars.', 'amazon-product-in-a-post-plugin' ).'
' ;
$pageTxtArr[] = '
' . __( 'After you generate a few sales, you will then be able to use the plugin to create actual product layouts on your site.', 'amazon-product-in-a-post-plugin' ).'
' ;
$pageTxtArr[] = '
' . __( 'See the "Next Steps" tab for some helpful tips on getting approved by Amazon.', 'amazon-product-in-a-post-plugin' ).'
' ;
$pageTxtArr[] = '
';
$pageTxtArr[] = '
'. __( 'IMPORTANT! Once you get access to the Amazon Product Advertisig API and receive your API Keys, DO NOT give then outto just anyone. Intentionally disclosing your Secret Key to other parties is against Amazon\'s terms of use and is considered grounds for account suspension or deletion (without payment of any due earnings). They take the key security very seriously and you can be held accountable for any misuse of your keys, should you give them out to anyone. So keep them secret. If you request help from us to solve an issue, we may ask you to change your keys after we are done helping you - just so you can feel safe and secure about the secrecy of your keys.','amazon-product-in-a-post-plugin').'
'. __( 'If already have an approved Amazon Affiliate Account and you are using the Amazon IAM Management Console, your Access Key ID will be located under the "Your Security Credentials" page. They will NOT show you your Secret Access Key here. If you loose it, you MUST generate a new Root Key.','amazon-product-in-a-post-plugin').'
';
$pageTxtArr[] = '
'. __( 'After you generate the Root Key, it will serve the browser with a csv file that has both the Access Key ID and the Secret Access Key inside.','amazon-product-in-a-post-plugin').'
' . __( 'To ensure that your Amazon Affiliate application is accepted, you will need to follow some trusted guidelines:', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
';
$pageTxtArr[] = '
' . __( 'Your website needs to be LIVE.', 'amazon-product-in-a-post-plugin' ) . ' ' . __( 'If your website is not live, or you have an "under construction page" or a Maintenance page displayed, you will not be approved.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'Add the required Disclaimer to your site.', 'amazon-product-in-a-post-plugin' ) . ' ' . __( 'See below for information on the disclaimer. Amazon WILL NOT approve your site without one', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'Set up a few products links.', 'amazon-product-in-a-post-plugin' ) . ' ' . __( 'If you are a new affiliate, your site needs to have some links or buttons to Amazon products. Amazon wants to see that you are linking correctly according to their terms of service agreement.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'Have some unique content.', 'amazon-product-in-a-post-plugin' ) . ' ' . __( 'You need to have some other content besides just Amazon Links or Products. If all you have is a site with links to Amazon, you will not be approved. Add some content to your pages like your own review or even some helpful information about the product you are trying to sell. The most successful Amazon affiliates use products to enhance their unique content.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'Limit Banners/Ads on the site.', 'amazon-product-in-a-post-plugin' ) . ' ' . __( 'If your site uses an lot of advertising but does not have a lot of content, then Amazon will not approve you. They do not like sites that are Ad heavy. You should have more content than you do advertisements. Ad heavy sites look like revenue traps to the visitor and Amazon does not want to be associated with that.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'Make your products relevant to your site\'s focus/market', 'amazon-product-in-a-post-plugin' ) . ' ' . __( 'Try to use relevant products whenever possible. For example, if you blob about Home Gardening, use products related to Home Gardening - not TVs or Electronics. Amazon will see you are serious about your affiliate account if you have relative products with a good proportion of unique content to products.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'Be Patient.', 'amazon-product-in-a-post-plugin' ) . ' ' . __( 'It can take several weeks or longer for Amazon to review everything and they will not fully approve the application until after you refer 3 sales in within the first 180 days after you sign up.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
';
$pageTxtArr[] = '
' . __( 'After your affiliate account is approved, you can make some "tweaks" if needed - mainly you can start adding products via the plugin to make things easier. Don\'t immediately throw in tons of products or stop adding content and only products. If Amazon gets a complaint or they think you are abusing the terms of use, they can review the site again and decide to revoke your affiliate account. Once they do that, you have very little chance of getting it back.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = ' ';
$pageTxtArr[] = '
' . __( 'An Amazon Disclaimer for your site', 'Amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'All Amazon Affiliates that sell products on their websites are required to have a disclaimer on their site in a visible location that states that they are earning money from Amazon sales. We recommend that you add something like the following statement to your site footer or in a sidebar widget near the bottom of your site (change [Website Name] to your website name):', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( '[Website Name] is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for website owners to earn advertising fees by advertising and linking to amazon.com, audible.com, and any other website that may be affiliated with Amazon Service LLC Associates Program. As an Amazon Associate [I or we] earn from qualifying purchases.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'If you want to use a shorter disclaimer, you must, at the very least, use something like this:', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'As an Amazon Associate [I or we] earn from qualifying purchases.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'The above disclaimer is the correct minimum according to Amazon\'s Terms of Service/Use as of May 1, 2018. This may change so be sure to check the terms of use regularly.', 'amazon-product-in-a-post-plugin' ) . '
' . __( 'If you need help trying to figure out what you need to do to be approved, or you want us to help you set up your site so you will be approved, please let us know.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'We do charge a very modest fee for this service. Costs generally range from about $50 to $250 depending on how much help you need setting everything up.', 'amazon-product-in-a-post-plugin' ) . '
' . __( 'What we CAN help with:', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
';
$pageTxtArr[] = '
' . __( 'Give you guidance on what you need to do on your site to increase your chances of being approved by Amazon.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'We can add disclaimers to your site that comply with Amazon\'s terms of service.' , 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'We can add Amazon Banners or Promotions.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'We can give suggestions on the type of links or products that are a right fit for your site.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'We can help fix general WordPress errors and issues.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
';
$pageTxtArr[] = '
' . __( 'What we CAN\'T help with:', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
';
$pageTxtArr[] = '
' . __( 'We cannot sign up for your Affiliate Account or Product Advertising API account for you.', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
' . __( 'We cannot set up all of your products for you (well, we can, but the costs will be much greater than $250).' , 'amazon-product-in-a-post-plugin' ) . '
' . __( 'We cannot create your website for you (again, we can, but the costs will be much greater than $250).', 'amazon-product-in-a-post-plugin' ) . '
';
$pageTxtArr[] = '
';
$pageTxtArr[] = '
' . __( 'If you need help with anything other than plugin related items, please contact us for a quote on our services - i.e., General WordPress consulting, Theme Programming/Modifications, Plugin creation/modification - or just about any WordPress related item.', 'amazon-product-in-a-post-plugin' ) . '
' . __( 'Amazon Product in a Post FAQs/Help', 'amazon-product-in-a-post-plugin' ) . '
' . sprintf( __( 'The FAQS are now on a feed that can be updated on the fly. If you have a question and don\'t see an answer, please send an email to %1$s and ask your question. If it is relevant to the plugin, it will be added to the FAQs feed so it will show up here. Please be sure to include the plugin you are asking a question about (Amazon Product in a Post Plugin), the Debugging Key (located on the options page) and any other information like your WordPress version and examples if the plugin is not working correctly for you. THANKS!', 'amazon-product-in-a-post-plugin' ), 'plugins@fischercreativemedia.com' ) . '
' . __( 'Product post has been saved. To edit, use the standard Post Edit options.', 'amazon-product-in-a-post-plugin' ) . '
';
}
echo '
' . __( 'This function will allow you to add a new post for an Amazon Product - no need to create a post then add the ASIN. Once you add a Product Post, you can edit the information with the normal Post Edit options.', 'amazon-product-in-a-post-plugin' ) . '
';
$extrasec = array();
$extrasec[] = ' ' . __( 'Uses Add to Cart URL instead of product page URL. Heps with 90 day conversion cookie.', 'amazon-product-in-a-post-plugin' ) . ' ';
$extrasec[] = ' ' . __( 'if available. This will be IN ADDITION TO your own content.', 'amazon-product-in-a-post-plugin' ) . ' ';
$extrasec[] = ' ' . __( 'if available (Consists of Amazon Approved images only). Not all products have an Amazon Image Gallery.', 'amazon-product-in-a-post-plugin' ) . ' ';
$extrasec[] = ' ' . __( 'if available. Not all items have this feature.', 'amazon-product-in-a-post-plugin' ) . ' ';
$extrasec[] = ' ' . __( 'if available. Not all items have this feature.', 'amazon-product-in-a-post-plugin' ) . ' ';
$extrasec[] = ' ' . __( 'if available. Not all items have this feature.', 'amazon-product-in-a-post-plugin' ) . ' ';
/* possible remove */
//$extrasec[] = ' '.__('if available. Not all items have this feature.','amazon-product-in-a-post-plugin').' ';
//$extrasec[] = ' '.__('for example:','amazon-product-in-a-post-plugin').'
'.__('Amazon.com Price: $32.77 (as of 01/07/2018 14:11 PST').' - '.__('Details').')
'.' ';
//$extrasec[] = '' . __( 'Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on amazon.' . APIAP_LOCALE . ' at the time of purchase will apply to the purchase of this product.', 'amazon-product-in-a-post-plugin' ) . '';
echo '