Skip to content

Commit 019191a

Browse files
author
Jan Polak
committed
rename module #3
1 parent 13f8919 commit 019191a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/code/Magento/InstantPurchase/etc/frontend/routes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
99
<router id="standard">
10-
<route id="onetouchorder" frontName="onetouchorder">
10+
<route id="instantpurchase" frontName="instantpurchase">
1111
<module name="Magento_InstantPurchase" />
1212
</route>
1313
</router>

app/code/Magento/InstantPurchase/view/frontend/web/js/view/instant-purchase.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ define(
5454
var self = this;
5555

5656
this._super();
57-
$.get(urlBuilder.build('onetouchorder/button/available')).done(function (data) {
57+
$.get(urlBuilder.build('instantpurchase/button/available')).done(function (data) {
5858
if (typeof data.available !== 'undefined') {
5959
self.showButton(data.available);
6060
self.options.cards(data.cards);
@@ -101,7 +101,7 @@ define(
101101
/**
102102
* Confirmation method
103103
*/
104-
oneTouchOrder: function () {
104+
instantPurchase: function () {
105105
var self = this,
106106
form = $(self.options.formSelector),
107107
confirmTemplate = mageTemplate(this.options.confirmTemplate);
@@ -124,7 +124,7 @@ define(
124124
/** @inheritdoc */
125125
confirm: function () {
126126
$.ajax({
127-
url: urlBuilder.build('onetouchorder/button/placeOrder'),
127+
url: urlBuilder.build('instantpurchase/button/placeOrder'),
128128
data: form.serialize(),
129129
type: 'post',
130130
dataType: 'json',

app/code/Magento/InstantPurchase/view/frontend/web/template/instant-purchase.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<button type="button"
33
class="action primary onetouch"
44
id="product-onetouch-button"
5-
data-bind="click: oneTouchOrder, attr:{title: buttonText}">
5+
data-bind="click: instantPurchase, attr:{title: buttonText}">
66
<span data-bind="text: buttonText"></span>
77
</button>
88

0 commit comments

Comments
 (0)