We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to obtain a json responce?
e.g @shop_orders << Bigcommerce::Order.find(@order.id) reurns a space sperated string.
@shop_orders << Bigcommerce::Order.find(@order.id)
#<Bigcommerce::Order base_handling_cost="0.0000" base_shipping_cost="12.3800" base_wrapping_cost="0.0000" billing_address={:first_name=>"Jari", :last_name=>"xxxx", :company=>"", :street_1=>"Niinikuja 4", :street_2=>"", :city=>"Tampere", :state=>"", :zip=>"33900", :country=>"xxxxx", :country_iso2=>"FI", :phone=>"xxxxxxxxxxx", :email=>"xxxxxxxx", :form_fields=>[]} coupon_discount="0.0000" coupons={:url=>"https://xxxxxxxxxx/api/v2/orders/xxxx/coupons.json", :resource=>"/orders/18xxx434/coupons"} credit_card_type=nil currency_code="GBP" currency_exchange_rate="1.0000000000" currency_id=1 customer_id=10100........
The text was updated successfully, but these errors were encountered:
I think you'd have to convert it yourself: puts order.to_json
puts order.to_json
Sorry, something went wrong.
No branches or pull requests
Is it possible to obtain a json responce?
e.g
@shop_orders << Bigcommerce::Order.find(@order.id)
reurns a space sperated string.The text was updated successfully, but these errors were encountered: