Merge remote-tracking branch 'upstream/master' into issue-4588

This commit is contained in:
devansh bawari 2021-02-11 18:45:11 +05:30
commit be505282de
3 changed files with 17 additions and 8 deletions

View File

@ -61,8 +61,10 @@ class Campaign
{
$campaigns = $this->campaignRepository->getModel()
->leftJoin('marketing_events', 'marketing_campaigns.marketing_event_id', 'marketing_events.id')
->leftJoin('marketing_templates', 'marketing_campaigns.marketing_template_id', 'marketing_templates.id')
->select('marketing_campaigns.*')
->where('status', 1)
->where('marketing_campaigns.status', 1)
->where('marketing_templates.status', 'active')
->where(function ($query) {
$query->where('marketing_events.date', Carbon::now()->format('Y-m-d'))
->orWhereNull('marketing_events.date');

View File

@ -133,6 +133,20 @@ abstract class AbstractType
*/
protected $productOptions = [];
/**
* Skip attribute for simple product type.
*
* @var array
*/
protected $skipAttributes = [];
/**
* These blade files will be included in product edit page.
*
* @var array
*/
protected $additionalViews = [];
/**
* Create a new product type instance.
*

View File

@ -4,13 +4,6 @@ namespace Webkul\Product\Type;
class Simple extends AbstractType
{
/**
* Skip attribute for simple product type
*
* @var array
*/
protected $skipAttributes = [];
/**
* These blade files will be included in product edit page
*