Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use different product for bundle-product.js versus adding to cart #44

Open
erikhansen opened this issue Jul 28, 2020 · 0 comments
Open

Comments

@erikhansen
Copy link

I propose adding a second (optional) argument to magepack generate:

--product-add-to-cart-url

The purpose of this argument would be to allow a developer to specify a simple product to add to the cart, while specifying a more complex product (Bundle, Configurable, Simple with custom options, etc) to be used for generating the bundle-product.js file.

The reason I'm asking for this is because I have a Magento site that use MageWorx Advanced Product Options on configurable products, and if I pass a configurable product to the --product-url argument, I run into errors. If I run magepack generate using a simple product, then when I load the configurable product, I see dozens of additional JS files getting loaded since they are not getting include in the bundle-product.js file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant