spree-contrib / spree_store_credit_payment_method

Adds store credit functionality as a payment method.
BSD 3-Clause "New" or "Revised" License
18 stars 55 forks source link

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

Open alanalvespi opened 10 years ago

alanalvespi commented 10 years ago

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

    rafa-sr commented 9 years ago

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

    athal7 commented 9 years ago

    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.

    rafa-sr commented 9 years ago

    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

    athal7 commented 9 years ago

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

    rafa-sr commented 9 years ago

    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

    athal7 commented 9 years ago

    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

    rafa-sr commented 9 years ago

    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

    athal7 commented 9 years ago

    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

    rafa-sr commented 9 years ago

    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 commented 9 years ago

    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

    athal7 commented 9 years ago

    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

    rafa-sr commented 9 years ago

    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.

    athal7 commented 9 years ago

    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)