How to use the @shopgate/pwa-common-commerce/cart/constants/Portals.CART_ITEM_PRICE 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
<code value="{coupon.code}">
      </code><code value="{coupon.code}">
      
    
    
      
      
      { (coupon.savedPrice &amp;&amp; coupon.savedPrice.value &gt; 0) &amp;&amp;
        
          
          
            
          
          
        
      }
    
  
);
</code>
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 / themes / theme-gmd / pages / Cart / components / Item / components / Coupon / components / Layout / index.jsx View on Github external
<code value="{coupon.code}">
      </code><code value="{coupon.code}">
      
    
    
      
      
      {(coupon.savedPrice &amp;&amp; coupon.savedPrice.value &gt; 0) &amp;&amp;
        
          
          
            
          
          
        
        }
    
  
);
</code>

@shopgate/pwa-common-commerce

Commerce library for the Shopgate Connect PWA.

Apache-2.0
Latest version published 20 hours ago

Package Health Score

73 / 100
Full package analysis