Merge remote-tracking branch 'upstream/master' into issue-4588
This commit is contained in:
commit
be505282de
|
|
@ -61,8 +61,10 @@ class Campaign
|
||||||
{
|
{
|
||||||
$campaigns = $this->campaignRepository->getModel()
|
$campaigns = $this->campaignRepository->getModel()
|
||||||
->leftJoin('marketing_events', 'marketing_campaigns.marketing_event_id', 'marketing_events.id')
|
->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.*')
|
->select('marketing_campaigns.*')
|
||||||
->where('status', 1)
|
->where('marketing_campaigns.status', 1)
|
||||||
|
->where('marketing_templates.status', 'active')
|
||||||
->where(function ($query) {
|
->where(function ($query) {
|
||||||
$query->where('marketing_events.date', Carbon::now()->format('Y-m-d'))
|
$query->where('marketing_events.date', Carbon::now()->format('Y-m-d'))
|
||||||
->orWhereNull('marketing_events.date');
|
->orWhereNull('marketing_events.date');
|
||||||
|
|
|
||||||
|
|
@ -133,6 +133,20 @@ abstract class AbstractType
|
||||||
*/
|
*/
|
||||||
protected $productOptions = [];
|
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.
|
* Create a new product type instance.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,6 @@ namespace Webkul\Product\Type;
|
||||||
|
|
||||||
class Simple extends AbstractType
|
class Simple extends AbstractType
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Skip attribute for simple product type
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
protected $skipAttributes = [];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* These blade files will be included in product edit page
|
* These blade files will be included in product edit page
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue