== Changelog ==

Older Sunshine Photo Cart releases. The newest changes are in readme.txt.

= 3.6.12 - July 21, 2026 =
* New: Zip/postal code fields for tax rates and the Local Delivery method now accept wildcard prefixes (902* matches any code starting with 902) and numeric ranges (90210...99000), in addition to exact comma-separated codes
* Security: Comments on images in password-protected, private, or otherwise access-restricted galleries could be retrieved without passing the gallery's access check; the comments endpoint now enforces the same access control as the rest of the gallery
* Fix: Photos imported with pre-processed thumbnails (including cloud imports) whose dimensions were unknown could render as an empty gallery in the justified layout; they now fall back to a default size so they always display
* Fix: Notes entered on one order could prefill the Notes field on a customer's later orders at checkout; order notes no longer carry over between orders
* Fix: Stripe webhook no longer reports a failure to Stripe when it receives a payment that wasn't made through Sunshine (such as a Stripe Payment Link or another app on the same account); those events are now acknowledged and skipped instead of returning an error, which keeps Stripe from disabling the endpoint
* Fix: Fatal error on every page load when no payment methods are available (such as when an addon disables them all) and a visitor's session had a previously selected payment method
* Fix: Checkout now requires a valid shipping method before an order can be completed, and re-prompts when a cart change makes the selected method unavailable

