Skip to content

Cart Issue - products not augmented #1145

Closed Answered by duncanmcclean
mathamel asked this question in Help
Discussion options

You must be logged in to vote

When you switch customers/orders to the database, it copies over the Runway blueprints.

However, it was literally copying the YAML files, which obviously wouldn't do anything if your blueprints are stored in the database, which meant your customer/order blueprints were empty, so the product wasn't getting augmented.

I'm going to tag a fix shortly for new sites, however, to fix it on existing sites, you'll need to add this snippet to your routes/console.php file and run php artisan fix-sc-blueprints, then it should work as expected.

Artisan::command('fix-sc-blueprints', function () {
    $stubsPath = __DIR__.'/../vendor/duncanmcclean/simple-commerce/src/Console/Commands/stubs';

    \Statamic

Replies: 5 comments 14 replies

Comment options

You must be logged in to vote
13 replies
@mathamel
Comment options

@duncanmcclean
Comment options

@mathamel
Comment options

@duncanmcclean
Comment options

@duncanmcclean
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@duncanmcclean
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mathamel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants