How do I remove the manufacturers name from the order items name?

By default if a product name doesn’t contain the manufacturer name already, the manufacturer name is appended to the front of the product name when converting a cart item to an order item.

If you don’t want the manufacturer name appended to the product name you can set the static Aero\Cart\Models\OrderItem::$nameContainsManufacturer boolean to false.


namespace Acme\MyModule;

use Aero\Cart\Models\OrderItem;
use Aero\Common\Providers\ModuleServiceProvider;

class ServiceProvider extends ModuleServiceProvider
   public function setup()
       OrderItem::$nameContainsManufacturer = false;

Articles in this section

Was this article helpful?
0 out of 0 found this helpful