Good morning:
I am using Drupal Commerce and everything is perfect but I would like to add a button to empty the shopping cart if you have any way to do it, I would appreciate it
I am using Drupal 7 and I want to add a new page with a custom section on top. This custom section consists of some information that we are getting through some rest API.
I want this custom section on top and client can add html content and sections below that section from the Drupal backend.
I tried creating a custom page--custompage.tpl.php and added that section. That page worked fine but unfortunately, it wasn't editable from the Drupal dashboard and we could not add sections before it so it was of no use.
I've got a custom ajax form table where the rows are draggable via. #tabledrag.
If I drag around some rows and press save/submit, the rows appear to pop back into their original places.
But upon reloading the page, the rows are in the correct position, the way I dragged them.
Can anyone please give some insights about importing MySQL database using custom module, without using any contributed module dependency.
More details :I need to spin off sub-sites using Drupal Interface. For that I need to take a dump of existing database and Import it into new database.
There's a contrib module I'm using that creates a file in the public directory every time cron runs and I'm thinking of making a module that moves this file out of the webroot into a folder on my server. The way I envision it working is to use the hook_cron to execute a bash script on my server, which then moves it to the desired folder.