This commit is contained in:
jitendra 2019-11-01 11:03:40 +05:30
parent c0a4e2fe26
commit 973332f6c0
3 changed files with 4 additions and 5 deletions

View File

@ -676,8 +676,8 @@ class Cart {
$this->cartItemRepository->update([
'price' => core()->convertPrice($price),
'base_price' => $price,
'total' => core()->convertPrice($price * ($item->quantity)),
'base_total' => $price * ($item->quantity),
'total' => core()->convertPrice($price * $item->quantity),
'base_total' => $price * $item->quantity,
], $item->id);
}
@ -689,7 +689,7 @@ class Cart {
* Calculates cart items tax
*
* @return void
*/
*/
public function calculateItemsTax()
{
if (! $cart = $this->getCart())

View File

@ -10,7 +10,7 @@ use Webkul\Core\Contracts\Channel as ChannelContract;
class Channel extends Model implements ChannelContract
{
protected $fillable = ['code', 'name', 'description', 'theme', 'home_page_content', 'footer_content', 'hostname', 'default_locale_id', 'base_currency_id', 'root_category_id', 'home_seo', 'logo', 'favicon'];
protected $fillable = ['code', 'name', 'description', 'theme', 'home_page_content', 'footer_content', 'hostname', 'default_locale_id', 'base_currency_id', 'root_category_id', 'home_seo'];
/**
* Get the channel locales.

View File

@ -76,7 +76,6 @@ class ChannelRepository extends Repository
*/
public function uploadImages($data, $channel, $type = "logo")
{
if (isset($data[$type])) {
foreach ($data[$type] as $imageId => $image) {
$file = $type . '.' . $imageId;