= 3.6.11 - June 29, 2026 =
* New: As a safety net, Square re-checks recent pending orders in the background so a payment that completes after the customer closes their browser still finalizes on its own. Normal orders are unaffected (they finalize instantly at checkout), and this background check can be disabled with the sunshine_square_background_reconcile filter
* New: Reconcile Pending Square Orders tool under Sunshine → Tools to check any existing pending Square orders against Square's API and finalize the ones Square reports as completed
* New: "Recheck payment status in Square" order action to verify a single pending Square order against Square and finalize it from the order screen
* Security: Removed three unused admin AJAX handlers that lacked capability and nonce checks, which could let a logged-in non-admin read or alter image metadata on photos in private galleries
* Enhancement: Galleries with large numbers of photos load with fewer database queries; the gallery no longer re-reads its full photo list from the database on every internal lookup
* Enhancement: Orders with many items load with far fewer database queries on the order, account order history, and receipt screens by loading all item details in a single query instead of one query per item
* Fix: Re-submitting a Square payment (re-entering a card after a prior attempt) no longer shows a confusing "Different request parameters used for the same idempotency_key" error; the gateway now skips charging an already-paid order and recovers the original payment instead of charging again, including the case where the first charge succeeded but its response was lost before the order recorded it (the payment is located via the Square order and the order is finalized)
* Fix: The checkout button is now disabled and shows "Processing payment..." while a Square charge is in flight, so a slow charge no longer tempts buyers to click again or refresh (which was the main cause of the duplicate-submission error)
* Fix: A failed Square refund now reports the actual reason in the admin notice and the log instead of failing silently, and refunds against an order whose Square mode has no connected credentials now show a clear message
* Fix: Quick Edit checkbox fields (such as a product's Taxable setting) did not save when checked, leaving the value empty
* Fix: The per-image Watermark checkbox on the attachment edit screen showed unchecked even when the image was set to be watermarked
* Fix: PayPal rejecting tax-included orders with a discount due to a breakdown mismatch
* Fix: Percentage payment fees charging more than the cart total when a discount was applied
* Fix: Account endpoints could return a 404 after their slug was changed because the rewrite rules were never refreshed; saving any account endpoint setting now flushes rewrite rules automatically, and rewrite rules are also refreshed when the plugin updates
* Fix: The Account Details and View Order account endpoints used a different default slug on the settings screen than the one actually registered, which could cause those pages to 404 after saving settings; the defaults now match
* Fix: Square orders could be left in pending status after the customer was charged at Square. The gateway now validates Square's payment status before completing the order and recovers any stuck orders on the next checkout page load
* Fix: Square orders on stores with tax-inclusive pricing and a discount sent a total to Square that did not match Sunshine's total, so the line-item breakdown did not appear in the Square dashboard; Square is now told the tax is included in the price so its computed total matches and the itemization shows
* Fix: Stripe orders could be left on "Pending Payment" after a successful charge when the payment was retried at checkout
* Fix: Stripe orders could be marked "Failed" even though the payment succeeded
* Fix: Viewing an order with no stored cart snapshot (such as an imported order) could cause an error on the order's items screen

= 3.6.10.1 - May 28, 2026 =
* Fix: Galleries returning 404 after upgrading to 3.6.10 caused by a change in how option defaults were resolved
* Fix: Sites that had favorites disabled before 3.6.0 had their setting silently re-enabled by the 3.6.0 migration; favorites are now restored to their original disabled state
* Enhancement: Dashboard widget now reports net revenue (gross minus refunds) for this month, last month, and lifetime totals

= 3.6.10 - May 27, 2026 =
* New: Pickup is now a cloneable shipping method. Configure multiple pickup locations — each with its own price, taxability, and customer-facing details — and each appears as its own option at the delivery step on checkout
* Fix: Disabling favorites in settings did not hide the favorite button in the image menu or the Favorites link in the main navigation
* Fix: Update detection used a string comparison that failed for certain version transitions, so post-update routines did not run

= 3.6.9 - May 22, 2026 =
* New: Order admin "View packing list" bulk action redesigned as a print-ready fulfillment checklist with per-order customer/delivery/address header, checkbox column, and page break between orders
* New: "View packing list" link on the single order screen to open the fulfillment checklist for that order
* New: Filter `sunshine_admin_order_items_custom_rows` lets add-ons replace the default row rendering in the fulfillment checklist for custom cart item types
* Enhancement: Square payments - fixes stuck pending orders, duplicate charges, missing buyer info, and 3D Secure handling. Itemizes line items, tax, shipping, and discounts via Square's Orders API. Passes the Sunshine order number to transactions, stores card brand/last 4/expiry on orders, and tracks Square processing fees (auto-refreshed daily) as a new column on the order export
* Enhancement: Stripe Hosted Checkout - tax now passed via Stripe's tax_rates so it appears in Stripe's tax reports, shipping uses Stripe's shipping_options for proper categorization, transaction descriptions match the inline checkout format, and Stripe processing fees appear in a new column on the order export
* Enhancement: Digital download line items skip the checkbox in the fulfillment checklist since they're already delivered
* Enhancement: License settings now tell you how to fix activation when a license is still in use on a previous site URL, including a direct link to manage your sites on sunshinephotocart.com
* Fix: Product meta box field conditions from multiple add-ons stacked on the same field no longer contradict each other when toggling product type
* Fix: Order line item prices in the admin and on order receipts used the current tax display setting instead of the one saved when the order was placed
* Fix: Galleries with a cleared expiration date could be permanently deleted by the daily privacy cleanup cron when expired-gallery deletion was enabled
* Fix: Customer email link in order receipt and status emails prepended `http://` instead of using a `mailto:` link
* Fix: Duplicate customer and admin receipt emails sent for Stripe hosted checkout orders when webhooks were enabled
* Fix: Country dropdown change at checkout saved to an incorrect session key
* Fix: An admin's own customer profile page in admin view could show orders belonging to guests

= 3.6.8 - May 7, 2026 =
* Security: Hardened several admin and checkout endpoints with capability and nonce checks
* New: Quick Edit support for galleries to inline-edit gallery type, password, allowed customers, access type, expiration, comments, sharing, products, and price level
* New: Quick Edit support for products to inline-edit type, price, taxable, shipping, and quantity limits
* New: Bulk Edit support for galleries to update gallery type, allowed customers, access type, expiration, comments, sharing, products, and price level across many galleries at once
* New: Bulk Edit support for products to update type, taxable, shipping, and quantity limits across many products at once
* New: `quick_edit` and `bulk_edit` field flags so add-ons can opt their meta box fields into the inline editors
* New: Compatibility with Polylang and WPML so Sunshine pages (cart, checkout, account, etc.) resolve to the current-language translation
* Fix: Discount coupons and store credits ignored by Stripe Checkout (redirect) flow, causing the full pre-discount amount to be charged

= 3.6.7 - April 27, 2026 =
* New: Filter `sunshine_store_product_item_link` to allow add-ons to replace the store product modal with a direct link
* New: Actions `sunshine_gallery_password_before`, `sunshine_gallery_password_after`, `sunshine_gallery_email_before`, and `sunshine_gallery_email_after` to add custom content around gallery password and email fields
* Fix: Galleries requiring email entry now correctly block access until an email is provided
* Fix: Classic/Cover theme menu CSS fixes
* Fix: Flat rate shipping calculations to consider if line items need shipping when doing advanced shipping calculations

= 3.6.6 - April 20, 2026 =
* Fix: Admin email for customer signup missing template tags
* Fix: Tax calculations when price includes tax, discount used, and discounts applied before tax
* Enhancement: Allow more source options for filling multi-image/packages
* Enhancement: [sunshine_gallery] shortcode looks for current gallery ID as fallback
* Change: Main menu CSS adjustments - selectors less strict

= 3.6.5  - March 30, 2026 =
* Fix: Regenerated images not re-uploaded to cloud storage after watermark changes
* Fix: Product categories created via the block editor not appearing on the taxonomy management screen
* Fix: Single product mode not triggering multi-image product image selection UI
* Fix: Redundant product database queries causing lock contention on high-traffic sites

= 3.6.4 - March 19, 2026 =
* New: Privacy setting to automatically delete galleries a specified number of days after they expire
* Fix: Google address autocomplete not working for address fields at checkout
* Fix: Tax calculated on pre-discount subtotal when discounts are applied before tax
* Fix: Package image selection showing blank when switching source dropdown on second or later items

= 3.6.3 - March 13, 2026 =
* Enhancement: Migrated image keywords to dedicated meta key for significantly faster search performance on large sites
* Fix: Image keyword search not returning results due to incorrect post status filter and metadata escaping
* Fix: How it checks for Imagick during watermarking process to really be sure it is available before trying to use it
* Fix: Optimized private gallery lookup query that could cause slowdowns on sites with many images

= 3.6.2 - March 6, 2026 =
* Security: Added nonce verification and access control checks to multi-image select AJAX handlers
* Fix: "Always collect an address" fields not reloading state/province options when country changes
* Fix: Tax rates not applied when using customer address fields instead of shipping address
* Fix: Automatically show address fields at checkout when tax rates require a specific location
* Fix: Stripe hosted checkout not including gateway fees in line items
* Fix: Stripe hosted checkout creating unnecessary duplicate payment intent
* Fix: Stripe hosted checkout compatibility with Accounts v2 (pass customer ID)
* Fix: Stripe hosted checkout overriding order status set by other plugins (e.g. digital downloads auto-ship)
* Fix: Stripe statement descriptor suffix failing when order number contains only digits
* Fix: Stripe payment failures for zero-decimal currencies (HUF, ISK, etc.) on accounts with older Stripe API versions
* Fix: Fatal error when guest adds or removes favorites with Analytics addon active
* Fix: Empty autocomplete attribute rendered on form fields when no value is set
* Fix: Share favorites not working for guests even when guest favorites are enabled
* Fix: Watermarked images now respect EXIF orientation data, preventing incorrectly rotated output
* Fix: Guest favorites not merging into account after logging in or registering

= 3.6.1 - March 3, 2026 =
* Add: Setting to enable or disable guest favorites
* Fix: Image search query causing database lockups on sites with large posts/postmeta tables due to unconstrained joins
* Fix: Stripe inline checkout orders not updating to paid status when using webhooks

= 3.6 - March 2, 2026 =
* Add: Caption option added to Thumbnail Content setting (from EXIF metadata)
* Add: Option to show image caption under single image view
* Add: Admin Gallery Navigator - Easier gallery management with lots of galleries and hierarchy
* Add: Guest Favorites - Users can add images to favorites for single session without account
* Add: Selection Tray - Show current favorites in a persisent floating section while viewing Sunshine galleries
* Add: Quickly add all favorites to cart
* Add: Delay gallery upload image processing so uploads can happen faster
* Add: Stripe - Hosted Checkout
* Add: Stripe - Additional customization options
* Add: Galleries pagination - paginate the main galleries list with numbered pages, load more button, or infinite scroll
* Add: Separate display settings for galleries list (columns, pagination style, per page) and images (columns, pagination style, per page)
* Add: Honeypot spam protection on login, signup, and password reset forms
* Add: Compatibility with Imagify, ShortPixel, and Image Optimizer (Elementor) plugins to prevent gallery image optimization
* Enhanced: Directly to single product details if only one product is available
* Enhanced: Settings now allow setup to set validation comparisons to other fields
* Change: Disable image sharing also disables sharing in Favorites
* Change: If a gallery has both sub-galleries and images, it will show sub gallery list first and then images below
* Fix: Do not rely on gallery/image, allow price level to be passed during add to cart from modal for General products
* Fix: Stripe properly handle zero-decimal currencies
* Fix: Fallback image dimensions for gallery images when they are not available as they should in rare situations
* Fix: Toggle email on/off and clicking save button reverted email status
* Fix: Order profit calculation was not taking into account line item discounts
* Fix: Infinite scroll pagination now properly waits for DOM to load
* Add: Privacy system - New Privacy settings tab with account erasure request handling, bulk personal data removal from orders, and configurable data retention periods for inactive accounts and orders
* Add: WordPress core "Erase Personal Data" and "Export Personal Data" integration for customer and order data
* Add: New "duration" settings field type (number + time unit)
* Fix: Search input fields being stripped out when included in a gallery description
* Add: Log files now use randomized filenames for improved security
* Add: New "Enable PHP error logging" option to capture PHP notices, warnings, and fatal errors to a separate log file
* Add: Log files are now downloaded through authenticated admin routes instead of direct file access
* Security: Block direct web access to log files via .htaccess
* Fix: Automatically prevent Yoast SEO and Rank Math from redirecting Sunshine gallery image pages when media pages are disabled

= 3.5.7.3 =
* Security: Add permission check on image data ajax request

= 3.5.7.2 =
* Security: Add capability check on upgrade functions

= 3.5.7.1 =
* Security: Add permission check/nonce on upgrade functions

= 3.5.7 =
* Add: Work with new text product option
* Add: New email template tag to show galleries in the purchase for admin orders
* Enhancement: FTP upload errors will show which image had an error while uploading
* Enhancement: Image assigned to gallery later in upload process to better ensure no processing errors happened first
* Enhancement: Regenerating images now prompts user on how to handle image watermarks before processing
* Fix: Dashboard stats calculations
* Fix: Option pricing added twice when showing order line items
* Fix: PayPal Legacy not properly including line item discounts
* Fix: PayPal Legacy not setting order status to new in webhook

= 3.5.6.2 =
* Fix: Overzealous escaping caused issues in various places, take 2

= 3.5.6.1 =
* Fix: Overzealous escaping caused issues in various places

= 3.5.6 =
* Fix: Address Autocomplete at checkout
* Fix: Not saving line item discount amount to database, so not showing in receipts/admin
* Fix: Tons of escaping functions and other changes to meet Plugin Check guidelines
* Fix: Fix saving customer notes during checkout to customer meta and clearing out customer notes from usermeta as it is unnecessary data
* Fix: Only run the update processes for the versions that are needed, also run if versions may have been skipped
* Update: Translations

= 3.5.5 =
* Fix: Further refinements to line item subtotal calculations
* Fix: FTP import existing image check to be case insensitive
* Enhancement: Stripe - Improved order recovery for users who refresh or do weird things while payment is processing that interrupts the normal flow
* Enhancement: Stripe - Improved indicator that payment fields are still loading to help with slow connections
* Add: Allow 3 character currency code to be displayed along with all prices

= 3.5.4.2 =
* Fix: Further refinements to line item subtotal calculations
* Fix: Square charge wrong total that go directly to payment section on Checkout

= 3.5.4.1 =
* Fix: Subtotal display not giving proper total when line item has discounts and no tax is set for current cart

= 3.5.4 =
* Enhancement: CSS updates in add to cart to improve buttons and mini cart
* Enhancement: CSS updates for general store product list items, entire product line clickable
* Enhancement: Show discounts in all cart/checkout/emails before/after tax based on settings
* Change: PayPal - disable inline card form, users can still pay with card within PayPal popup
* Fix: [sunshine_galleries] shortcode in page content returns true for is_sunshine()
* Fix: Require a valid order ID on init order to continue to payment processing
* Fix: Cart line item sub total display when discounts are applied
* Fix: Better organize prices internally when prices are entered with tax
* Security: Add nonce to Stripe disconnect process

= 3.5.3 =
* Add: Custom label/description for Pickup delivery method
* Fix: Stripe reusing customer ID during guest checkout
* Change: Stripe - set custom payment description
* Change: Adjust gallery search to also consider Access Type for parent galleries
* Enhancement: Justified gallery/image layout CSS

= 3.5.2 =
* Add: sunshine_favorites_file_names_separator to better customize how file names for favorites are displayed
* Change: Help ensure session garbage cleanup is run regularly
* Fix: Rounding errors when tax is included in price
* Fix: Showing proper subtotal when tax is included in price
* Fix: Tax + Discount calculations in set_tax for cart
* Fix: Conflict with Elementor for order filter by gallery
* Fix: Clean up translations

= 3.5.1 =
* Change: Minor tweak to checkout submit element to better work with add-on gateways
* Change: PayPal Legacy always clear cart on return 
* Change: Remove logging of metadata during checkout flow
* Fix: Stripe - Don't run on init_order when Stripe not selected
* Fix: private get_mode() for payment methods causing errors with outdated gateway add-ons

= 3.5 =
* Enhancement: Under the hood checkout flow process
* Enhancement: Improved search results to handle multiple keyword searches
* Enhancement: Translations updated
* Add: Orders can be filtered by gallery
* Add: Help link to Sunshine admin menu
* Add: Link to view all comments from a customer
* Add: Option to disable invoices with orders (Settings > Checkout > Orders)
* Add: Conditional needs_delivery() for all products so this section can be disabled at checkout if allowed based on cart items
* Add: Email receipt template tags for receipt/invoice link/url
* Add: Custom CSS for emails in Settings > Design > Customizations
* Add: More currencies
* Add: Check during gallery image upload that images meet the size requirements, shwo error if they do not
* Add: Gallery option to enable Open Graph data to be used for gallery/image pages (your SEO plugin may already be doing this though)
* Add: WhatsApp to gallery/image sharing options
* Change: In multi-image selector sources, only show galleries with images
* Change: Cover theme hides cover photo when in store view
* Change: Hide main galleries link also hides the return to parent gallery link
* Enhancement: JS passing more data for product show details event for add-ons to hook into
* Enhancement: Filters on discount data
* Enhancement: Admin order details page, add link from line item thumbnail to image details screen
* Enhancement: sunshine_get_gallery_descendant_ids optimized for query speed
* Enhancement: Improved Order Summary on checkout page for mobile
* Fix: Square gateway works with cards requiring SCA
* Fix: During image upload, do our own EXIF exploration to get the true created_timestamp and not rely entirely on WP
* Fix: Confirm data format for gallery emails before adding new one to prevent fatal error
* Fix: Discount calculation use subtotal when checking for minimum order amount
* Fix: Assigning/unassigning favorites and adjusting quantities in multi-image select view
* Fix: Custom email template check
* Fix: Show payment method fees on order details page
* Fix: Do not remove favorites when local image URL not found as they could be hosted at S3
* Fix: Shipping as Billing feature in checkout (currently only used with Square)
* Fix: Calculate tax on discounted amount for items
* Fix: PayPal refund in admin handle "pending" status when showing result message
* Fix: Include fees on order invoice template
* Fix: Tracking latest login time
* Fix: Restore order count to main admin menu
* Fix: Selecting images from other source galleries beyond original during store add to cart flow
* Fix: Mobile styling in store add to cart modal

= 3.4.12 =
* Fix: Security Fix: admin password could be reset via customer account password reset if admin user_login is known

= 3.4.11 =
* Add: Product minimum quantity (per cart line item)
* Fix: Discount variable typing for allowed galleries removed as caused slowness in rare instances
* Fix: Add error checking during watermark process to prevent fatal error when watermark PNG file is not valid
* Fix: Watermarking work with more file formats: jpg, gif, webp
* Fix: Security vulnerability around unused Stripe webhooks

= 3.4.10 =
* New shortcode: sunshine_cart_quantity
* New shortcode: sunshine_mini_cart
* Fix: Line item subtotal function in receipt emails
* Fix: Cart line item to properly show image file name when using "filename" image name setting
* Fix: Show all discount names in receipt emails when multiple discounts are applied
* Fix: Process price_level in add to cart via URL
* Fix: Remove existing items from cart if the product pricing has since been removed
* Fix: is_sunshine_page() special condition check for checkout to see if we are actually on receipt page
* Update: Add additional code for EWWWW compatibility so it does not affect watermarks from their recent updates

= 3.4.9.1 =
* Fix: Left debug line showing file shoot time instead of file name in gallery admin
* Fix: Discount allowed galleries force check for array value

= 3.4.9 =
* Add: New filter - sunshine_product_max_qty
* Add: New setting - disable random strings in image file names for security
* Fix: Improved check for when to increase qty vs add new line item
* Fix: Order log use selected timezone time
* Fix: Line item subtotals when prices enter with tax and shown with tax

= 3.4.8.1 =
* Fix: Rename hook back to "sunshine_checkout_create_order" to fix compatibility with various add-ons

= 3.4.8 =
* Add: Product category descriptions shown in image add to cart modal
* Add: Filter 'sunshine_order_email_search_replace' to allow custom checkout fields to order emails
* Add: Automatically ignore optimization in EWWW Image Optimizer plugin for all Sunshine gallery images to prevent issues
* Update: Prices in cart always use most recent product pricing instead of when added to cart
* Update: Include product photo in Store if exists
* Fix: Button styling dark on dark in packages modal
* Fix: Default watermark state to true so it applies in other add-ons/areas as expected after adding new optional watermark setting
* Fix: Image/folder deletion on FTP import when successful if option is set
* Fix: Don't redefine DONOTCACHEPAGE if already set
* Fix: Apply masonry properly to all instances of a gallery list on a single page

= 3.4.7.1 =
* Fix: User search bugs introduced in last update
* Fix: Watermark toggle at gallery upload now works with FTP import

= 3.4.7 =
* Fix: Prevent duplicates in customer/user search in meta user fields
* Fix: Regenerate images follows watermark setting for individual image at upload, fallback to default if not set

= 3.4.6 =
* Add: Ability to disable watermarks during drag/drop image upload process
* Update: Delete custom Sunshine gallery image folders after all it's images have been deleted
* Fix: Not showing password reset screen when disable signup is enabled

= 3.4.5 =
* Fix: 100% discounts not applying to tax due to recent change that has been reverted
* Updated: translations
* Fix: Obey "Disable Signup" at checkout by not showing/requiring a password and effectively allow guest checkout
* Add: More granular capabilities for access to various areas such as reports, tools, customers, add-ons
* Fix: Classic theme CSS styles on mobile for search/password forms in header

= 3.4.4 =
* Fix: Double Before Content with Classic theme
* Fix: Classic CSS menu/header styling for mobile devices
* Fix: Sunshine Manager capabilities to edit gallery images
* Fix: Issues with watermarks not being applied after recent new enhanced image security features

= 3.4.3 =
* Fix: Orders paid with credits not moved to "new" status
* Fix: Bug hiding password field at checkout

= 3.4.2 =
* Update: New user sign up without password, new account email includes link to set password
* Fix: Stripe creating many pending payments
* Fix: Stripe not charging proper amount when credit is applied
* Fix: Change "sunshine_set_discounts" timing so rule application can happen after any are auto added

= 3.4.1 =
* Fix: htaccess rules to allow loading thumbnail in emails
* Fix: Order status setting fixed for all gateways during checkout flow
* Fix: Offline payment instructions included in email

= 3.4 =
* Add: Enhanced image protection via htaccess rules + file naming conventions
* Fix: Square order email sent before order status updated to "new" status
* Add: "notify" notice type styling

= 3.3 =
* New! Ability to set pricing on a per-image basis
* Fix: Wrong price level for imageless products when adding to cart from store
* Adjusted mobile modal styles
* Fix: Ajax powered galleries field to also include Direct URL access galleries
* Fix: Multi-image select only allows max qty 1 on digital products in store (and for packages)
* Fix: Handling async payment methods in Stripe
* Fix: Issues with action triggered emails sending to same person multiple times
* Fix: Do not send new account registration emails when admin is the one triggering it
* Fix: Add "products" as available settings field
* Fix: Classic theme CSS styles
* Enhancement: Better support for Yoast Open Graph images to use the sunshine-large size

= 3.2.11 =
* Fix issue with conflicting settings: disable account vs no guest checkout. No guest checkout takes precedence.
* Fix issues showing main galleries page content in Classic/Cover themes
* Slight CSS style adjustments to action menu
* Add customer notes to order invoice
* Use wp_safe_redirect to ensure no malicious redirects to external sites happen
* Do not set first shipping method to default for cart unless there is only 1

= 3.2.10 =
* New ajax powered Products meta field
* Secure ajax powered meta fields with nonces
* New gallery image sort new to old for image shoot time
* Include gallery hierarchy in admin order email for each line item
* Revert max quantity for a product to be per line item, not entire cart
* Fixed security around tools
* Fixed security around connecting to Square/Stripe

= 3.2.9 =
* Fix tracking count query which used hardcoded database table prefix
* Fix child gallery password form when parent gallery requires password
* Fix mobile styling for Account > Orders
* Add URL query arg after entering gallery password or access code to help bust cache
* Fix issues around available delivery methods during checkout based on items in cart
* Fix security issue found by Patchstack allowing access to add-on toggling by customers
* Updated translations

= 3.2.8 =
* Better display on product details when product has a max quantity
* Properly limit cart line item quantity based on product max quantity
* Sunshine Manager role can update Sunshine settings again
* Sunshine Manager role can access Discounts
* Cart items can now have metadata when adding to cart
* Fix showing shipping on all order total screens when it is free
* Fix admin Emails table styling
* Properly send order receipt when doing refund and option checked for Stripe/Square
* Include refunds on all order total screens
* Invoice show gallery hierarchy

= 3.2.7 =
* Remove tax basis setting, not used
* Install/update process adds permissions to access order statuses for Sunshine Manager
* Above miraculously fixes issue with Sunshine Manager not being able to access Orders :shrug:
* Sunshine 3 upgrade process deletes all user carts to ensure we do not have old Sunshine 2 cart data
* Fix Square API calls to get locations
* Fix Square order total so it never has decimals
* Fix call to function to make cover image when cover theme is active

= 3.2.6 =
* Sanitize session data differently to allow special characters
* Fix admin meta conditional javascript function name to allow multiple conditions
* Notes field moved above payment field at checkout
* Filter for default category when saving product in admin
* Prevent duplicate image IDs in galleries
* Products in cart can require a customer create an account at checkout
* Fix XSS vulnerability found by Le Ngoc Anh/Patchstack

= 3.2.5 =
* Add new Product Type filter in products admin table
* Hotfix - Not logged in multi-image selection fix

= 3.2.4 =
* Remove Stripe/Square SDKs, use native functions to massively reduce overall file size of plugin
* Fix mobile image select for gallery image upload in admin
* Filter sunshine gallery images to not use Jetpack/WordPress.com Image CDN to prevent watermark issues
* Fixed and improved discount validation check rules and applying discount per line item
* Fix get product max quantity check function (remove version without filter)
* Update icons used for better UI consistency
* Fix and improve the multi image selection JavaScript
* Set lang strings to be passed to sunshine.js so they can be translated
* Translations updated

= 3.2.3 =
* Show ID in admin table list for galleries and products
* Update add to cart to allow empty gallery ID for general products

= 3.2.2 =
* Prevent ability to favorite images from private galleries current user does not have access to
* Translations updated

= 3.2.1 =
* Fix allowing free shipping with discount code + restrictions
* Fix add to cart permission checks to allow Sell Anything products with no image
* Updated order access check function
* Fix getting cart total as proper float value

= 3.2 =
* New! Drag and drop to set the order of payment methods
* New! Add new Stripe option to configure layout: tabs vs accordion
* New! Add-on category filters to make finding add-ons easier
* Adjust the Checkout payment options so the payment fields are closer to the selected payment option
* Checkout will auto select the first payment option even if multiple are available
* Fix [sunshine_gallery show_main_menu="false"] does not show main menu
* Adjustment to cart_total_formatted()
* Add filter to customer gallery query args
* Style adjustments to mobile checkout
* Adjust checkout shipping/payment selection to make it more clear they are selectable options, default to first if none yet selected
* Fix resending order receipt email so it does not send to the admin
