v2.2.3: fix error showing Gift Wrap on the pdf invoice when the Gift Wrap disabled in the backend

Created by Jane D, Modified on Fri, 22 Jan 2021 at 11:35 AM by Jane D


I go to the backend Configurable > Bss_OneStepCheckout > disable the Giff Wrap:


Then, go to frontend to place an order.

However, when I print the invoice, it still shows the Gift Wrap = 0 on the PDF invoice.

I would like not to show this information on the pdf invoice when this feature disabled.

Please tell me how to achieve it?


To achieve the requirement, please edit files as below:  

+ app/code/Bss/OneStepCheckout/Plugin/Model/Order/Pdf/Total/DefaultTotal.php

+ app/code/Bss/OneStepCheckout/etc/di.xml

Or download the attached files below and overwrite the current file on your site.

If you have any other question or concern, please feel free to contact us. We'd be happy to support!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us how can we improve this article!

Select atleast one of the reasons

Feedback sent

We apprciate your effort and will try to fix the article