Closed Web10-Joris closed 1 year ago
Released as part of v5.3.5.
@duncanmcclean Thank you for releasing an update! It seems that orders are now created in the correct subsite. However, customers are still being created on the default site when they place an order via one of the subsites.
For both collections, I have set the collection setting 'Origin Behavior: When localizing an entry, which site should be used as the origin?' set to: Use the site the entry was originally created in. Additionally, all sites are enabled for both collections.
On the orders overview page, the customer preview tag is not visible for non-default site orders (Pools). Although there is a customer linked to it, they were created in the default site (Netherlands).
One last question: is it possible to disable the default 'Site' filter on page load? Or is it coded into the CP view? I would love to have this option disabled, so that all orders are visible on the initial load of the overview page.
However, customers are still being created on the default site when they place an order via one of the subsites.
I'll re-open and take a look at this when I can. My fix concentrated on fixing it for orders. I forgot about customers.
On the orders overview page, the customer preview tag is not visible for non-default site orders (Pools). Although there is a customer linked to it, they were created in the default site (Netherlands).
One last question: is it possible to disable the default 'Site' filter on page load? Or is it coded into the CP view? I would love to have this option disabled, so that all orders are visible on the initial load of the overview page.
Both of these are out of control of Simple Commerce - they're Statamic Core issues.
Thanks for your quick responses! No problem, sad to hear that the last 2 options are about Statamic Core issues.
Released as part of v5.3.6.
Description
Is it normal that when I place an order via one of the subsites (i.e. the non-default one), the order and customer are still categorized as an entry on the default site? I would like them to be separate per site. I am using different domains ( #893 ) for this setup. So when placing an order on the .de domain it should be linked to the German sub-site instead of the default English one.
Steps to reproduce
Environment
Environment Application Name: XXXX Laravel Version: 10.15.0 PHP Version: 8.1.5 Composer Version: 2.5.5 Environment: local Debug Mode: ENABLED URL: localhost Maintenance Mode: OFF
Cache Config: NOT CACHED Events: NOT CACHED Routes: NOT CACHED Views: CACHED
Drivers Broadcasting: log Cache: statamic Database: mysql Logs: stack / single Mail: smtp Queue: sync Session: file
Simple Commerce Currencies: EUR, EUR, EUR Gateways: Dummy Repository: Customer: DoubleThreeDigital\SimpleCommerce\Customers\EntryCustomerRepository Repository: Order: DoubleThreeDigital\SimpleCommerce\Orders\EntryOrderRepository Repository: Product: DoubleThreeDigital\SimpleCommerce\Products\EntryProductRepository Shipping Methods: Free Shipping Tax Engine: DoubleThreeDigital\SimpleCommerce\Tax\BasicTaxEngine
Statamic Addons: 6 Antlers: runtime Stache Watcher: Enabled Static Caching: Disabled Version: 4.11.0 PRO
Statamic Addons aerni/advanced-seo: 2.1.3 aryehraber/statamic-impersonator: 2.6.0 aryehraber/statamic-logbook: 3.1.0 doublethreedigital/simple-commerce: 5.3.0 rias/statamic-data-import: 1.3.0 statamic/collaboration: 0.7.2