Skip to content

Commit

Permalink
Merge pull request #269 from Pinelab-studio/fix/picqer-email
Browse files Browse the repository at this point in the history
Fix: Picqer email for guests
  • Loading branch information
martijnvdbrug authored Oct 17, 2023
2 parents b08b704 + 617ce36 commit 0cc3165
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/vendure-plugin-picqer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.0.8

- Send telephone and email address to Picqer for guest orders

# 1.0.7

- Don't set contact name in Picqer if it's the same as customer name ([#267](https://github.com/Pinelab-studio/pinelab-vendure-plugins/pull/267))
2 changes: 1 addition & 1 deletion packages/vendure-plugin-picqer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pinelab/vendure-plugin-picqer",
"version": "1.0.7",
"version": "1.0.8",
"description": "Vendure plugin syncing to orders and stock with Picqer",
"author": "Martijn van de Brug <[email protected]>",
"homepage": "https://pinelab-plugins.com/",
Expand Down
2 changes: 2 additions & 0 deletions packages/vendure-plugin-picqer/src/api/picqer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1104,6 +1104,8 @@ export class PicqerService implements OnApplicationBootstrap {
return {
idcustomer: customerId, // If none given, this creates a guest order
reference: order.code,
emailaddress: order.customer?.emailAddress ?? '',
telephone: order.customer?.phoneNumber ?? '',
deliveryname: shippingAddress.company || shippingAddress.fullName,
deliverycontactname:
shippingAddress.fullName === customerFullname
Expand Down
2 changes: 2 additions & 0 deletions packages/vendure-plugin-picqer/src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ export interface Product {
export interface OrderInput {
idcustomer?: number;
reference: string;
emailaddress: string;
telephone: string;
deliveryname?: string;
deliverycontactname?: string;
deliveryaddress?: string;
Expand Down

0 comments on commit 0cc3165

Please sign in to comment.