-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
96887ad
commit f5f4123
Showing
4 changed files
with
58 additions
and
34 deletions.
There are no files selected for viewing
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
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
58 changes: 38 additions & 20 deletions
58
app/design/frontend/base/default/layout/mm/paypalpaylater.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,39 @@ | ||
<?xml version="1.0"?> | ||
<layout version="0.1.0"> | ||
<checkout_cart_index> | ||
<reference name="checkout.cart.methods"> | ||
<block type="mm_paypalpaylater/messages" name="checkout.cart.methods.paypalpaylater" before="-" template="mm/paypalpaylater/messages.phtml"> | ||
<action method="setIsQuoteAllowed"><value>1</value></action> | ||
</block> | ||
</reference> | ||
</checkout_cart_index> | ||
|
||
<catalog_product_view> | ||
<reference name="product.info.addtocart"> | ||
<block type="page/html_wrapper" name="product.info.addtocart.paypalpaylater.wrapper" translate="label"> | ||
<label>PayPal Pay Later Banner Wrapper</label> | ||
<block type="mm_paypalpaylater/messages" name="product.info.addtocart.paypalpaylater" template="mm/paypalpaylater/messages.phtml"> | ||
<action method="setIsInCatalogProduct"><value>1</value></action> | ||
</block> | ||
</block> | ||
</reference> | ||
</catalog_product_view> | ||
<?xml version="1.0"?> | ||
<layout version="0.1.0"> | ||
<default> | ||
<reference name="head"> | ||
<block type="core/text" name="mm_paypalpaylater_sdk" after="-"> | ||
<action method="setText"> | ||
<text><![CDATA[ | ||
<link rel="preconnect" href="//www.paypal.com /> | ||
]]> </text> | ||
</action> | ||
</block> | ||
</reference> | ||
<reference name="before_body_end"> | ||
<block type="core/text" name="mm_paypalpaylater_sdk" after="-"> | ||
<action method="setText"> | ||
<text helper="mm_paypalpaylater/getSrcSdk" /> | ||
</action> | ||
</block> | ||
</reference> | ||
</default> | ||
<checkout_cart_index> | ||
<reference name="checkout.cart.methods"> | ||
<block type="mm_paypalpaylater/messages" name="checkout.cart.methods.paypalpaylater" before="-" template="mm/paypalpaylater/messages.phtml"> | ||
<action method="setIsQuoteAllowed"><value>1</value></action> | ||
</block> | ||
</reference> | ||
</checkout_cart_index> | ||
|
||
<catalog_product_view> | ||
<reference name="product.info.addtocart"> | ||
<block type="page/html_wrapper" name="product.info.addtocart.paypalpaylater.wrapper" translate="label"> | ||
<label>PayPal Pay Later Banner Wrapper</label> | ||
<block type="mm_paypalpaylater/messages" name="product.info.addtocart.paypalpaylater" template="mm/paypalpaylater/messages.phtml"> | ||
<action method="setIsInCatalogProduct"><value>1</value></action> | ||
</block> | ||
</block> | ||
</reference> | ||
</catalog_product_view> | ||
</layout> |
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