Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-2923

Product image is not shown on basket page

    XMLWordPrintable

Details

    • Candidates for next sprint
    • Ibexa Commerce

    Description

      When you add a product to the basket, even this product has a image, this image is not shown in the page. Not sure if this can be considered a bug, as i understand we are trying to reuse some code and maybe this is thought to be tackled in another way. Let me know if so, please.

      To reproduce this,  you'll need to add some code and do some backend tasks.

      Here are the steps to reproduce

      1.- Install ibexa/commerce 4.1.3 as usual

      2.- Copy the following contents in a config/packages/bug-test-regions.yaml (or whatever name you prefer)

       

      ibexa:
          repositories:
              default:
                  product_catalog:
                      regions:
                          united_kingdom:
                              vat_categories:
                                  standard: 20
                                  reduced: 5
                                  zero: 0
                                  none: ~
          system:
              site:
                  product_catalog:
                      currencies:
                          - EUR
                      regions:
                          - united_kingdom
              admin:
                  product_catalog:
                      currencies:
                          - EUR
                      regions:
                          - united_kingdom
       

       

      3.- Go to the admin interface, edit image content type and set the checkbox for "can be a thumbnail" in the "image" field (not doing this you won't be able to see thumbnails in the product catalog list)

      4.- Go to the currency list, edit the `EUR` currency and enable it

      5.- Create a new product type. Be sure the image asset field can also be a thumbnail. Also set the vat associated to this product type (important to do this or you won't be able to add items to the basket)

      6.- Add a product of this type. Let's call it simply `test`. Set the code and add an image for it

      7. Add stock for it

      8. Create a price for this product.

      you should see something like the pic

       

      Ok, when all this is done go directly to http://yourdomain/product-catalog2/test. you should see the button to add the product to the basket. Try it and check the basket. you'll see "image not available" for this product.

      Check the video to see more or less how everything looks. Another stories, for sure, but I notice several things

      • Home page look and feel have some stylesheets and js coming from the silver solutions code
      • Product catalog link is there, but clicking it show a page without any styles and no links to any of the products.
      • Going directly to the product page shows the login page, again with silver solutions design, because by default, anon users can't see products
      • Once logged you can see the product, but again without any styles, just "default" template.

      For the image problem, I might have some fix, but before trying to implement it, as it will involve changes in several repos and also some new properties to some classes, I would like to know your thoughts or it all these things are probably being developed right now.

      [^Ibexa Nordics AS (1).mp4]

      Designs

        Attachments

          Activity

            People

              pawel.niedzielski@ibexa.co Paweł Niedzielski
              carlos.revillo-obsolete@ibexa.co Carlos Revillo (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: