We need to Login and signup from magento 2 (signup and login form) to yii2 in website. Yii2 is installed in root directory and magento 2 is installed in shop directory.
Please let us know in case anyone has any suggestions
Calling A.P.I. magento inside yii and use it.
in index.php
require_once('app/Mage.php');//Path to Magento
umask(0);
Mage::app();
Then
if(!Mage::getSingleton('customer/session')->isLoggedIn()){
//not logged in
}else{
// logged in
}
Plus minus this is the way, then do your test
Related
At first, I tried installing MySQLclient via the terminal in a shared hosting platform only to get GCC permission denied, I contacted the admin pertaining the domain but to no assistance. I decided to use SQLite instead, everything worked fine, to my surprise no migrations were requested. Now when I wanted to add a product in the django admin page, when I click the save button I get an error that page not found with request Post. Everything works fine in development also when i request the same page while online in the admins page it loads fine. Kindly help
Here is the gcc permission denied
Got this error when i tried pip install mysqlclient in cpanel terminal
Here is the the product page at the admin
This is the product page while at the admin page
Here is the error when i click any of the save buttons
This the error i get when i try to save the product by clicking any of the save buttons
I escaped gcc permission denied by installing django 2.1 and followed this Error loading MySQLdb Module 'Did you install mysqlclient or MySQL-python?' worked for me but now the problem is when i add a product with an imagefield i get page not found with request post
Could anyone help me with installing Magento 2 connector for AEM?
Instruction on official site is very simple - official guide.
I don't know where to start with it.
In general I'm trying to integrate (for practice) Magento 2 with AEM to look how it works, find benefits.
Download and install this Package in package manager: updated package for AEM Magento Integration.
After that follow the steps below to import the catalog:
Goto AEM navigation screen, click on "commerce" > click on "Catalogs".
Create folder magento, goto magento folder.
click on create, then "Import Blueprints".
Select Magento from Importer.
Enter server URL(not admin URL), admin username, password, write and name for catalog and write "we-retail" in theme.
Click on import.
Catalog will be imported.
To import products follow below steps:
Goto AEM navigation screen, click on "commerce" > click on "Products".
Create folder magento, goto magento folder.
click on create, then "Import Products".
Select Magento from Importer.
Enter server URL(not admin URL), admin username, and password.
Click on import.
Catalog will be imported.
I'm completely new to deployment and wordpress specifically, so my question and explanation might seem dummy. But I really need help with this, searching Google didn't help. So any way, I have this host, where I installed Wordpress, and db was created automatically. I added al the content through wp-admin panel, so I won't break any connections among files by uploading my local wp files. And when I tried to open the website itself, it was redirected to port 8000. The only place I found this port in was db, where links to media look like http://0.0.0.0:8000/wp-content/... , but in the wp-admin panel in the media section links look fine, so I assume it is replaced somewhere. But still I can't figure out where does this port 8000 come from. Any ideas?
Step To follow after migration :
Change site and home url from wp_option table.
Login to admin and change paramlinks from setting->paramlink choose custome and save
Use url update plugin incase some url are not updated yet.
Try Private Browser to check your website.Some time cache will be issue.
Right url in inspect :
Solution with no plugins
Lets assume your wordpress site you deployed is not able to display and therefore you cant use fancy plugins for URL replacement. In that case:
Make .sql export from your database and name it db_export.sql
run cat db_export.sql | sed s_localhost:8000_example.com_g > db_import.sql
Replace data in your database by newly created db_import.sql
HTTPS
In case you are going to run your deployed website on https instead of http, consider running another unix script in command line:
cat db_import.sql | sed s_http://example.com_https://example.com_g > db_import_final.sql
and replace data in your database by db_import_final.sql file we newly created.
Wordpress still keeps redirecting...
If this is the case, open file wp-config.php in your root directory
Above line require_once( ABSPATH . 'wp-settings.php' ); enter following:
define( 'WP_HOME', 'https://example.com' );
define( 'WP_SITEURL', 'https://example.com' );
I am new with yii n am trying to include an admin module "mdmsoft/yii2-admin" in my app i have followed the readme instructions from https://github.com/mdmsoft/yii2-admin/tree/master/#rbac-manager-for-yii-2,there is no error in installation but when i try to open the admin page by mydomain/web.php/admin" its showing "Not Found". I have also checked the root permission of all the files and folders in the application and it is fine.
mydomain/web.php/admin should be mydomain/web/admin.
I have made a web app with angular 5 and a Codeigniter Rest (two separated folders) and now i want to put it on a free host to try it.
But someone told me to integrate my front part (angular) inside my back part (codeigniter). But i can't figure this out.
Does someone have some link for a tuto about this please ?
You can host your both backend and front end in apache server. Put the backend code in the home dir inside some other folder. For angular you can try the command from the root dir of angular from your local machine ng build --prod make sure to change the api urls in it to the hosted php url. Once the build is completed it will create a folder named dist. You can copy that into your websites public directory. Please keep in mind that once you made a change you have to take build again and upload it. I don't know any other ways exists for that. For the backend upload your db and change it's settings accordingly first. Make sure you are able to call the api.