Skip to content

Instantly share code, notes, and snippets.

View karen-white's full-sized avatar

Karen White karen-white

View GitHub Profile
<script>
function generateMarkup() {
const confirmation = document.querySelector('.orderConfirmation-section:last-of-type');
confirmation.innerHTML += `<div id="shippingMap" >
<h2 id="mapHeader" style="margin-bottom: 15px;">We're sending your order to:</h3>
{{#if customer}}
<a href="/account.php?action=order_status" style="display:block;">Check my order status</a>
{{/if}}
<iframe id="map" width="450" height="300" ></iframe>
</div>`;
<?php
/**
* Plugin Name: BC4WP: GeoIP Region Activation
* Plugin URI: http://www.bigcommerce.com/wordpress
* Description: Proof of concept for region activation by GeoIP
* Version: 0.5
* Author: BigCommerce
* Author URI: http://www.bigcommerce.com
*/
<?php
/*
Plugin Name: BC4WP > Customer Group Category Visibility
Description: Example plugin to hide BC categories based on customer group access
Author: BigCommerce
Version: 0.5
*/
// Set to -1 to not set a default customer group for visibility
// (using 0 will pull in the first customer group from BC)
@karen-white
karen-white / nlu.md
Created September 2, 2020 15:36
NLU training data for non-CDD assistant

intent:greet

  • hi
  • hey whatsup
  • hello morning are you there
  • hello
  • hi whatsup
  • hello greetings how is it going
  • good day how is it going
  • hey good afternoon whatsup
  • hi are you around