This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puttygen ~/Desktop/bemad_large.ppk -O private-openssh -o bemad.pem | |
ssh -i bemad.pem ubuntu@35.160.191.194 | |
Laura@123 | |
BemAAd2@15 | |
URL: http://35.160.191.194/admin_1c8k69 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Canada; | |
import JavaAPI.*; | |
public class TestCanadaEncResAddCC | |
{ | |
public static void main(String args[]) | |
{ | |
String store_id = "moneris"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.rumman.magentoAPI; | |
import java.net.URL; | |
import org.rumman.services.Credentials; | |
import Magento.CatalogProductEntity; | |
import Magento.MagentoServiceLocator; | |
import Magento.StoreEntity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model_fields = self.env['product.product'].fields_get() | |
for name, field in model_fields.iteritems(): | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
what |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var EwayPayment = Class.create(); | |
EwayPayment.isEwayRapidMethod = function(method) { | |
return ("ewayrapid_saved" === method || "ewayrapid_notsaved" === method || "ewayrapid_ewayone" === method); | |
}; | |
EwayPayment.supportCardTypes = ['AE', 'VI', 'MC', 'JCB', 'DC', 'VE', 'ME']; | |
EwayPayment.prototype = { | |
paymentUrl : null, | |
ewayPayment: this, | |
initialize: function(form, encryptionKey) { | |
if (form) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var placeSearch, autocomplete; | |
var componentForm = { | |
street_number: 'short_name', | |
route: 'long_name', | |
locality: 'long_name', | |
administrative_area_level_1: 'short_name', | |
country: 'long_name', | |
postal_code: 'short_name' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
///new | |
setInterval(function () { | |
$('.em-btn-addto a.button.btn-cart').each(function () { | |
var popup = $(this).data('popup'); | |
if (popup != 'popup') { | |
$(this).on('click' ,function () { | |
$('body').addClass('open-popup'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function order_item_meta($item_id, $values) | |
{ | |
if (is_array($values)) { | |
if (isset($values['giftcard_option'])) { | |
if (!empty($values['giftcard_option'])) { | |
wc_add_order_item_meta($item_id, 'giftcard_option', $values['giftcard_option']); | |
$filtered_array = $values['giftcard_option']; | |
foreach ($filtered_array as $section) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function item_check_fb_login_ajax() { | |
$user_id = get_current_user_id(); | |
if (FGC_ActiveCampaign::check_active_subscription_by_user_id($user_id)) { | |
$cart_content = WC()->cart->cart_contents; | |
if (count($cart_content) > 0) { | |
foreach ($cart_content as $key => $value) { | |
if (!$value->is_type( 'subscription')) { | |
$return = array( |
OlderNewer