-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
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
feature/qr_for_display: Add QR code image for displays #9
base: main
Are you sure you want to change the base?
Conversation
module Spree | ||
module Api | ||
module V2 | ||
class ProductsController < ::Spree::Api::V2::BaseController |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we override products controller in kiosk app?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is for returning the products added to the display.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont get it.. we can fecth display products from display show api only with include paramaters.. instead of over ride in product controller
@@ -2,7 +2,7 @@ module Spree | |||
module Api | |||
module V2 | |||
class DisplaySerializer < BaseSerializer | |||
attributes :id, :name, :screen_size, :orientation, :vendor_id, :display_type, :products_array, :active | |||
attributes :id, :name, :screen_size, :orientation, :vendor_id, :display_type, :products_array, :active, :qr_code_url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we have qr code url?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is also something generatable like we did on product right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am following the similar pattern for attribute used in the display product model and the qr is also generatable as in product.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maile product ma pani url hatauna ra dynamic ganerate garna bhaneko thyea..why do we have url in db?
* fixed QR url issue * fixed QR url issue * fixed QR url --------- Co-authored-by: Sushil Subedi <[email protected]>
No description provided.