Skip to content

Commit

Permalink
PPC: Feature Branch (#60)
Browse files Browse the repository at this point in the history
* WIP: Iteration 1 of PPC implementation for SFCC

* Fix how PPC button is included in SFCC

* remove unused variables

* remove old code

* Initialize Bolt PPC Button (#58)

* Initialize Bolt product button when product is ready

* Fix product page button and initial implementation

* do not include connect.js in component

* move file from int_bolt_custom to int_bolt_sfra

* make linter happy

* [WIP] Fix PPC issues (#68)

* Fix PPC issues

* Stringify options and fix linting errors

* Fix no-prototype-builtins

* Update wip function name

* Update option field names

---------

Co-authored-by: Alex Portillo <[email protected]>

* Fixed following issues: (#69)

1. order confirmation page not shown.
2. order is not linked to SFCC account.

* Add PPC button for product bundle. (#70)

* Add PPC button for product bundle.

* Implement logic for bundle product quantity update.

* SFCC side PPC logic update (#71)

* Code clean up.
Add product level attribute to hide PPC button if needed.
Fix bundle product availability display issue.

* Remove unused line.

* fix typo in function name

---------

Co-authored-by: Ning W <[email protected]>
Co-authored-by: Alex Portillo <[email protected]>
Co-authored-by: Justin Xie <[email protected]>

---------

Co-authored-by: Ning W <[email protected]>
Co-authored-by: Alex Portillo <[email protected]>
Co-authored-by: Justin Xie <[email protected]>
  • Loading branch information
4 people authored Aug 3, 2023
1 parent 29609d9 commit 7fabde9
Show file tree
Hide file tree
Showing 12 changed files with 820 additions and 346 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class="row cart-and-ipay">
<div class="col-sm-12">
<input type="hidden" class="add-to-cart-url" value="${pdict.addToCartUrl}">
<button class="add-to-cart-global btn btn-primary" data-pid="${product.id}" ${!product.available ? "disabled" : ""}>
<i class="fa fa-shopping-bag"></i>
<isif condition="${product.productType === 'set' || product.productType === 'bundle'}">
${Resource.msg('button.addalltocart', 'common', null)}
<iselse>
${Resource.msg('button.addtocart', 'common', null)}
</isif>
</button>
<isinclude template="product/components/addToCartButtonExtension" />
</div>
</div>

This file was deleted.

Loading

0 comments on commit 7fabde9

Please sign in to comment.