Giter Club home page Giter Club logo

akeneo-product-cloner's Introduction

Flagbit ProductClonerBundle for Akeneo PIM

CI Total Downloads Quality Score Packagist Version Software License

This bundle is aimed to offer product clone functionality within Akeneo PIM.

Functionalities

  • Clone a product model
  • Clone a product or a variant product

Note: As of Akeneo 5, the Enterprise Edition ships with an included clone feature, therefore this bundle is not compatible with Akeneo 5 Enterprise Edition! For the Akeneo 5 Community Edition, the bundle will work as before.

Installation

You can install the package with the following command.

composer require flagbit/product-cloner-bundle

Enable the bundle

Add the bundle to the config/bundles.php file:

<?php

return [
    \Flagbit\Bundle\ProductClonerBundle\FlagbitProductClonerBundle::class => ['all' => true],
    // ...
];

Import the routing

Now that you have activated and configured the bundle, all that is left to do is import the FlagbitProductClonerBundle routing files.

# config/routes/product_cloner.yml
flagbit_product_cloner:
    resource: "@FlagbitProductClonerBundle/Resources/config/routing.yml"

Build and install the new front-end dependencies (new translations, etc.)

make cache assets css javascript-prod

How to use it

Open a product and there open the options dialog at the right corner. You can see it here on the screen: Product Model Clone Screen

After clicking on clone you will see this dialog: Product Model Clone Dialog Screen

Put in a new product code and click on save. After that check if all the data is correct for the new product.

Configuration

You don't need to configure this bundle by default. The default behaviour is to clone all product or product model attributes except the unique attributes. In addition, you can specify a blacklist of attributes that shouldn't be cloned:

flagbit_product_cloner.attribute_blacklist:
        - your_attribute_code1
        - your_attribute_code2
        - your_attribute_code3
        ...

Akeneo Compatibility

This extension supports the latest Akeneo PIM CE/EE stable versions:

  • 2.3 (LTS)
  • 3.0 (LTS)
  • 3.2 (LTS)
  • 4.0
  • 5.0

License

The ProductClonerBundle is licensed under the MIT License - see the LICENSE file for details

akeneo-product-cloner's People

Contributors

amansilla avatar amitflagbit avatar flagbird avatar hackwell avatar lauwiex avatar leobenoist avatar pascal-zarrad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

akeneo-product-cloner's Issues

Install error routes

I can't install routes.
Akeneo 4.0
I copy in config/routes/

While I try to copy I can see this error on consoles :
Uncaught Error: The route "flagbit_product_cloner_product_clone" does not exist.

How to use it?

I've installed your extension successfully, but have no idea how to use it. Don't see any button or anything.

Can you please tell me how to use it or send a screenshot?

Status disabled for cloned products

Hello,

ist it possible to set cloned products status to disabled automatically during clone? As this is no attribute it is not possible to use attribute_blacklist.

We often clone enabled products but want the clone to be disabled. The product is only enabled manually after missing attributes have been added.

Thank you for your help.

Cloning a product without attributes doesn't work

Steps to reproduce:

  1. Install flagbit/akeneo-product-cloner.
  2. Create new product in Akeneo. Make sure the product has no attributes.
  3. Select "Clone" from the menu.
  4. Enter a product code.
  5. Click "Save".

Actual result:

Blank dialog appears. The product is not cloned.

var/logs/prod.log shows:

request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Cannot use object of type stdClass as array" at /srv/pim/vendor/flagbit/product-cloner-bundle/src/Controller/AbstractController.php line 41 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Cannot use object of type stdClass as array at /srv/pim/vendor/flagbit/product-cloner-bundle/src/Controller/AbstractController.php:41)"} []

Expected result:

Product should be cloned (or at least an error message should appear in the dialog).

Getting a error after install

Hi,

The product edit page in Akeneo has stopped working.

Any idea about this. I did al the steps

Steps I have take

  • adding to Appkernel.php and routing.yml the needed lines.
  • Flushed cache
  • Reindex

[Error] flagbit/product-edit-form/clone is missing from the registry - include it in your requirejs.yml and clear the app cache

[Error] Error:
The module "flagbit/product-edit-form/clone" is undefined.
Most of the time it's because it's not well registered in your requirejs.yml file.
Here is the documentation to fix this problem
https://docs.akeneo.com/latest/design_pim/overview.html#register-it

ACL for the "clone" button

Hello,

I'm wondering why you set the ACL "pim_enrich_product_model_remove" for the "clone" button in the form extensions.

  1. Why "remove" and not "create" ?
  2. Why "pim_enrich_product_model_remove" for both product models and products ?

Thanks forward for your answer.

Cloning a model with products

I noticed when I clone a model there no products in the cloned model (I mean variants)
Is it possible to clone whole model with variants?

I used 3.2 version on the extension

Missing forms on cloning a model with entity reference attribute

I tried to clone a level 1 product model whose family variant is an attribute of type Reference entity single link. The result is was a form with no inputs, but only a submit button. Submitting the form would always yield an error saying that no code had been entered

problem installing with akeneo v2.3.28

tried installing via

composer.phar require flagbit/product-cloner-bundle

but got

Reading composer.json of akeneo/pim-community-dev (v3.0.18)GitHub API limit (60 calls/hr) is exhausted, could not fetch https://api.github.com/repos/akeneo/pim-community-dev/commits/c7ff0e5258d2e8af6c82972f73598c415a66e0fa. Create a GitHub OAuth token to go over the API rate limit. You can also wait until 2019-07-12 07:38:38 for the rate limit to reset.                                                                    

Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+dev-44+2019-07-12+0638
to retrieve a token. It will be stored in "/root/.config/composer/auth.json" for future use by Composer.
Token (hidden):
Token stored successfully.
Using version ^3.0 for flagbit/product-cloner-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for flagbit/product-cloner-bundle ^3.0 -> satisfiable by flagbit/product-cloner-bundle[v3.0.0].                                                                                         
    - flagbit/product-cloner-bundle v3.0.0 requires akeneo/pim-community-dev ^3.0 -> satisfiable by akeneo/pim-community-dev[3.0.x-dev, 3.1.x-dev, 3.2.x-dev, v3.0.0, v3.0.1, v3.0.10, v3.0.11, v3.0.12, v3.0.13, v3.0.14, v3.0.15, v3.0.16, v3.0.17, v3.0.18, v3.0.19, v3.0.2, v3.0.20, v3.0.21, v3.0.22, v3.0.23, v3.0.24, v3.0.25, v3.0.26, v3.0.27, v3.0.28, v3.0.29, v3.0.3, v3.0.30, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.0.8, v3.0.9, v3.1.0, v3.1.0-BETA1, v3.1.1, v3.1.10, v3.1.11, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9] but these conflict with your requirements or minimum-stability.                                 


Installation failed, reverting ./composer.json to its original content.

is there a different method i should be using for akeneo v2.3.28?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.