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

Option to have Multiple of the same item, quantity parameter for new Item #1

Open
JeroenSteen opened this issue Sep 2, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@JeroenSteen
Copy link

Is it possible to use multiple of the same items, for adding them easily to addItems function.
Instead of the following:

$packager->addItems([
    new Item("Visitekaart 85x51mm sulfaatkarton", 85, 0.345, 51, 1.3)
])

Something more like this, with the addition of a quantity for example: 1000 (for 1000 of the same items)

$packager->addItems([
    new Item("Visitekaart 85x51mm sulfaatkarton", 85, 0.345, 51, 1.3, 1000)
])
@latuconsinafr latuconsinafr added the enhancement New feature or request label Sep 3, 2022
@latuconsinafr
Copy link
Owner

Is it possible to use multiple of the same items, for adding them easily to addItems function. Instead of the following:

$packager->addItems([
    new Item("Visitekaart 85x51mm sulfaatkarton", 85, 0.345, 51, 1.3)
])

Something more like this, with the addition of a quantity for example: 1000 (for 1000 of the same items)

$packager->addItems([
    new Item("Visitekaart 85x51mm sulfaatkarton", 85, 0.345, 51, 1.3, 1000)
])

Yeah, it is possible. Going to update and add the feature soon.

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

No branches or pull requests

2 participants