PHPackages                             justbetter/laravel-magento-customer-prices - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. justbetter/laravel-magento-customer-prices

ActivePackage[API Development](/categories/api)

justbetter/laravel-magento-customer-prices
==========================================

Package to push customer specific prices to Magento

3.3.0(3mo ago)1311.9k↓44.4%1MITPHPPHP ^8.3CI passing

Since Sep 27Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/justbetter/laravel-magento-customer-prices)[ Packagist](https://packagist.org/packages/justbetter/laravel-magento-customer-prices)[ RSS](/packages/justbetter-laravel-magento-customer-prices/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (22)Versions (24)Used By (1)

[ ![Package banner](./art/banner.svg)](https://github.com/justbetter/laravel-magento-customer-prices "JustBetter")Laravel Magento Customer Prices
===============================

[](#laravel-magento-customer-prices)

 [![Tests](https://camo.githubusercontent.com/6d3ff04cbb89aeaa121c7ba80f62b2facf4531ea848cd9636d5b96054c06a60b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a7573746265747465722f6c61726176656c2d6d6167656e746f2d637573746f6d65722d7072696365732f74657374732e796d6c3f6c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/justbetter/laravel-magento-customer-prices) [![Coverage](https://camo.githubusercontent.com/8a841d346fca045bc291f46aa53589f7880f693fb989601953b03b89c0273afb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a7573746265747465722f6c61726176656c2d6d6167656e746f2d637573746f6d65722d7072696365732f636f7665726167652e796d6c3f6c6162656c3d636f766572616765267374796c653d666c61742d737175617265)](https://github.com/justbetter/laravel-magento-customer-prices) [![Analysis](https://camo.githubusercontent.com/0cd33b6003f05e85b107657838bc8be4dc975cd0f35d52ecb5e90caae273243a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a7573746265747465722f6c61726176656c2d6d6167656e746f2d637573746f6d65722d7072696365732f616e616c7973652e796d6c3f6c6162656c3d616e616c79736973267374796c653d666c61742d737175617265)](https://github.com/justbetter/laravel-magento-customer-prices) [![Total downloads](https://camo.githubusercontent.com/b6fb6b5878f2f643f59e04d63c9fb340063251b6522b8e5cb0232bb4fc1bbaee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a7573746265747465722f6c61726176656c2d6d6167656e746f2d637573746f6d65722d7072696365733f636f6c6f723d626c7565267374796c653d666c61742d737175617265)](https://github.com/justbetter/laravel-magento-customer-prices)

This package provides a way to add customer specific prices to Magento from a Laravel app. By default, it uses the [JustBetter Magento 2 Customer Pricing](https://github.com/justbetter/magento2-customer-pricing) module for customer specific prices. You can implement another customer specific price module, see [Updating Customer Prices](#magento-2-customer-prices).

Features
--------

[](#features)

This package can:

- Retrieve prices from any source
- Push customer specific prices to Magento
- Only update prices in Magento when are modified. i.e. when you retrieve the same price ten times it only updates once to Magento
- Automatically stop syncing when updating fails
- Logs activities using [Spatie activitylog](https://github.com/spatie/laravel-activitylog)
- Checks if Magento products exist using [JustBetter Magento Products](https://github.com/justbetter/laravel-magento-products)

> Check out [Laravel Magento Prices](https://github.com/justbetter/laravel-magento-prices) for connecting regular prices to Magneto We also have a [Magento Client](https://github.com/justbetter/laravel-magento-client) to easily connect Laravel to Magento!

Installation
------------

[](#installation)

Require this package: `composer require justbetter/laravel-magento-customer-prices`

Publish the config

```
php artisan vendor:publish --provider="JustBetter\MagentoCustomerPrices\ServiceProvider" --tag="config"

```

Publish the activity log's migrations:

```
php artisan vendor:publish --provider="Spatie\Activitylog\ActivitylogServiceProvider" --tag="activitylog-migrations"

```

Run the migrations

```
php artisan migrate

```

### Laravel Nova

[](#laravel-nova)

We have a [Laravel Nova integration](https://github.com/justbetter/laravel-magento-customer-prices-nova) for this package.

Usage
-----

[](#usage)

Add the following commands to your scheduler:

```
