How to escape iframe in an Shopify embedded app that was created using Shopify CLI 2 - shopify-app

I am having a problem implementing the update described in this documentation by Shopify:
https://shopify.dev/apps/auth/oauth/update/node-php
Summary:
I created my app using the Shopify CLI version 2.26
Running on Node version 18.10
I have installed the npm package react-router-dom
I have developed my app so that the Home page toggles between other page components based on state.
The update introduces several new providers and also some file-based routing.
So when the paged needs to be redirected it calls:
return res.redirect(`/exitiframe?${queryParams}`);
What is the best way to implement this?
Do I add the code from the Exitiframe.jsx file to my HomePage.jsx and edit the link to:
return res.redirect(`/?${queryParams}`);
I have tried and I get an endless loop.

Related

Laravel Debugbar with laravel api routes

I have a Laravel API.
The front end application is completely separate from Laravel.
All Laravel routes are located in routes/api.php
Is there any way to make the Laravel Debugbar work in this case?
https://github.com/barryvdh/laravel-debugbar
barryvdh/laravel-debugbar needs to be installed on your Laravel project (actually all debuggers need to be present within the project to audit every request) and get its files served to the frontend to work (edit repsonses with Middleware/InjectDebugbar.php).
I won't say that it is impossible to get its insights on a separate front, who knows if you are ready to fork the project and communicate with the debug bar APIs.
For a simpler alternatives you can use:
laravel/telescope docs repo
Clockwork browser extension website repo
spatie/laravel-ray(paid) website docs

Unable to See cart on top Right corner of Demo Venia Store

I am unable to see the mini cart on top right corner after creating a new project using demo-store.all-0.9.0.zip from latest release here https://github.com/adobe/aem-cif-project-archetype/releases and installing it through package manager in my AEM 6.5. Do I need to install it separately? I am following this integration through https://www.adobe.io/apis/experiencecloud/commerce-integration-framework/getting-started.html
Cart will not be even visible until and unless you do not setup a dispatcher as shown here in this video. The mini cart is actually a react component which directly communicates with Back-end Magento and to avoid CORS issue you have to set up proxy through a Dispatcher.

Integrate another dashboard with userFrosting

I am building a web project and using UserFrosting for the backend, it comes with SB admin as a dashboard, but I want to change it with another dashboard built with AngularJS or maybe static HTML, something like that :
https://github.com/tui2tone/flat-admin-bootstrap-templates
So is this possible ? and if yes, how to do that ?
Since you mentioned SB Admin, I guess you're using UserFrosting v0.3.x
Changing the dashboard only requires to edit the userfrosting/templates/themes/default/dashboard.twig file.
Using the new UserFrosting V4, it's simple as overwriting the template file in a custom Sprinkle. If you didn't start working on your project yet, you should really check out V4 (which use a new, AdminLTE based template).

Magento Manage customer not working after upgrade from 1.7 to 1.9

After i upgraded the magento from 1.7 to 1.9,
I am not able to access manage customer section from admin dashboard.
I am getting following error.
Gateway Time-out
The gateway did not receive a timely response from the upstream server
or application.
Edit:
If i clear the cache it works for the first time and then the issue will reappear if i try to access the manage customer section again.
check your installed extensions if you find any extension for manage customer then disable it and check after refresh cache.
This error generally comes when one server waits for response from another server for too much time. But it could be anything. What I would suggest you to check the Mage_Customer module and if it is enable try to remove log of the website as it make website slow. For removing the log try this
login to shell(SSH) panel and go to your website root/shell folder.
execute the below command inside the shell folder
php -f log.php clean

How to do custom password restore in joomla?

I rewrote Joomla authorization using a plugin with onUserAuthenticate method to use custom service. Now i need to add custom password restore like question/answer (they already exists in db). Is there any event to fire on password reset or may be some other thing which could replace default password restore via email ?
You haven't specified a Joomla version so I'll base my answer on the current 3.x series.
Joomla's authentication works via the plug-in's as you already know, but the front-end login is handled through a combination of the component com_users and module mod_login.
On the back-end there is also com_login, all of which work with the JAuthentication.
To work in conjunction with your restore you will need to create a component (e.g. com_myauthenticator) to present the front-end views. You may be able to do it in a module but apart from space considerations a Joomla component allows you to do much more without jumping through hoops.
The starting point tutorial for Joomla 3 components is here and you can find more in the Developers Portal.

Resources