Skip to content

Commit

Permalink
feat(payment): PAYPAL-1661 added Accelerated buttons container to PDP…
Browse files Browse the repository at this point in the history
… add to cart popup
  • Loading branch information
serhii-tkachenko committed Sep 20, 2022
1 parent 4017b89 commit 1afb670
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Draft
- Add Accelerated buttons container into 'add to cart' popup on product details page [#2264](https://github.com/bigcommerce/cornerstone/pull/2264)

## 6.6.1 (09-14-2022)

Expand Down
4 changes: 4 additions & 0 deletions assets/scss/components/stencil/previewCart/_previewCart.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
margin-top: spacing("single");
}

.previewCartCheckout-acceleratedCheckoutButtons {
width: 100%;
}

.previewCartCheckout-additionalCheckoutButtons {
p {
float: none !important; // 1
Expand Down
6 changes: 5 additions & 1 deletion templates/components/cart/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ <h1 class="modal-header-title">
<div class="previewCart">
<section class="previewCartCheckout">
{{#if cart.show_primary_checkout_button}}
<a href="{{urls.checkout.single_address}}" class="button button--primary">
{{#if cart.additional_checkout_buttons}}
<div data-cart-accelerated-checkout-buttons class="previewCartCheckout-acceleratedCheckoutButtons"></div>
{{/if}}

<a href="{{urls.checkout.single_address}}" class="button button--primary" data-primary-checkout-now-action>
{{lang 'cart.added_to_cart.proceed_to_checkout'}}
</a>
{{/if}}
Expand Down

0 comments on commit 1afb670

Please sign in to comment.