Merge branch 'master' of https://github.com/bagisto/bagisto into development

This commit is contained in:
rahul shukla 2019-04-16 16:01:37 +05:30
commit 4e56374c70
5 changed files with 29 additions and 8 deletions

View File

@ -15,9 +15,6 @@ class ModuleServiceProvider extends BaseModuleServiceProvider
\Webkul\Core\Models\CurrencyExchangeRate::class,
\Webkul\Core\Models\Locale::class,
\Webkul\Core\Models\Slider::class,
\Webkul\Core\Models\SubscribersList::class,
\Webkul\Core\Models\TaxCategory::class,
\Webkul\Core\Models\TaxMap::class,
\Webkul\Core\Models\TaxRate::class,
\Webkul\Core\Models\SubscribersList::class
];
}

View File

@ -98,4 +98,28 @@ class ProductFlat extends Model implements ProductFlatContract
{
return $this->images()->get();
}
/**
* The related products that belong to the product.
*/
public function related_products()
{
return $this->product->related_products();
}
/**
* The up sells that belong to the product.
*/
public function up_sells()
{
return $this->product->up_sells();
}
/**
* The cross sells that belong to the product.
*/
public function cross_sells()
{
return $this->product->cross_sells();
}
}

View File

@ -91,9 +91,9 @@
</product-view>
</div>
{{--@include ('shop::products.view.related-products')--}}
@include ('shop::products.view.related-products')
{{--@include ('shop::products.view.up-sells')--}}
@include ('shop::products.view.up-sells')
</section>

View File

@ -14,7 +14,7 @@
@foreach ($relatedProducts as $related_product)
@include ('shop::products.list.card', ['product' => $related_product])
@include ('shop::products.list.card', ['productFlat' => $related_product])
@endforeach

View File

@ -16,7 +16,7 @@
@foreach ($productUpSells as $up_sell_product)
@include ('shop::products.list.card', ['product' => $up_sell_product])
@include ('shop::products.list.card', ['productFlat' => $up_sell_product])
@endforeach