How to use the @shopgate/pwa-common-commerce/cart/constants/Portals.CART_ITEM_PRICE_BEFORE function in @shopgate/pwa-common-commerce

To help you get started, we’ve selected a few @shopgate/pwa-common-commerce 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 / Coupon / components / Layout / index.jsx View on Github external
<title value="{coupon.label}">
      &lt;/Portal&gt;
      &lt;Portal name={portals.CART_ITEM_NAME_AFTER} props={context} /&gt;

      &lt;Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} /&gt;
      &lt;Portal name={portals.CART_ITEM_COUPON_CODE} props={context}&gt;
        &lt;Code value={coupon.code} /&gt;
      &lt;/Portal&gt;
      &lt;Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} /&gt;
    &lt;/Grid.Item&gt;
    &lt;Grid.Item className={`${styles.content} ${styles.contentLast}`} grow={1} shrink={0}&gt;
      &lt;Delete handleDelete={handleDelete} /&gt;
      &lt;CouponFreeShipping freeShipping={coupon.freeShipping} /&gt;
      { (coupon.savedPrice &amp;&amp; coupon.savedPrice.value &gt; 0) &amp;&amp;
        &lt;Fragment&gt;
          &lt;Portal name={portals.CART_ITEM_PRICE_BEFORE} props={context} /&gt;
          &lt;Portal name={portals.CART_ITEM_PRICE} props={context}&gt;
            &lt;CouponPrice currency={currency} savedPrice={coupon.savedPrice} /&gt;
          &lt;/Portal&gt;
          &lt;Portal name={portals.CART_ITEM_PRICE_AFTER} props={context} /&gt;
        &lt;/Fragment&gt;
      }
    &lt;/Grid.Item&gt;
  &lt;/Grid&gt;
);
</title>
github shopgate / pwa / themes / theme-gmd / pages / Cart / components / Item / components / Coupon / components / Layout / index.jsx View on Github external
<title value="{coupon.label}">
      &lt;/Portal&gt;
      &lt;Portal name={portals.CART_ITEM_NAME_AFTER} props={context} /&gt;

      &lt;Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} /&gt;
      &lt;Portal name={portals.CART_ITEM_COUPON_CODE} props={context}&gt;
        &lt;Code value={coupon.code} /&gt;
      &lt;/Portal&gt;
      &lt;Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} /&gt;
    &lt;/Grid.Item&gt;
    &lt;Grid.Item className={`${styles.content} ${styles.contentLast}`} grow={1} shrink={0}&gt;
      &lt;Delete handleDelete={handleDelete} /&gt;
      &lt;CouponFreeShipping freeShipping={coupon.freeShipping} /&gt;
      {(coupon.savedPrice &amp;&amp; coupon.savedPrice.value &gt; 0) &amp;&amp;
        &lt;Fragment&gt;
          &lt;Portal name={portals.CART_ITEM_PRICE_BEFORE} props={context} /&gt;
          &lt;Portal name={portals.CART_ITEM_PRICE} props={context}&gt;
            &lt;CouponPrice currency={currency} savedPrice={coupon.savedPrice} /&gt;
          &lt;/Portal&gt;
          &lt;Portal name={portals.CART_ITEM_PRICE_AFTER} props={context} /&gt;
        &lt;/Fragment&gt;
        }
    &lt;/Grid.Item&gt;
  &lt;/Grid&gt;
);
</title>
github shopgate / pwa / pages / Cart / components / Item / components / Coupon / components / Layout / index.jsx View on Github external
<title value="{coupon.label}">
      &lt;/Portal&gt;
      &lt;Portal name={portals.CART_ITEM_NAME_AFTER} props={context} /&gt;

      &lt;Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} /&gt;
      &lt;Portal name={portals.CART_ITEM_COUPON_CODE} props={context}&gt;
        &lt;Code value={coupon.code} /&gt;
      &lt;/Portal&gt;
      &lt;Portal name={portals.CART_ITEM_COUPON_CODE_BEFORE} props={context} /&gt;
    &lt;/Grid.Item&gt;
    &lt;Grid.Item className={`${styles.content} ${styles.contentLast}`} grow={1} shrink={0}&gt;
      &lt;Delete handleDelete={handleDelete} /&gt;
      { (coupon.savedPrice &amp;&amp; coupon.savedPrice.value &gt; 0) &amp;&amp;
        &lt;Fragment&gt;
          &lt;Portal name={portals.CART_ITEM_PRICE_BEFORE} props={context} /&gt;
          &lt;Portal name={portals.CART_ITEM_PRICE} props={context}&gt;
            &lt;CouponPrice currency={currency} savedPrice={coupon.savedPrice} /&gt;
          &lt;/Portal&gt;
          &lt;Portal name={portals.CART_ITEM_PRICE_AFTER} props={context} /&gt;
        &lt;/Fragment&gt;
      }
    &lt;/Grid.Item&gt;
  &lt;/Grid&gt;
);
</title>
github shopgate / pwa / pages / Cart / components / Item / components / Product / components / Layout / components / ProductPrice / index.jsx View on Github external
const ProductPrice = ({ currency, defaultPrice, specialPrice }, context) =&gt; (
  
    {!!specialPrice &amp;&amp; (
      
        
        
          
        
        
      
    )}
    
    
      
    
    
  
);

@shopgate/pwa-common-commerce

Commerce library for the Shopgate Connect PWA.

Apache-2.0
Latest version published 22 hours ago

Package Health Score

73 / 100
Full package analysis