Skip to main content
12 votes
Accepted

How to setup CI on Magento 2 extension using Bitbucket Pipeline?

Add the AUTH variable into the Pipelines Variable settings. Using Bitbucket, you can use this file below called bitbucket-pipelines.yml image: rafaelcgstz/magento2 pipelines: branches: ...
Rafael Corrêa Gomes's user avatar
6 votes

How can I programmatically flush Magento's Cache?

A quick external script to clear all cache: <?php require_once './app/Mage.php'; umask(0); Mage::app('default'); Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); try { $...
MagePal Extensions's user avatar
5 votes

Attempting to pass access keys into composer create-project for automated install

Another option is to set the access keys using the composer config command just before running the composer create-project command composer config -g http-basic.repo.magento.com $MAGENTO_PUBLIC_KEY $...
Saroj's user avatar
  • 477
5 votes

Attempting to pass access keys into composer create-project for automated install

As usual, immediately after asking the question, i figure out the answer. I need to add a file ~/.composer/auth.json with the following: { "http-basic": { "repo.magento.com": { ...
CarComp's user avatar
  • 1,256
3 votes
Accepted

How to setup Magento Cloud + Bitbucket?

First of all, you don't need to integrate Bitbucket Pipelines as you do with your own host provider. You can use the native integration between Magento Cloud and Github, Bitbucket, or Gitlab. How to ...
Rafael Corrêa Gomes's user avatar
2 votes

Magento 2 : Automatically rating for product has image

In Your Module try this in Vendor/HelloWorld/Model/ProductReviews.php <?php namespace Vendor\HelloWorld\Model; use Magento\Framework\Model\AbstractModel; class ProductReviews extends ...
Munesh Jalwani's user avatar
1 vote
Accepted

Add item to the cart automatically

Create a custom page using routes.xml app/code/Vendor/Module/etc/frontend/routes.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Ranganathan's user avatar
  • 3,230
1 vote

Is there a way to perform a silent installation of Magento through a bash code?

create an auth.json file inside your Magento installation directory and put this inside: { "http-basic": { "repo.magento.com": { "username": "<public-key>", "...
fmsthird's user avatar
  • 4,602
1 vote
Accepted

Product SKU based on manufacturer

I assume you modify the code based on that module, place the following codes after line 18 $new_sku = ""; in app/code/local/Learn/Autosku/Model/Observer.php: $manufacturer_name = $product->...
PY Yick's user avatar
  • 2,705
1 vote

Generic text in Short Description

There are multiple ways to do this. You could add the text in the phtml file and maybe add some variables here and there. That way, all products have an identical description. You could also do a ...
Arjen Miedema's user avatar
1 vote

How can I programmatically flush Magento's Cache?

If you Really need to clear all cache storages means use the following code, Mage::app()->getCacheInstance()->flush(); Here Flush function calls the default magento cache functionality, If you ...
Pasupathi Thangavel's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible