Given Reed
09/27/2021, 7:55 PMGiven Reed
09/28/2021, 6:02 PMchalien
09/30/2021, 1:45 AMinitializer/spree.rb
config.image_attachment_module = 'Spree::Image::PaperclipAttachment'
config.taxon_attachment_module = 'Spree::Taxon::PaperclipAttachment'
then i create a paperclip file with this config
# config/initializers/paperclip.rb
if Rails.application.credentials.dig(:aws, :access_key_id)
attachment_config = {
s3_credentials: {
access_key_id: Rails.application.credentials.dig(:aws, :access_key_id),
secret_access_key: Rails.application.credentials.dig(:aws, :secret_access_key),
bucket: Rails.application.credentials.dig(:aws, :bucket_name),
s3_region: 'us-east-1',
},
storage: :s3,
s3_headers: { "Cache-Control" => "max-age=31557600" },
s3_protocol: "https",
# url: ':s3_alias_url',
# s3_host_alias: '<http://xxxx.cloudfront.net|xxxx.cloudfront.net>',
# bucket: Rails.application.credentials.dig(:aws, :bucket_name),
styles: {
mini: "48x48>",
small: "100x100>",
product: "240x240>",
large: "600x600>"
},
path: "/products/:id/:style/:basename.:extension",
default_url: "/products/:id/:style/:basename.:extension",
default_style: "product",
}
Paperclip::Attachment.default_options.merge!(attachment_config)
end
using this config , I'm receiving an error for authorization
Aws::S3::Errors::AccessDenied (Access Denied):
The issue is that I tried with storage.yml with the same credentials and it works but Paperclip is the only one that let me include the cloudfront url (as far as I know active storage doesn't have the cdn option)
Guys please I need your help to solver this, thanks !! you are the best!! š šØš“Ifechuwku
10/01/2021, 8:02 AMmarko
10/01/2021, 12:16 PMSteven Tapican
10/01/2021, 9:05 PMAhmad Ridwan Fauzi
10/02/2021, 4:13 AMRajeswari
10/05/2021, 11:13 AMTom Wilson
10/05/2021, 3:32 PMpayment_total
on the order is now $40, and that results in the order being in the payment state balance_due
. It seems a little odd to me that that would be the case - the balance isn't due, we've refunded it.Tom Wilson
10/05/2021, 3:33 PMSharon Morato
10/06/2021, 12:44 AMTyler Kocheff
10/06/2021, 8:07 PMproduct_filters.rb
. I found a similar issue here but it was for Spree and it's pretty old. So far I haven't been able to adapt this code to work with current Solidus. We do have a custom searcher based off of Spree::Core::Search::Base
already in place, so I have been trying to override add_search_scopes
method there. Any recommendations on where to focus my efforts or if there's a better way to go about this?Tom Wilson
10/07/2021, 8:57 PMconfirm
state. Specifically, the default implementation of the core order state machine seems to have very loose transitions between payment
and confirm
. All it does on that transition is to create any store credit payments it believes the order needs. It sort of seems like it ... should enforce that there's a payment, at least, and probably even enforce that the payments would cover the order.Tom Wilson
10/07/2021, 8:57 PMconfirm
state?Jared Norman
Tom Wilson
10/07/2021, 9:10 PMJared Norman
Zayter Munive
10/12/2021, 5:57 PMDanH
10/13/2021, 2:43 AMDanH
10/13/2021, 2:45 AMIfechuwku
10/14/2021, 5:59 AMEnrique Meza
10/14/2021, 2:52 PM2021-10-14T14:24:27.949Z pid=7 tid=3qcv WARN: Errno::ENOENT: No such file or directory @ rb_sysopen - /app/public/system/solidus_importer/imports/files/000/000/019/original/cus.csv
2021-10-14T14:24:27.949Z pid=7 tid=3qcv WARN:
Whenever I try to process a big file in the cloud(CloudFlare) I am getting this message, seems to be the same happens in Heroku. Does somebody know a potential fix? https://stackoverflow.com/questions/31919775/problems-with-file-path-with-csv-import-via-sidekiq-on-herokuTyler Kocheff
10/14/2021, 4:35 PM.page
number on like 23, I can return page 2 (on page one in the app's view). The params appear to be returning correctly in the controller and in the view. Is something weird happening with the kaminari paginator that I'm missing?Landon Lapensee
10/15/2021, 6:16 PMCody
10/15/2021, 6:52 PMFor example, if you want to customize backend/app/views/spree/admin/orders/index.html.erb , simply create a new file atand copy the original contents into it. Make any desired changes to the newly copied file. Solidus will pick up the modified version of the file in your repository, and display the changes in the backend.app/views/spree/admin/orders/index.html.erb
Efi
10/17/2021, 5:08 PMIfechuwku
10/18/2021, 9:24 AMKevin I
10/18/2021, 12:48 PMGiven Reed
10/18/2021, 7:21 PMTom Wilson
10/18/2021, 10:02 PM