Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mausamp
Copy link
Contributor

@mausamp mausamp commented Sep 10, 2024

No description provided.

module Spree
module Api
module V2
class ProductsController < ::Spree::Api::V2::BaseController
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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

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?

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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?

sushil-truemark and others added 2 commits September 17, 2024 12:32
* fixed QR url issue

* fixed QR url issue

* fixed QR url

---------

Co-authored-by: Sushil Subedi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants