CanFinalize.php
3 years ago
HasCharge.php
3 years ago
HasCheckout.php
3 years ago
HasCoupon.php
3 years ago
HasCustomer.php
3 years ago
HasDiscount.php
3 years ago
HasImageSizes.php
2 years ago
HasOrder.php
3 years ago
HasPaymentIntent.php
3 years ago
HasPaymentMethod.php
3 years ago
HasPrice.php
3 years ago
HasProcessorType.php
3 years ago
HasProduct.php
3 years ago
HasPurchase.php
3 years ago
HasPurchases.php
3 years ago
HasRefund.php
3 years ago
HasShippingAddress.php
3 years ago
HasSubscription.php
3 years ago
HasSubscriptions.php
3 years ago
SyncsCustomer.php
3 years ago
SyncsCustomer.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | namespace SureCart\Models\Traits; |
| 4 | |
| 5 | use SureCart\Models\Subscription; |
| 6 | |
| 7 | /** |
| 8 | * If the model has an attached customer. |
| 9 | */ |
| 10 | trait SyncsCustomer { |
| 11 | /** |
| 12 | * Should we sync the user to a customer? |
| 13 | * |
| 14 | * @return boolean |
| 15 | */ |
| 16 | protected function shouldSyncCustomer() { |
| 17 | return get_option( 'surecart_auto_sync_user_to_customer', false ); |
| 18 | } |
| 19 | } |
| 20 |