{"id":46127975,"url":"https://github.com/rapidez/statamic-quote","last_synced_at":"2026-03-02T03:04:13.802Z","repository":{"id":311734891,"uuid":"1044769941","full_name":"rapidez/statamic-quote","owner":"rapidez","description":null,"archived":false,"fork":false,"pushed_at":"2026-02-25T10:39:22.000Z","size":64,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-25T14:57:52.610Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rapidez.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-26T07:23:18.000Z","updated_at":"2026-02-13T14:48:03.000Z","dependencies_parsed_at":"2025-08-26T09:27:50.171Z","dependency_job_id":"298c2e12-0ea2-4d26-8a91-29fee0b80bdc","html_url":"https://github.com/rapidez/statamic-quote","commit_stats":null,"previous_names":["rapidez/statamic-quote"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/rapidez/statamic-quote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidez%2Fstatamic-quote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidez%2Fstatamic-quote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidez%2Fstatamic-quote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidez%2Fstatamic-quote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rapidez","download_url":"https://codeload.github.com/rapidez/statamic-quote/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rapidez%2Fstatamic-quote/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29991299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-03-02T03:04:05.197Z","updated_at":"2026-03-02T03:04:13.791Z","avatar_url":"https://github.com/rapidez.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rapidez Statamic Quote\n\n\u003e [!NOTE]\n\u003e This package requires the Rapidez+Statamic combination to be installed and set up.\n\nAllows you to add a \"Request quote\" button anywhere with products present.\n\n## Installation\n\nYou can install this package using Composer:\n\n```sh\ncomposer install rapidez/statamic-quote\n```\n\nThen, you'll need to publish the blueprint and form field. You're probably also going to want to publish the config file:\n\n```sh\nphp artisan vendor:publish --tag=quote-content\nphp artisan vendor:publish --tag=quote-config\n```\n\nAfter publishing these, we would also recommend adding a default country to the country dictionary field in the form blueprint.\n\n## Usage\n\nThis package does not create any \"request invoice\" buttons on the frontend by default. These will need to be added by the developer. The simplest way to do this is by adding this button to your product page:\n\n```blade\n\u003cx-rapidez-quote::button v-bind:add-products=\"{\n    sku: addToCart.simpleProduct.sku,\n    qty: addToCart.qty,\n    options: addToCart.customSelectedOptions,\n}\"\u003e\n    @lang('Request quote')\n\u003c/x-rapidez-quote::button\u003e\n```\n\nYou can also pass an array to `add-products`, which allows you to push an array of products to the quote. This can be useful for turning a cart into a quote request:\n\n```blade\n\u003cx-rapidez-quote::button v-bind:add-products=\"cart.items.map(item =\u003e ({\n    sku: item.product.sku,\n    qty: item.quantity,\n    options: item.options,\n}))\"\u003e\n    @lang('Request quote')\n\u003c/x-rapidez-quote::button\u003e\n```\n\n## Automatic PDF\n\nBy default, this package will automatically generate a quote for you based on the products. However, you may not want this to happen for various reasons. To this end, you can disable this functionality by setting the `auto_send_quote` config setting to `false`.\n\nThis can be done store-specific as well, see the [multistore configuration](https://docs.rapidez.io/4.x/configuration.html#multistore) section in the Rapidez docs.\n\n### Hooking into the quote data\n\nYou can use the `quote.data` Eventy filter to hook into the data that's being sent to the automatic quote:\n\n```php\nEventy::addFilter('quote.data', function ($quoteData) {\n    return [\n        ...$quoteData,\n        'products' =\u003e $quoteData['products']-\u003emap([...])\n    ];\n});\n```\n\nYou can also return `null` to not send the quote under certain conditions, for example:\n\n```php\nEventy::addFilter('quote.data', function ($quoteData) {\n    if ($quoteData['products']-\u003econtains(fn($item) =\u003e $item['product']-\u003eno_quote)) {\n        // Don't send\n        return null;\n    }\n    \n    return $quoteData;\n});\n```\n\n### Hooking into the mail itself\n\nYou can use the `quote.mail` Eventy filter to hook into the mailable object that gets used for automatic quotes. For example, if you want to add a `bcc` to the sent email:\n\n```php\nEventy::addFilter('quote.mail', function ($mail) {\n    return $mail-\u003ebcc('bcc@example.com');\n});\n```\n\n## Styling\n\n### Modifying the PDF\n\nYou can overwrite the `rapidez-quote.exports.quote` view to do most of the basic modifications you might need. However, if you want to completely upend the styling of the pdf (or change the logo to not be an SVG), you can do that by overwriting `rapidez-quote.exports.base`.\n\nNote that the \"primary\" color and the path to the logo svg are defined by the quote configuration file.\n\n### Modifying the Email\n\nSimilarly, the email that gets sent to the customer requesting the quote can be modified by overwriting the `rapidez-quote.mail.quote` view. This is defined as markdown content by default, but that can be changed by modifying the `email_markdown` config setting.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapidez%2Fstatamic-quote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frapidez%2Fstatamic-quote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frapidez%2Fstatamic-quote/lists"}