Navigation

    Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Mayankpanchal
    M
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Mayankpanchal

    @Mayankpanchal

    1
    Reputation
    13
    Posts
    11
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Mayankpanchal Follow

    Posts made by Mayankpanchal

    • RE: Image Field Require not working

      @devansh-webkul here is code for required image field in marketplace seller profile edit page

      But required field not work proper
      <div class="form-group">
      <label>{{ __('marketplace::app.shop.sellers.account.profile.logo') }}
      <div class="info-note"><i>Note:</i> Recommended image size is of Width 120px * Height 120px</div>
      <image-wrapper :button-label="'{{ __('marketplace::app.shop.sellers.account.profile.add-image-btn-title') }}'" input-name="logo" :multiple="false" :required="true" :images='"{{ $seller->logo_url }}"'></image-wrapper>
      </div>

      posted in Bug Report
      M
      Mayankpanchal
    • RE: Image Field Require not working

      We want seller profile banner as required field

      posted in Bug Report
      M
      Mayankpanchal
    • Image Field Require not working

      We want image field as required field
      <image-wrapper> component used and we have set required="true" as prop variable used but displaying error

      posted in Bug Report
      M
      Mayankpanchal
    • app.js changes not reflect after npm run watch command

      bagisto\packages\Webkul\Velocity\src\Resources\assets\js\app.js i have changes in app.js and run npm watch command but

      bagisto\public\themes\velocity\assets\js\velocity.js not reflect the changes of app.js

      posted in Modules
      M
      Mayankpanchal
    • How to know in product view page is that seller's product?

      I want to check in product detail page , is that product is seller's product?
      file path : resources\themes\velocity\views\products\view.blade.php

      posted in General Discussion
      M
      Mayankpanchal
    • RE: I want create a faq for products module

      @devansh-webkul

      For now error was fixed . I was created a package using Bagisto package generator so it's create a repository file like this.
      <?php

      namespace Webkul\ProductFaq\Repositories;

      use Webkul\Core\Eloquent\Repository;

      class ProductFaqRepository extends Repository
      {
      /**
      * Specify Model class name
      *
      * @return mixed
      */
      function model()
      {
      return 'Webkul/ProductFaq/Contracts/ProductFaq';
      }
      }

      But solution is that we have to write backward slash for return model like this

      function model()
      {
      return 'Webkul\ProductFaq\Contracts\ProductFaq';
      }

      posted in Modules
      M
      Mayankpanchal
    • RE: I want create a faq for products module

      @devansh-webkul

      Here is admin faq controller file code

      <?php

      namespace Webkul\ProductFaq\Http\Controllers\Admin;

      use Illuminate\Routing\Controller;
      use Illuminate\Foundation\Bus\DispatchesJobs;
      use Illuminate\Foundation\Validation\ValidatesRequests;
      use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
      use Webkul\ProductFaq\Repositories\ProductFaqRepository;

      class ProductFaqController extends Controller
      {
      use AuthorizesRequests, DispatchesJobs, ValidatesRequests;

      /**
       * Contains route related configuration
       *
       * @var array
       */
      protected $_config;
      
      /**
       * To hold the CMSRepository instance
       * 
       * @var \Webkul\ProductFaq\Repositories\ProductFaqRepository
       */
      protected $productFaqRepository;
      
      /**
       * Create a new controller instance.
       *
       * @return void
       */
      public function __construct(ProductFaqRepository $productFaqRepository)
      {
          $this->middleware('admin');        
      
          $this->productFaqRepository = $productFaqRepository;
      
          $this->_config = request('_config');
      }
      
      /**
       * Display a listing of the resource.
       *
       * @return \Illuminate\View\View
       */
      public function index()
      {
          return view($this->_config['view']);
      }
      
      /**
       * Show the form for creating a new resource.
       *
       * @return \Illuminate\View\View
       */
      public function create()
      {
          return view($this->_config['view']);
      }
      
      /**
       * Store a newly created resource in storage.
       *
       * @return \Illuminate\Http\Response
       */
      public function store()
      {
          $data = request()->all();
      
          $this->validate(request(), [
              'faq_question' => 'required',
              'faq_answer'   => 'required',
              'status' => 'required',
              'sort_order' => 'required'
          ]);
          
          /*$page = $this->productFaqRepository->create(request()->all());
      
          session()->flash('success', trans('admin::app.response.create-success', ['name' => 'page']));
      
          return redirect()->route($this->_config['redirect']);*/
      }
      
      /**
       * Show the form for editing the specified resource.
       *
       * @param  int  $id
       * @return \Illuminate\View\View
       */
      public function edit($id)
      {
          return view($this->_config['view']);
      }
      
      /**
       * Update the specified resource in storage.
       *
       * @param  int  $id
       * @return \Illuminate\Http\Response
       */
      public function update($id)
      {
          
      }
      
      /**
       * Remove the specified resource from storage.
       *
       * @param  int  $id
       * @return \Illuminate\Http\Response
       */
      public function destroy($id)
      {
          
      }
      

      }

      and repository code

      <?php

      namespace Webkul\ProductFaq\Repositories;

      use Webkul\Core\Eloquent\Repository;

      class ProductFaqRepository extends Repository
      {
      /**
      * Specify Model class name
      *
      * @return mixed
      */
      function model()
      {
      return 'Webkul/ProductFaq/Contracts/ProductFaq';
      }

      /**
       * @param  array  $data
       * @return \Webkul\ProductFaq\Contracts\ProductFaq
       */
      public function create(array $data)
      {
          $model = $this->getModel();
          $page = parent::create($data);
          return $page;
      }
      
      /**
       * @param  array  $data
       * @param  int  $id
       * @param  string  $attribute
       * @return \Webkul\CMS\Contracts\CmsPage
       */
      public function update(array $data, $id, $attribute = "id")
      {
          $page = $this->find($id);
          parent::update($data, $id, $attribute);
          return $page;
      }
      

      }

      Model file

      <?php

      namespace Webkul\ProductFaq\Contracts;

      interface ProductFaqModel
      {
      }

      posted in Modules
      M
      Mayankpanchal
    • I want create a faq for products module

      I have create a package for FAQ , I have followed the way of cms package. but i facing this issue.i have attched a screenshot of an error. i have create a contracts model file but i have face error.![alt text](error1..png image url) .

      I have create a following steps after model file create
      1)composer dump-autoload
      2)clear config cache
      3)clear route cache

      posted in Modules
      M
      Mayankpanchal
    • RE: How to display Seller's Most viewed products on seller dashboard.

      @Vaishali-Agarwal Can you please provide a table names which are stored information about product view counting by site visitors?

      posted in General Discussion
      M
      Mayankpanchal
    • RE: How to display Seller's Most viewed products on seller dashboard.

      @Vaishali-Agarwal

      I want to implement this for Bagisto multivendor marketplace and displayed on Seller Dashboard

      posted in General Discussion
      M
      Mayankpanchal