Cart Issue - products not augmented #1145
-
We have a multisite website, using database for all Entries / Collections. We added the Simple Commerce to it, apply the database command / migration as per documentation. Now in cart, when listing item, we have only the product id, cannot display the product name, image or other information. We cannot complete checkout for now. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 14 replies
-
What does your template look like? |
Beta Was this translation helpful? Give feedback.
-
ok let me fix this
*Mathieu HamelPrésident514-360-0920 poste 101 | manaweb.ca
<http://manaweb.ca>*
<https://www.manaweb.ca/>
*Créativité • Agilité • Transparence *
Le mer. 18 sept. 2024 à 13:03, Duncan McClean ***@***.***> a
écrit :
… I'm getting this error whenever I try to accept the invite:
CleanShot.2024-09-18.at.18.02.26.png (view on web)
<https://github.com/user-attachments/assets/e917f1cf-77f9-4fe4-b1cb-1a7a929b8202>
—
Reply to this email directly, view it on GitHub
<#1145 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC7VNWOL66S4EIMLYFPHGVTZXGW45AVCNFSM6AAAAABM7D7ZCWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANRYGQZTQMA>
.
You are receiving this because you authored the thread.Message ID:
<duncanmcclean/simple-commerce/repo-discussions/1145/comments/10684380@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
You can try again
*Mathieu HamelPrésident514-360-0920 poste 101 | manaweb.ca
<http://manaweb.ca>*
<https://www.manaweb.ca/>
*Créativité • Agilité • Transparence *
Le mer. 18 sept. 2024 à 13:03, Duncan McClean ***@***.***> a
écrit :
… I'm getting this error whenever I try to accept the invite:
CleanShot.2024-09-18.at.18.02.26.png (view on web)
<https://github.com/user-attachments/assets/e917f1cf-77f9-4fe4-b1cb-1a7a929b8202>
—
Reply to this email directly, view it on GitHub
<#1145 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC7VNWOL66S4EIMLYFPHGVTZXGW45AVCNFSM6AAAAABM7D7ZCWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANRYGQZTQMA>
.
You are receiving this because you authored the thread.Message ID:
<duncanmcclean/simple-commerce/repo-discussions/1145/comments/10684380@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Oh thanks for taking it down, didn't realise it was published publicly
there when replying via email.
*Mathieu HamelPrésident514-360-0920 poste 101 | manaweb.ca
<http://manaweb.ca>*
<https://www.manaweb.ca/>
*Créativité • Agilité • Transparence *
Le mer. 18 sept. 2024 à 14:09, Duncan McClean ***@***.***> a
écrit :
… Thanks, it worked this time.
BTW: You posted the database link publicly on the GitHub discussion. I've
deleted the comment - are you able to send it to me via email instead?
—
Reply to this email directly, view it on GitHub
<#1145 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC7VNWL7D2NJRIFCMQ3EEEDZXG6VJAVCNFSM6AAAAABM7D7ZCWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANRYGQ4DSNA>
.
You are receiving this because you authored the thread.Message ID:
<duncanmcclean/simple-commerce/repo-discussions/1145/comments/10684894@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
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 Artisan::command('fix-sc-blueprints', function () {
$stubsPath = __DIR__.'/../vendor/duncanmcclean/simple-commerce/src/Console/Commands/stubs';
\Statamic\Facades\Blueprint::make('customers')
->setNamespace('runway')
->setContents(\Statamic\Facades\YAML::file($stubsPath.'/runway_customer_blueprint.yaml')->parse())
->save();
\Statamic\Facades\Blueprint::make('orders')
->setNamespace('runway')
->setContents(\Statamic\Facades\YAML::file($stubsPath.'/runway_order_blueprint.yaml')->parse())
->save();
}); |
Beta Was this translation helpful? Give feedback.
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 runphp artisan fix-sc-blueprints
, then it should work as expected.