-
Notifications
You must be signed in to change notification settings - Fork 54
ActionView::Template::Error (Missing partial spree/checkout/payment/_storecredit with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :jbuilder, :coffee, :rabl], :versions=>[:v10, :v9, :v8, :v7, :v6, :v5, :v4, :v3, :v2, :v1]} #18
Comments
i have the same issue, i ndont now how ti fix it!! |
is this on frontend? this extension has not yet been written to support frontend, only api and backend. if you are able to submit a PR that would be great. |
hey yes is frontends as i want my clients can use more than one credit card in one order, bcoz here in venezuela we only can use 300$ per credit card, soo i was looking for gift-card extension but JDutil tell me about this extension. soo i dont get in what part the client buy the gift-card |
the gift cards can be setup as products/variants to purchase, and a unique code gets generated after the purchase is completed. |
and how i do it? since i am working with the spree 2-3-4, i think you are talking about https://github.com/spree/spree_gift_cards, and i read there is no support for this gem in 2-3-stable |
That is a separate extension. The 2-3-stable branch of this repo supports that version of Spree of you want to submit a pull request against that branch |
this is in my gem file, gem 'spree_store_credits', github: 'spree-contrib/spree_store_credit_payment_method', :branch => '2-3-stable', and i already installed, |
there is a gift_card boolean on the spree_products table which will make it such that the line item generates a virtual_gift_card post-purchase. i am not positive if that is currently surfaced in the products admin ui as of now, and this could probably use some better documentation |
hey realle thx athal7 i will then create a product, then modify that colum to true in the db and i will comments the results here. |
well i create a product set the value of gift_card to true in the spree_products table, buy the product and spree just send me a email as always with the order and no code for credit =/, what else i have to do?? where is the documentation? i even try it in production and nothing happent. thx for the replys |
you'll either need to update your order confirmation template or pull in https://github.com/athal7/spree_store_credit_payment_method/commit/ce5c85b44c7aec920833e591c0889dba09da34d6, it's currently on a pull request #23 |
ok i will, but as i see in the gift_card_mailer.rb file the 3-line show this code @gift_card = gift_card.respond_to?(:id) ? gift_card : Spree::VirtualGiftCard.find(gift_card), |
that check is to allow either the gift card object or the gift card id to be passed in, and is unrelated to the product id. that table should be populated after you purchase a variant for a gift card product (see association from line_item to virtual_gift_card) |
Does the README should be updated? I think it's missed one partial.
50: <% @order.available_payment_methods.each do |method| %>
51:
52:
53: <%= render :partial => "spree/checkout/payment/#{method.method_type}", :locals => { :payment_method => method } %>
54:
55:
56: <% end %>
The text was updated successfully, but these errors were encountered: