Shopify Public APP, remove app code before Uninstall - laravel

I'm using this https://github.com/osiset/laravel-shopify package to develop Shopify public APP.
I tried to remove the code from the theme on uninstalling the app by overriding the AppUninstalledJob.
But, the function can't remove the code from the theme.
I have set the webhook for app uninstall, I getting the webhook response from shopify but API's are not getting call.
The similar issue I found here:
https://github.com/osiset/laravel-shopify/issues/188
I want to make an API call on app uninstall, can anyone help me with this?
Thank You.

You're not allowed to make any API calls when your app is uninstalled. Once this happens, you lose any rights to do so as your API access token received on installation is also deactivated.

Another point to be made here, if you are messing with a theme using your App, injected code into themes, you are doing it wrong. You should be ensuring that whatever you do, if a customer uninstalls your App, their theme is not destroyed by having a bunch of bad code in it. So that means you probably use script tags, proxy calls and as a last resort, create copies of theme files, and edit only those, so the merchant can replace your theme files with the originals.
In 2020 Shopify is allowing Apps to provide Theme Sections, so Apps that mess up themes should just disappear too.

Related

My laravel app does not take modification

Good morning! I don't have much experience with laravel. I created an app with laravel then I installed breeze for authentication and I also installed an html/css theme everything works fine. The problem is that if I make a modification in the app.blade.php or the home component.blade.php nothing is displayed as if there was no modification but when I got connected and I makes the changes appear on the dashboard. Similarly if I add a link in the menu there is no effect even the text does not change however if I log in the change appears. please See how you can help me please
I searched on google but without result.

How do I remove the Joomlashine template framework?

I have a Joomla website in which I am looking to uninstall the Joomlashine (template/extension provider) framework. As I am no longer using it, it could potentially be a security threat in the future. After trying to remove it from the backend administrator, it only shows a "Protected extension" message by the listing. I am not able to select the checkbox next to the listing to "uninstall" it. Does anybody know what database actions I can take in order to remove this "protected" extension?

How to delete a file when the app is uninstalled?

How to delete a file into the theme when the user uninstalls the app in the Shopify store.
I have tried to delete files and delete code into an existing file when the user uninstalls my Shopify app.
You are unable to delete a file. The reason is simple, Shopify has removed your API access token by the time you are made aware that they have uninstalled your App.
Better you do not litter a theme with your code. Instead, adapt to injecting content in sections and blocks using the new theme extensions. For older Apps, provide script tags for your JS, and instructions on what HTML or Liquid they might need.
Basically, injecting stuff into themes is bad news for themes in the Online Store 1.0. You cannot help it, but there is no recourse when they uninstall. You do leave a mess behind.

How do I customise the auto-generated index.html in appcelerator

I am building a mobile app/mobile web solution in Appcelerator. I want the mobileweb to be capabable of going offline.
I am not using Alloy.
I want to be able to add the appcache statement to the index.html, I also want to be able to make other customisations to this document.
I am aware that I can make the changes after its automatically generated but these would be overwritten the next time I create the file.
Is there anyway to define elements that I want inserted into the index.html as it is auto-generated?
The only way to customize the index.html template is to do it in the Titanium SDK. This means you changes would affect all Mobile Web apps you build.
We wanted to allow you to customize the Mobile Web templates, but we never got around to actually doing it. :(
So, I recommend locating the installed Titanium SDK and copying it to something like 5.2.1.GA-MyApp, then customize the templates in mobileweb/src to meet your needs.
Yes, I know this is gross, but it's about the best workaround today.

Joomla 2.5 save, save & close, save & new, cancel buttons do not work

When I try to create or edit an article, category, or module, I am unable to save or cancel the changes. When I click on the Admin buttons, nothing happens. The URL gets a "#" added to the end of it, and I get this error (examples from 2 different editors):
ReferenceError: WFEditor is not defined
http://www.mysite.com/administrator/index.php?option=com_content&view=article&layout=edit
Line 250
ReferenceError: tinyMCE is not defined
http://www.mysite.com/administrator/index.php?option=com_content&view=article&layout=edit&id=47
Line 247
I have Joomla 2.5.11, no other updates pending. JCE editor, TinyMCE, default, and RokPad all throw errors and don't do anything when I press the buttons. CodeMirror and None are the only editors that I can use to save the article. I have tried uninstalling JCE and reinstalling it, and no changes.
I don't remember the last time it was working, possibly January sometime, if not before then. I don't know if this has anything to do with settings in my php.ini file or not. That was the only thing that changed from the time it was working until now, but it should be back to the "default" settings.
I've tried reuploading the admin folder, but no change. I reuploaded all the Joomla files (except installation) this morning from the stable 2.5.11 package freshly downloaded from joomla.org today, and still having this problem. I've also tried purging cache from the updates manager as well as maintenance area. I've tried 2 different computers, Fire Fox, Chrome, and IE (this was the suggestion in one of the posts I found similar to this issue).
I have been searching for a resolution for months. Any topics I find that sound like my issue end up either not having a resolution, or it's something else that the person is having a problem with. I use both JCE and RokPad on dozens of other websites with no problems.
Thank you for your help.
Do you have extra plugins or modules published on all administrator pages? There could be an extra
Open your console (ctrl+shift+J) and you should be able to locate the error, once you do just try to locate the origin in your code, it's most likely not originating from Joomla core, rather from an extension / template.
Also bear in mind that plugins are active by default on both the frontend and the backend and very often they are not intended to run in the backend, nor tested in the backend.
I JUST FIXED IT!! :) : ) :)
I just switched my hosting's PHP version from 5.4 to 5.3 and voila! It functions as it should. I hope this helps someone! I'm not sure when/why I may be required to go back to 5.4 but for now this solves my problem. Any idea as to why these two versions of PHP behave so differently?

Resources