I want a applied shipping amount in my custom page.
I want to get Applied Shipping amount for guest and logged In Customer.
Looking forward to your reply.
public function __construct(
$this->total = $total;
in your function use,$amount = $this->total->getShippingAmount();
Clear Genereated folder and clear cache.