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

bulk upload store credit button added #1

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Conversation

himanshumishra31
Copy link
Collaborator

No description provided.

create_store_credit_updater
redirect_to admin_users_path, notice: Spree.t(:email_sent, filename: @store_credit_updater.data_file_file_name)
rescue
redirect_to admin_users_path, notice: "Invalid CSV file format."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this error to en.yml

@row = row
@user = find_user
if @user
update_stocks_with_csv_values
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which stocks are being updated?

end

def error_message
@error ? @error : 'Successfully Updated'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

en.yml

class CreateSpreeBulkStoreCreditUpdater < ActiveRecord::Migration[4.2]
def change
create_table :spree_bulk_store_credit_updaters do |t|
t.boolean :job_executed, default: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nil: false

adhirajgautam and others added 2 commits December 27, 2018 11:41
Added the link to the Youtube video.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants