How to use the @shopgate/engage/core.bin2hex function in @shopgate/engage

To help you get started, we’ve selected a few @shopgate/engage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shopgate / pwa / themes / theme-ios11 / pages / Cart / components / Item / components / Product / components / Layout / index.jsx View on Github external
const Layout = (props, context) => (
  
    
      
        <title value="{props.product.name}">
      &lt;/Link&gt;
      &lt;Grid className={styles.info}&gt;
        &lt;Grid.Item grow={1} className={styles.properties}&gt;
          &lt;ProductProperties properties={props.product.properties} lineClamp={2} /&gt;
        &lt;/Grid.Item&gt;
        &lt;Grid.Item grow={1} className={styles.price}&gt;
          &lt;ProductPrice
            currency={props.currency}
            defaultPrice={props.product.price.default}
            specialPrice={props.product.price.special}
          /&gt;</title>
github shopgate / pwa / themes / theme-ios11 / components / Reviews / components / Header / components / AverageRating / index.jsx View on Github external
const AverageRating = ({ average, count, productId }) =&gt; {
  if (!productId) {
    return null;
  }

  return (
    
      
      
    
  );
};
github shopgate / pwa / themes / theme-gmd / pages / Cart / components / Item / components / Product / index.jsx View on Github external
currency,
      messages,
      product,
      quantity,
    } = this.props;
    const { editMode } = this.state;

    return (
      
        <div> { this.cardElement = element; }} data-test-id="cartItem"&gt;
          {messages.length &gt; 0 &amp;&amp; (
            
          )}
          
            
          
        </div>
github shopgate / pwa / themes / theme-ios11 / pages / Cart / components / Item / components / Product / index.jsx View on Github external
currency,
      messages,
      product,
      quantity,
    } = this.props;
    const { editMode } = this.state;

    return (
      
        <div> { this.cardElement = element; }} data-test-id="cartItem"&gt;
          {messages.length &gt; 0 &amp;&amp; (
            
          )}
          
            
          
        </div>
github shopgate / pwa / themes / theme-ios11 / components / ProductCard / index.jsx View on Github external
const ProductCard = ({
  product, hidePrice, hideRating, hideName, titleRows,
}) =&gt; (
  
    
    {!!(!hidePrice &amp;&amp; product.price.discount) &amp;&amp; (
      <div>
        
        
          
        
        
      </div>
    )}
    {(!(hidePrice &amp;&amp; hideRating)) &amp;&amp; (
      <div></div>
github shopgate / pwa / themes / theme-ios11 / pages / Product / components / Media / components / ImageSlider / connector.js View on Github external
navigate: currentSlide =>
    dispatch(historyPush({
      pathname: `${ITEM_PATH}/${bin2hex(props.productId)}/gallery/${currentSlide}`,
    })),
});