How to create web app using cordova

cretae new folder where your app will create and open cmd there
assum is there C:\Users\a1_sh\Desktop\b-app\mobile
run :
1)npm install -g cordova
2)cordova create C:\Users\a1_sh\Desktop\b-app\mobile
3)cordova platform add android

copy all files(your project) to www folder
go to www folder and run cordova build android from cmd
after he finish you will see the path where he create the apk file

Advertisements
Posted in כללי | Leave a comment

How to create apk using angular 5 + cordova

1)install cordova cli explain
Continue reading

Posted in כללי | Tagged , , , | Leave a comment

My landing page

landing page

Posted in כללי | Leave a comment

Uninstall Module Manually for Magento 2

  • Delete the Module folder from {folder path}\app\code
  • sudo chmod -R 777 var pub
  • php bin/magento setup:upgrade
  • php bin/magento cache:flush
  • sudo rm -rf var/cache/
  • php bin/magento setup:di:compile
Posted in כללי | Tagged | Leave a comment

how to put product into category, data come from csv magento 2

lets say i have this csv file

Continue reading

Posted in כללי | Tagged | Leave a comment

how to remove last category from product in magento 2

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$productRepository = $objectManager->get(‘\Magento\Catalog\Model\ProductRepository’);

$sku = 100101;
$product = $productRepository->get(100101);
$categories_from_db_by_product = $product->getCategoryIds();
array_pop($categories_from_db_by_product);
$product->setCategoryIds($categories_from_db_by_product);
$product->save();

Posted in כללי | Tagged | Leave a comment

how to get category id by name magento 2

$collection = $objectManager->create(‘\Magento\Catalog\Model\Category’)->getCollection()->addAttributeToFilter(‘name’,$my_name)->setPageSize(1);

$cat_det = $collection->getData();
$category_id = $cat_det[0][‘entity_id’];

Posted in כללי | Tagged | Leave a comment