20 ){$safe_amazonaws = substr( $safe_amazonaws, 0, 20 );}
$safe_amazonsecret = $_POST['amz_amazonsecret']; if( ! $safe_amazonsecret ){$safe_amazonsecret = '';}
if( strlen( $safe_amazonsecret ) > 40 ){$safe_amazonsecret = substr( $safe_amazonsecret, 0, 40 );}
$_POST['amz_amazonaws']=$safe_amazonaws; $_POST['amz_amazonsecret']=$safe_amazonsecret;
$amz_cont=get_option('amz_cont', 'insert');
$amz_amazonaws=get_option('amz_amazonaws', '');
$amz_amazonsecret=get_option('amz_amazonsecret', '');
if($amz_cont!='insert' && $amz_cont!='shortcode') $amz_cont='insert';
if(!empty($_POST['submit'])){
if(amz_info_check_nonce()===true){
update_option('amz_cont', sanitize_text_field($_POST['amz_cont'])); $amz_cont=esc_html($_POST['amz_cont']);
update_option('amz_amazonaws', sanitize_text_field($_POST['amz_amazonaws'])); $amz_amazonaws=esc_html($_POST['amz_amazonaws']);
update_option('amz_amazonsecret', sanitize_text_field($_POST['amz_amazonsecret'])); $amz_amazonsecret=esc_html($_POST['amz_amazonsecret']);
}else{
echo '
nonce error.';
}
}else{
$_POST['amz_cont']=$amz_cont;
$_POST['amz_amazonaws']=$amz_amazonaws;
$_POST['amz_amazonsecret']=$amz_amazonsecret;
}
$amz['plugin-content']=$amz_cont;
$amz['active-theme']=wp_get_theme()->get('Name');
$amz['active-plugins']=get_option('active_plugins');
if(PHP_OS == 'Linux') {$sep='/'; }else{ $sep='\\';}
$amzfile=str_replace('amz-free'.$sep.'aminfo.php','',__file__);
foreach($amz['active-plugins'] as $plugin){
unset($t); $t=get_plugin_data($amzfile.$plugin, false );
$amz['active-plugin-names'][]=$t['Name'];
}
$ul=wp_upload_dir();
$amz['urls']['blog-url']=site_url();
$amz['urls']['uploads-url']=$ul['baseurl'];
$amz['urls']['plugins-url']=plugins_url();
$amz['urls']['themes-url']=get_theme_root_uri();
foreach($wp_post_types as $posttypes){
$amz['post-types'][]=$posttypes->name;
}
?>
This is the free version of the Amazon Product Reviews Pro Plugin Amazon Affiliate Reviews that adds an Amazon product to the Reviews section or WooCommerce Products sections.
With the Pro version it can also create 3 or 5 column comparason charts and allows you to update the products price to reflect what's on Amazon.
More infomation on the Pro version here
This is the free version of the Amazon Product Reviews Plugin Amazon Affiliate Reviews that adds an Amazon product to the Reviews section or WooCommerce Products section (if WooCommerce is installed).
Current Active Theme
Shortcodes available:
[amz-main-infobox] - This displays title & some product info as well as buy now box & a link to [amz-expert]
[amz-specs] - This is for various specifications ie: (HD, yes), (screen size, 720p) etc.
[amz-expert] - This provides a link anchor to Expert Review for [amz-main-infobox], place this just above the review but after shortcodes here.
[amz-reviews-questions] - This provides 'Customer Reviews & Opinions' and 'Your Questions Answered' sections.
[amz-proscons] - This provides the products pros & cons
[amz-bottom-buybox] - This provides a buy now box with a small picture & title along with buy button.When Auto Insert is selected the above order is the display order and the main review content is inbetween [amz-expert] and [amz-reviews-quesitions].
When Shortcode is selected you can place any of the shortcodes above where you would like them to appear in the main review content.
Sections available:
'; print_r($amz); echo ''; } ?>Reviews - Add an Amazon Product to the Reviews section
WooCommerce - Add an Amazon Product to WooCommerce sectionAdditional Sections available with Pro version:
Comparison Tables - Pro version - Create a 3 or 5 column comparason chart
Update Prices - Pro version - Update prices to reflect what's on Amazon