• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

Import xml or csv with products

Bug Report
2
2
512
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    Norbert last edited by 2 Aug 2019, 09:49

    Re: Add a functionality of creating a product in framework by importing a csv file

    How can i import a xml or csv file with products?
    Thanks!

    1 Reply Last reply Reply Quote 0
    • R
      rahul last edited by 2 Aug 2019, 13:54

      Hi,

      We recommend you to create package for it, if you don't have, because changing in core will cause a problem with latest release.

      So, In your package create a view file, which consist to upload csv or xml, provide route to that view file with your controller (your package's controller & route).

      Now when user submit it, your controllers method should be called and write code in this controller for import.

      Now you can override product's page's index view to provide a button there so that it call your view using your route.

      In this way you can do this, if you face any issues, please write here.

      Thanks

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post