Starting dev. open woocomerce URL in customer browser tab

This commit is contained in:
Rene V. Vergara A. 2022-12-12 19:15:22 -05:00
parent f80232d911
commit fda0128767

View file

@ -85,7 +85,6 @@ export class InvoiceComponent implements OnInit {
this.order = order; this.order = order;
this.codeString = `zcash:${this.order.address}?amount=${this.order.totalZec.toFixed(8)}&memo=${URLSafeBase64.encode(Buffer.from('ZGo Order::'.concat(this.orderId!)))}`; this.codeString = `zcash:${this.order.address}?amount=${this.order.totalZec.toFixed(8)}&memo=${URLSafeBase64.encode(Buffer.from('ZGo Order::'.concat(this.orderId!)))}`;
this.zcashUrl = this.sanitizer.bypassSecurityTrustUrl(this.codeString); this.zcashUrl = this.sanitizer.bypassSecurityTrustUrl(this.codeString);
}); });
this.nameUpdate.subscribe(name => { this.nameUpdate.subscribe(name => {
this.name = name; this.name = name;
@ -95,6 +94,10 @@ export class InvoiceComponent implements OnInit {
ngOnInit(): void { ngOnInit(): void {
} }
ngAfterViewInit(): void {
console.log('Order.externalInvoice -> ' + this.order.externalInvoice);
}
getIconStyle(order : Order) { getIconStyle(order : Order) {
if( order.paid ) if( order.paid )
return "font-size: 14px; color: #72cc50; margin-bottom: -2px;"; return "font-size: 14px; color: #72cc50; margin-bottom: -2px;";