Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
f487845
app id config
RoyNoymanW Sep 17, 2024
fcfeb5b
change readme name
ronen-erez Sep 17, 2024
c14158a
modals and plugins
RoyNoymanW Sep 17, 2024
510cc43
add api for order
ronen-erez Sep 17, 2024
7e018e9
Merge remote-tracking branch 'origin/master'
ronen-erez Sep 17, 2024
8a27576
add method to get order details, phone number and products
ronen-erez Sep 17, 2024
c453e5a
extract orderId from props.
etaybarzilay89 Sep 17, 2024
72b8582
generateWhatsappLink
etaybarzilay89 Sep 17, 2024
5fec6f4
change the response to be and order
ronen-erez Sep 17, 2024
e8fe542
Merge remote-tracking branch 'origin/master'
ronen-erez Sep 17, 2024
94b715d
ugly code
RoyNoymanW Sep 17, 2024
a8bedce
validate phone num,ber file
RoyNoymanW Sep 18, 2024
9867a1a
open whatasapp window
RoyNoymanW Sep 18, 2024
87330e2
add produce details and contact details
ronen-erez Sep 18, 2024
d0ba33d
Merge remote-tracking branch 'origin/master'
ronen-erez Sep 18, 2024
8ad9756
Edit whatsapp message
etaybarzilay89 Sep 18, 2024
76fafb1
update message and method params to whatsup generator
ronen-erez Sep 18, 2024
c57a6f5
Merge remote-tracking branch 'origin/master'
ronen-erez Sep 18, 2024
8dd34ad
orderDetails changed
RoyNoymanW Sep 18, 2024
edc6049
whatsapp icon in the plugin
etaybarzilay89 Sep 18, 2024
f865fe5
Merge remote-tracking branch 'origin/master'
ronen-erez Sep 18, 2024
7a720b8
selected product
RoyNoymanW Sep 18, 2024
5d03170
fix ui
RoyNoymanW Sep 18, 2024
5bee2f6
Merge remote-tracking branch 'origin/master'
ronen-erez Sep 18, 2024
24fee16
contact name
RoyNoymanW Sep 18, 2024
1ec45ef
generate correct link to product page
etaybarzilay89 Sep 18, 2024
487cd1f
Merge remote-tracking branch 'origin/master'
ronen-erez Sep 18, 2024
9d20b29
inputArea works.
etaybarzilay89 Sep 18, 2024
c22813f
Merge remote-tracking branch 'origin/master'
ronen-erez Sep 18, 2024
881149b
modal width change and added divider
etaybarzilay89 Sep 18, 2024
45ac243
radio
RoyNoymanW Sep 18, 2024
c5a8b64
height and width
RoyNoymanW Sep 18, 2024
7b28165
Merge remote-tracking branch 'origin/master'
ronen-erez Sep 18, 2024
195dd95
select first by default
etaybarzilay89 Sep 18, 2024
a5c10f3
Merge remote-tracking branch 'origin/master'
ronen-erez Sep 18, 2024
0a4fab6
add read me content
ronen-erez Sep 18, 2024
4226e23
image size
etaybarzilay89 Sep 18, 2024
250fc8d
whatsapp message changees
etaybarzilay89 Sep 18, 2024
8e04ccb
dropdown coupons
RoyNoymanW Sep 18, 2024
62e794e
coupons
RoyNoymanW Sep 18, 2024
a30c7ef
clean project
noazalsman1 Dec 1, 2024
418e332
small fix
noazalsman1 Dec 1, 2024
ec28efe
remove all unrelated files
noazalsman1 Dec 1, 2024
51e3f04
extract url to var
noazalsman1 Dec 3, 2024
fe58151
Merge pull request #1 from RoyNoymanW/finalize-project
RoyNoymanW Dec 3, 2024
395db46
wip
dor-chaouat Dec 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ yarn-error.log*
# Misc
.DS_Store
out

.yarn
.idea
Binary file modified .yarn/install-state.gz
Binary file not shown.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
# carbon-offset-app
# Order custom actions template

This project was bootstrapped with [Create Wix App](https://www.npmjs.com/package/@wix/create-app).
Read more about it in the [Wix CLI for Apps
documentation](https://dev.wix.com/docs/build-apps/developer-tools/cli/get-started/about-the-wix-cli-for-apps).

This template demonstrate the usage of the Ecom orderes SDK, the addition of a menu item to the Order page in the Business Manager and an integration with WhatsUp web.

### Using the Ecom orders SDK
The Ecom orders SDK is a powerful tool that allows you to interact with the orders in the store.
<br>In this template we use the SDK to get the order details and the order items.
//https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/get-order

### Adding a menu item to the Order page in the Business Manager
The Business Manager is the place where the store owner can manage his store.
In this template we add a menu item to the Order page in the Business Manager.
<br>The file (/src/dashboard/menu-plugins/my-plugin/plugin.json) demionstrate how to add a menu item to the Order page in the Business Manager.

### Integration with WhatsUp web
WhatsUp web is a popular messaging app that allows you to send messages directly to your customers.
In this template we integrate with WhatsUp web and send an up sale message to the customer.
<br> the message includes the selected product details and a link to the store product with a coupon code.
## Setup 🔧

##### Install dependencies:
Expand Down
Binary file removed src/assets/checkout.png
Binary file not shown.
35 changes: 0 additions & 35 deletions src/backend/api/checkout/api.ts

This file was deleted.

10 changes: 10 additions & 0 deletions src/backend/api/order/api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { orders } from '@wix/ecom';

export async function GET(req: Request) {
const id = new URL(req.url).searchParams.get('orderId') as string;

// https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/get-order
const order = await orders.getOrder(id);

return Response.json(order);
};
38 changes: 0 additions & 38 deletions src/backend/api/settings/api.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/backend/consts.ts

This file was deleted.

66 changes: 0 additions & 66 deletions src/backend/database.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/backend/events/cleanup/event.ts

This file was deleted.

49 changes: 0 additions & 49 deletions src/backend/events/installation/event.ts

This file was deleted.

This file was deleted.

This file was deleted.

Loading