Domain name setup to aws hosting

Please follow steps below specified….

  1. AWS services  ->  Route 53  -> Hosted zones.
  2. Click on “Create Hosted Zone” fill domain name with “Public hosted zone”.
  3. Copy NS records from Route 53.
  4. Login into domain registration like Godaddy  ->  Name servers  ->  Add NS records which are copied from Route 53.
  5. AWS services  ->  Route 53  -> Hosted zones.
  6. Select created hosted zone.  ->  Create Record Set  ->  Name with “www” and value with public IP which is founded in ec2 instance.
  7. It’s will take time to propagate wait some time and then check domain name.
Advertisement

Working with API with PHP & jQuery

/*jQuery Code*/
$.ajax({
type: ‘POST’,
url: re_url,
data:{“property”: “value”},
}).success(function(result){
$(“.data_div”).html(result);
});

/*PHP code*/
$url = “API URL”;
$doump_values = file_get_contents($url);
$json = json_decode($new_results);

echo “Value: “.$json->property;

Change woocommerce variation dropdown text

You will need to copy variable.php and create a coy in your theme.

Look for this on line 24

<option value=""><?php echo __( 'Choose an option', 'woocommerce' ) ?>&hellip;</option>

and replace it with

<option value=""><?php echo sprintf( __( 'Choose a %s', 'woocommerce' ), $woocommerce->attribute_label( $name ) ) ?>&hellip;</option>

This invoice has already been paid. For more information, please contact the merchant in Woo-Commerce

Please find solutions below

  1. This is paypal, not a bug. Add a prefix via PP settings in WooCommerce to get around this.
  2. I will reopen and investigate this if someone can give us steps to reproduce. We need a clean way to reproduce it, so no other plugins enabled, nothing like W3 Total Cache (not even object caching, to be safe).
  3. I am seeing duplicate order IDs and lost orders. We had a customer dispute a payment on Paypal because she didn’t get her order, but she was charged. Her order is not in our system, but the order # exists with a completely different customer, with a status of “cancelled”.We are using Paypal IPN. We see numerous orders show as paid in paypal, then the order gets cancelled in WooCommerce automatically.Not sure if this is the same issue as above, but we’re very concerned with the integrity of our system at this point.
  4. Step 1, add one product with 1EURO price. Buy th eproduct via paypal. Go again in the shop and try to buy again the same product. After your browser transfers you to paypal interface, there is a message: This invoice has already been paid. For more information, please contact the merchant.”.

Add custom login / logout link in wordpress menu

Place below code in functions.php

<?php

add_filter(‘wp_nav_menu_items’, ‘add_login_logout_link’, 10, 2);
function add_login_logout_link($items, $args) {
ob_start();
wp_loginout(‘index.php’);
$loginoutlink = ob_get_contents();
ob_end_clean();
$items .= ‘<li>’. $loginoutlink .'</li>’;
return $items;
}

?>