Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

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 this issue Sep 11, 2014 · 13 comments

Comments

@alanalvespi
Copy link

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
    Copy link

    rafa-sr commented Dec 4, 2014

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

    @athal7
    Copy link

    athal7 commented Dec 4, 2014

    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
    Copy link

    rafa-sr commented Dec 4, 2014

    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
    Copy link

    athal7 commented Dec 4, 2014

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

    @rafa-sr
    Copy link

    rafa-sr commented Dec 5, 2014

    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
    Copy link

    athal7 commented Dec 5, 2014

    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
    Copy link

    rafa-sr commented Dec 5, 2014

    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
    Copy link

    athal7 commented Dec 5, 2014

    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
    Copy link

    rafa-sr commented Dec 5, 2014

    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
    Copy link

    rafa-sr commented Dec 5, 2014

    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
    Copy link

    athal7 commented Dec 5, 2014

    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

    @rafa-sr
    Copy link

    rafa-sr commented Dec 5, 2014

    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
    Copy link

    athal7 commented Dec 5, 2014

    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)

    Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants