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:
...
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 $...
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": {
...
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 ...
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 ...
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:...
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>",
"...
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->...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
automation × 36magento2 × 9
magento-1.9 × 7
testing × 7
product × 2
checkout × 2
cart × 2
email × 2
magento-enterprise × 2
import × 2
shopping-cart-price-rules × 2
script × 2
unit-tests × 2
deploy × 2
selenium × 2
magento2.3 × 1
magento-1.7 × 1
php × 1
database × 1
attributes × 1
event-observer × 1
configurable-product × 1
api × 1
product-images × 1
cache × 1