spree_store_credit_payment_method icon indicating copy to clipboard operation
spree_store_credit_payment_method copied to clipboard

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]}

Open alanalvespi opened this issue 10 years ago • 13 comments

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 %>

    alanalvespi avatar Sep 11 '14 15:09 alanalvespi

    i have the same issue, i ndont now how ti fix it!!

    rafa-sr avatar Dec 04 '14 16:12 rafa-sr

    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.

    athal7 avatar Dec 04 '14 16:12 athal7

    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

    rafa-sr avatar Dec 04 '14 16:12 rafa-sr

    the gift cards can be setup as products/variants to purchase, and a unique code gets generated after the purchase is completed.

    athal7 avatar Dec 04 '14 17:12 athal7

    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

    rafa-sr avatar Dec 05 '14 00:12 rafa-sr

    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

    athal7 avatar Dec 05 '14 01:12 athal7

    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, soo the thing here is with that extension (spree_store_credit_payment_method) how setup a gift card product?? as u say 2 comments ago, just create a product with the gift card name?? or after create where i set up as gitcard

    rafa-sr avatar Dec 05 '14 12:12 rafa-sr

    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

    athal7 avatar Dec 05 '14 14:12 athal7

    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.

    rafa-sr avatar Dec 05 '14 14:12 rafa-sr

    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

    rafa-sr avatar Dec 05 '14 16:12 rafa-sr

    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 https://github.com/spree-contrib/spree_store_credit_payment_method/pull/23

    athal7 avatar Dec 05 '14 17:12 athal7

    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), as i know this search the product id of gift card in the spree_virtual_gift_cards table, soo i just check that table and is empty :? it suppose to be in there dont? i think i am missing how to setup the product, and it is not only change the bollean of gift_card to true and purchase the product.

    rafa-sr avatar Dec 05 '14 18:12 rafa-sr

    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)

    athal7 avatar Dec 05 '14 20:12 athal7