duncanmcclean / simple-commerce

A simple, yet powerful e-commerce addon for Statamic.
https://statamic.com/simple-commerce
Other
143 stars 34 forks source link

Receiving error when trying to load order details with tag. #1081

Closed mwagena closed 1 month ago

mwagena commented 1 month ago

Description

I'm trying to load order details but instead receive a error about object converting.

Steps to reproduce

When using the customer order tag:

{{ sc:customer:order customer="ff7ddbf2-cd01-4689-a57f-26cb2e7c96f9" id="84b28c73-3a04-478f-9447-68df026c44fe" }}
  {{ title }} - {{ grand_total }}
{{ /sc:customer:order }}

I receive the following error:

Object of class DuncanMcClean\SimpleCommerce\Orders\Order could not be converted to string

Environment

Environment Application Name: Statamic Laravel Version: 11.8.0 PHP Version: 8.3.6 Composer Version: 2.6.5 Environment: local Debug Mode: ENABLED URL: local.dev Maintenance Mode: OFF

Cache Config: NOT CACHED Events: NOT CACHED Routes: NOT CACHED Views: NOT CACHED

Drivers Broadcasting: log Cache: redis Database: mysql Logs: stack / single Mail: smtp Queue: sync Session: file

Simple Commerce Currencies: EUR Gateways: Mollie Repository: Customer: DuncanMcClean\SimpleCommerce\Customers\UserCustomerRepository Repository: Order: DuncanMcClean\SimpleCommerce\Orders\EntryOrderRepository Repository: Product: DuncanMcClean\SimpleCommerce\Products\EntryProductRepository Shipping Methods: Free Shipping Tax Engine: DuncanMcClean\SimpleCommerce\Tax\BasicTaxEngine

Statamic Addons: 4 Sites: 1 Stache Watcher: Enabled Static Caching: Disabled Version: 5.5.0 PRO

Statamic Addons concept7/oms: dev-develop duncanmcclean/simple-commerce: 7.2.0 rias/statamic-redirect: 3.7.1 statamic/seo-pro: 6.0.3

github-actions[bot] commented 1 month ago

Released as part of v7.2.1.