Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Enhancement for guest orders, products, orders and purchase items #3

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

herbyme
Copy link

@herbyme herbyme commented Feb 23, 2014

For #1 and #2

Added options for guest orders, products, as well as orders for each fake customer. Didn't break it out into separate classes or separate commands (wanted to keep it as one command).

$customer_count = $opts[0];
$product_count = intval($opts['products']);
$guest_order_count = intval($opts['guestorders']);
$customer_count = intval($opts['customers']);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens here if you pass in --customers 50000 3 5?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made a fix to this to pick up items from the existing database. I'll submit a pull request once I have made the other changes.

@punkstar
Copy link
Owner

Thanks for this! I've wanted to add this for ages.

@herbyme
Copy link
Author

herbyme commented Feb 23, 2014

I have a new patch that fixes some of these issues and I'll submit it pending your suggestions/feedback.

Thanks heaps.

…n. Made other changes as well based on feedback.
… have an existing item in the catalog. This means you should be able to create 'simple' product type items on the fly with an empty catalog.
@herbyme
Copy link
Author

herbyme commented Feb 25, 2014

I've added changes based on your review. Not sure if you want me to create a new branch and submit a new pull request or happy to use the 'new' commits on herbyme/magefaker?

@ArnaudLigny
Copy link

Hi guys, any news about this PR?

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

Successfully merging this pull request may close these issues.

3 participants