Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

digital product option fields not showing on variations #135

Closed
wautersj opened this issue Nov 16, 2023 · 1 comment · Fixed by #136
Closed

digital product option fields not showing on variations #135

wautersj opened this issue Nov 16, 2023 · 1 comment · Fixed by #136
Labels
bug Something isn't working (only for confirmed bugs)

Comments

@wautersj
Copy link

wautersj commented Nov 16, 2023

Description

I've marked a product with variations as a digital product by toggeling the is_digital_product toggle.
I've created some basic variations; but the digital product fields don't show up in the variations.

I believe (guessing) the issue exists in the conditional that rest on the product option fields on the variations level?
That the conditional looks for the 'is_digital_product' value on the variation level, and doesn't find it; it being present on the general blueprint. (Just my guess)

Steps to reproduce

  1. create product with variations
  2. mark product as digital product by toggeling the is_digital_product toggle.
  3. create some variations
  4. expect to see the digital product option fields in the varation(s)
Screenshot 2023-11-17 at 00 48 33 Screenshot 2023-11-17 at 00 48 41 -8b27-41ff-88f6-7c02c5ec6d91"> Screenshot 2023-11-17 at 00 49 08 Screenshot 2023-11-17 at 00 49 15 Screenshot 2023-11-17 at 00 49 24

Environment

Environment
Application Name: DemoShop
Laravel Version: 10.30.1
PHP Version: 8.1.14
Composer Version: 2.5.4
Environment: local
Debug Mode: ENABLED
URL: statamic-simple-commerce-start.valet
Maintenance Mode: OFF

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

Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Mail: smtp
Queue: sync
Session: file

Simple Commerce
Currencies: EUR, EUR
Gateways: Mollie
Repository: Customer: DoubleThreeDigital\SimpleCommerce\Customers\EloquentCustomerRepository
Repository: Order: DoubleThreeDigital\SimpleCommerce\Orders\EloquentOrderRepository
Repository: Product: DoubleThreeDigital\SimpleCommerce\Products\EntryProductRepository
Shipping Methods: Free Shipping
Tax Engine: DoubleThreeDigital\SimpleCommerce\Tax\Standard\TaxEngine

Livewire
Livewire: v3.1.0

Statamic
Addons: 6
Antlers: regex
Stache Watcher: Enabled
Static Caching: Disabled
Version: 4.34.0 PRO

Statamic Addons
digiti/statamic-crow: 1.1.2
doublethreedigital/duplicator: 4.0.1
doublethreedigital/runway: 5.4.1
doublethreedigital/sc-digital-products: 5.0.5
doublethreedigital/simple-commerce: 5.6.0
statamic/seo-pro: 5.2.2

@wautersj wautersj added the bug Something isn't working (only for confirmed bugs) label Nov 16, 2023
Copy link

Released as part of v5.1.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working (only for confirmed bugs)
Projects
None yet
2 participants