Hi @devansh-webkul ,
It's working. Thanks for your help!
Hi @devansh-webkul ,
It's working. Thanks for your help!
@devansh-webkul said in Add Tracking URL to shipping email template:
ust need to add the tracking number in the admin panel.
Hi @devansh-webkul ,
but I want to add pass another URL field in the email template, may I know where can I add the code and pass it to the email template ?
Hi, I'm using 1.2.0 currently
May I know how do I add a tracking URL in the shipping email template? I was trying to add the code inside NewShipmentNotification.php
but I'm not sure how to pass it into the view template?
public function build()
{
$order = $this->shipment->order;
$carrier = $order->carrier_title;
$carrier_url = "";
$track_number = $order->track_number;
if($carrier == "lalamove" && $track_number != ""){
$carrier_url = "https://track.aftership.com/trackings?courier=lalamove&tracking-numbers=" . $track_number;
}else if($carrier == "pickup"){
$carrier_url = "https://sg.pickupp.io/en/tracking";
}
return $this->from(core()->getSenderEmailDetails()['email'], core()->getSenderEmailDetails()['name'])
->to($order->customer_email, $order->customer_full_name)
->subject(trans('shop::app.mail.shipment.subject', ['order_id' => $order->increment_id,]))
}
@SP said in No Respond when view logo.blade.php is loaded:
ve the "src" it works well.
Thanks for your reply. I'm talking about any email template which using the logo will have an issue. This issue will occur after the app is crashed and I will kill the port and restart the server. But after I restart, this issue happened. Currently, I will need to remove the "img" element to prevent this issue. Is there any other solution for this?
I am trying to customize for the price of Bundle Product and I realiased everytime the bundle product price will be overrided by its child product? Is there anyway to prevent this ? Or is there a recommended way to customize the price for Bundle Product.
I having issues when I'm trying to create an Invoice, when I trackback I found that the root is caused by logo.blade.php.
<img src="{{ \Illuminate\Support\Facades\Storage::url(core()->getConfigData('general.design.admin_logo.logo_image')) }}" alt="{{ config('app.name') }}" style="height: 40px; width: 110px;"/>
So when I remove the "src" it works well.
<img src="" alt="{{ config('app.name') }}" style="height: 40px; width: 110px;"/>
But in this case, my logo won't show in the email template. Is there any solution for this?