Code Monkey home page Code Monkey logo

demo's Introduction

Magento 2 - Community Edition Demo

A list of [in-progress] demonstration modules developed for Magento 2.4.6-p3 Community Edition, implemented and tested locally.

Check app/code/README.md for a summary of each module

Backend: image

Frontend Desktop:

image image

Frontend Mobile:

demo's People

Contributors

lastralab avatar

Stargazers

 avatar

Watchers

 avatar  avatar

demo's Issues

[TAN-0010] Create Demo Catalog

Two custom modules:

InitCatalog:

  • Creates one of each product types (except grouped)

    • Creates demo categories and subcategories

    • Creates demo attributes

    • Creates demo products:

    • Simple

    • Configurable

    • Bundle

    • Virtual

    • Adds images to a demo configurable product

    • Adds stock

    • Assigns products to categories

Catalog:

  • Creates Category Filter Service

    • getCategoryIdByName()

[TAN-0061] Creating bundle products bug

Describe the bug

  • Data patch doesn't create bundles after restructuring the apply() method

To Reproduce
Steps to reproduce the behavior:

  1. Remove from patch_list
  2. Delete bundle product
  3. Run s:up
  4. See error

Expected behavior
Bundle product should be created including all the options and selections

[TAN-0007] Create Theme placeholder

Placeholder to start building new theme with minimum configurations:

  • Move wishlist link from top links to right side of the minicart icon
  • Add custom logo
  • Change primary and secondary colors
  • Add welcome message "This is a fake website!"
  • Remove 'create account' toplink
  • Remove currency from toplinks
  • Set header to stay on top when scrolling

[TAN-0025] Fix mobile style for header and navigation sections

Describe the bug
Layout and style for mobile is broken due to the layout change and wishlist new styling

To Reproduce
Steps to reproduce the behavior:

  1. Go to any page on any mobile
  2. See error

Expected behavior
Mobile should work as native behavior

Screenshots
image
image

[TAN-0049] CreateProducts patch pending tasks

Describe the bug
Products not created successfully from #10:

  • Bundle

  • Products weren't assigned to subcategories successfully

  • Images weren't added to simple products successfully

  • Revert method didn't delete all previously created products

To Reproduce
Steps to reproduce the behavior:

  1. Remove all products from catalog or use revert() method
  2. Delete patch from patch_list
  3. Run s:up to re-apply patch
  4. See products created, missing categories and missing images, check logs for verification

Expected behavior
All products should be created and assigned to their categories when running the patch

[TAN-0052] Allow reviews only if user has already ordered the product

Limit reviews to verified purchases only.

  • Submit review should show warning message "Only users with this product in their order history can write reviews."
  • Verification should include main product variations (products found in order history including the product sku without attributes)
    Example: User bought Salsa Chipotle Baby Spicy -> Should be able to review all products with Salsa Chipotle in their title

[TAN-0054] Product reviews should be allowed for complete orders

Describe the bug
Users are currently allowed to review products in canceled orders.

To Reproduce
Steps to reproduce the behavior:

  1. Go to orders
  2. Get a product from a canceled order that is not present in any of the complete orders
  3. Try to add a review
  4. Review is possible

Expected behavior
Verified purchase means orders complete. Any other order status shouldn't be included in this verification

Screenshots
Current behavior:

image
Expected behavior:

image

[TAN-0062] Add lazy loading to all images and current weather

Tasks:

  • Make all images lazy loading with customizable seconds from the admin panel.
  • Get latitude and longitude from user's IP address
  • Use lat/long to display current weather on CMS home page
  • Select from admin which unit to display (C,F or both)

[TAN-0005] Set basic configurations programatically

Sets basic configuration values in core_config_data

  • 'web/unsecure/base_url' => 'https://app.magento.test/',
  • 'web/secure/base_url' => 'https://app.magento.test/',
  • 'web/secure/offloader_header' => 'X-Forwarded-Proto',
  • 'web/secure/use_in_frontend' => 1,
  • 'web/secure/use_in_adminhtml' => 1,
  • 'web/seo/use_rewrites' => 1,
  • 'system/full_page_cache/caching_application' => 2,
  • 'system/full_page_cache/ttl' => 604800,
  • 'catalog/search/enable_eav_indexer' => 1,
  • 'dev/static/sign' => 0,
  • 'design/head/default_title' => 0,
  • 'design/header/welcome' => 'This is a fake website!',
  • 'design/footer/copyright' => 'Copyright © 2024-present Tanismo. All rights reserved.'

[TAN-0084] Apply coupon code automatically if weather is bad

Requirements:

  • Create a cart rule that applies 20% discount to all products in cart using coupon code 'BADWEATHER' (1 use per customer)
  • Use weather/temperature code to save temperature per registered users only [customer_id => customer_ip/temperature]
  • Use the flag table to store that data
  • Update flag entry every time the user logs in using the queue
  • Update flag entry via cron job customizable from the backend, set default time to every hour (only for logged-in users)
  • Create customization to apply cart rule for temperature range
  • Update flag entry via CLI
  • Show banner at the top of the page whenever the coupon link can be applied (meeting conditions based on temp range)
  • Apply coupon code automatically as 'bad weather' limit to 50 coupons. The user has the option to open a link to apply it.
  • User cannot apply coupon code manually, if applied, an event should be dispatched and an observer should verify the weather is indeed in the set range, but also has to check if code was applied previously for that user
  • Add test unit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.