Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG : Items with no sizes not adding to Vault #87

Closed
tomik-z-cech opened this issue Mar 14, 2024 · 1 comment
Closed

BUG : Items with no sizes not adding to Vault #87

tomik-z-cech opened this issue Mar 14, 2024 · 1 comment

Comments

@tomik-z-cech
Copy link
Owner

Describe the bug :
Items that has no sizes are not adding to Vault from the Item Detail page.

To Reproduce :

  • Navigate to shop
  • Navigate to any item that does't have different sizes
  • Click "Add to Vault" button
  • Navigate to Vault
  • See item is not added

Expected behavior :
All items can be added to Vault.

Screenshots :
N/A

Devices :
All devices.

Additional context :
Possible if / else statement in add_to_vault method.

@tomik-z-cech
Copy link
Owner Author

Changed default size in checkout views.py from size = request.POST.get('size', 0) to size = request.POST.get('size', 1). This ensures correct multiplication of sub-methods.

Bug fixed in commit e960cf0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant