0

I get this error:

Undefined variable: design_json_data (View: D:\xampp\htdocs\shopist\resources\views\pages\frontend\frontend-pages\frontend-designer.blade.php)

There is a designer where I add photos and text, while in admin panel it works I cannot fix this on the front-end

@section('frontend-designer-html-content')

<div id="product_designer" class="container new-container">
  @if(count($designer_hf_data)>0 && count($single_product_details['_product_custom_designer_data'])>0)  
  <br>
  <div class="row">
    <div class="col-sm-12">
      @include('pages.common.designer-html', array('designer_hf_data' => $designer_hf_data, 'designer_img_elments' => $single_product_details['_product_custom_designer_data'], 'design_save_data' => $design_json_data))
    </div>
  </div>
  <br>
  <div class="row">
    <div class="col-sm-12">
      <h1 class="product-title">{{ $single_product_details['post_title'] }}</h1>
      @if(count($attr_lists) >0 && count(get_product_variations_with_data($single_product_details['id']))>0)
      <div class="product-pricing"><span class="solid-price">{!! get_product_variations_min_to_max_price_html($currency_symbol, $single_product_details['id']) !!} </span></div><hr>
        @include('includes.frontend.variations-html', array('attr_lists' => $attr_lists, 'single_product_details' => $single_product_details))
      @else
      <div class="clearfix">
        <div class="product-pricing">
          @if(get_product_type($single_product_details['id']) == 'customizable_product' && count(get_product_variations($single_product_details['id'])) == 0 )
            @if(!is_null($single_product_details['offer_price']))
            <span class="offer-price">{!! price_html( $single_product_details['offer_price'] ) !!}</span>
            @endif

            <span class="solid-price">{!! price_html( $single_product_details['solid_price'] ) !!}</span>
          @endif
        </div> 
        <hr>  
        <button class="btn btn-sm btn-style cart customize-page-add-to-cart" type="button" data-id="{{ $single_product_details['id'] }}">
          <i class="fa fa-shopping-cart"></i>
          {{ trans('frontend.add_to_cart') }}
        </button>
      </div>
      @endif
    </div>  
  </div>
  <input type="hidden" name="hf_custom_designer_data" id="hf_custom_designer_data" value="{{ $single_product_details['product_custom_designer_json'] }}">
  <br>
  @else
  <br>
  <div class="row">
    <div class="col-sm-12">
      <h5>{{ trans('frontend.no_content_yet') }}</h5>
    </div>
  </div>
  @endif
</div>
	
@endsection  

This is where it gives error

@include('pages.common.designer-html', array('designer_hf_data' => $designer_hf_data, 'designer_img_elments' => $single_product_details['_product_custom_designer_data'], 'design_save_data' => $design_json_data))

4

0 回答 0