<%= render "layouts/header" %>
<%= render "layouts/sidebar" %>
Add Products
<%= render "layouts/breadcrumbs" %>
<%= form_tag({:action=>'create'} ,:multipart=>true,:id=>'myForms' ) do %>
<% ischeckFlgs = true image_url = "#{root_url}images/no-image.jpg" if @AddProduct if @AddProduct.pd_img.to_s.present? chekpath = "#{Rails.root}/public/images/product/multi_image/#{@AddProduct.pd_file_path}/#{@AddProduct.pd_img}" if File.file?(chekpath) ischeckFlgs = false image_url = "#{root_url}images/product/multi_image/#{@AddProduct.pd_file_path}/#{@AddProduct.pd_img}" end end end if ischeckFlgs if @AddProduct image_url = "#{root_url}images/product/#{@AddProduct.pd_img}" end end %>
<%if @AddProduct && @AddProduct.pd_category%> <%else%> <%end%>
<%if @AddProduct && @AddProduct.pd_subcategory%> <%else%> <%end%>
<% if @DelProducImage && @DelProducImage.length >0 @DelProducImage.each do |newimg| myimages = "../assets/img/course/course1.jpg" if newimg.pmi_image.to_s.present? chekpath = "#{Rails.root}/public/images/product/multi_image/#{newimg.pmi_filepath}/#{newimg.pmi_image}" if File.file?(chekpath) myimages = "#{root_url}images/product/multi_image/#{newimg.pmi_filepath}/#{newimg.pmi_image}" end end %> <% end end %>
<%= render 'add_product/basic_information' %>
<%end%>

<% no_image_url = "#{root_url}images/no-image.jpg" %>
<% if @prodmultimage && @prodmultimage.length >0 @prodmultimage.each do |newimg| myimages = "../assets/img/course/course1.jpg" if newimg.pi_attachment.to_s.present? chekpath = "#{Rails.root}/public/images/product-other-images/#{newimg.pi_filepath}/#{newimg.pi_attachment}" if File.file?(chekpath) myimages = "#{root_url}images/product-other-images/#{newimg.pi_filepath}/#{newimg.pi_attachment}" end end %>
 
<% end else %>

No Product images found.

<% end %>