Skip to content

Conversation

@gibkigonzo
Copy link
Contributor

Related Issues

closes #4123, #4118, #4104

  • Group 'productChecksum' and 'productsEquals' logic for all supported products types.
  • Remove 'checksum' when editing product.
  • Remove and add coupon when user login
  • Remove 'NA' as default company
  • Show qty in microcart for all types of product
  • Remove preload font - it gives good performance, but vue-meta refresh page, because there is script onload.

Short Description and Why It's Useful

Zrzut ekranu z 2020-02-27 10-32-28

Screenshots of Visual Changes before/after (if There Are Any)

Which Environment This Relates To

Check your case. In case of any doubts please read about Release Cycle

  • Test version (https://test.storefrontcloud.io) - this is a new feature or improvement for Vue Storefront. I've created branch from develop branch and want to merge it back to develop
  • RC version (https://next.storefrontcloud.io) - this is a stabilisation fix for Release Candidate of Vue Storefront. I've created branch from release branch and want to merge it back to release
  • Stable version (https://demo.storefrontcloud.io) - this is an important fix for current stable version. I've created branch from hotfix or master branch and want to merge it back to hotfix

Upgrade Notes and Changelog

  • No upgrade steps required (100% backward compatibility and no breaking changes)
  • I've updated the Upgrade notes and Changelog on how to port existing Vue Storefront sites with this new feature

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change

Contribution and Currently Important Rules Acceptance

@gibkigonzo gibkigonzo added the QA - Ready for tests This is notification for testers, that improvement is ready to be tested and verified. label Feb 27, 2020
@andrzejewsky andrzejewsky merged commit 74146bb into vuestorefront:hotfix/v1.11.2 Feb 27, 2020
}

// 'checksum' check
const getChecksum = (product: CartItem) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const getChecksum = (product: CartItem) => {
const getChecksum = (product: CartItem) => product.checksum ? product.checksum : productChecksum(product)

mayby shorter form, wdyt? :)

const getServerItemId = (product: CartItem): string | number =>
product.server_item_id || product.item_id

const isServerIdsEquals = (product1: CartItem, product2: CartItem): boolean => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why types are removed?


// 'sku' check
const isSkuEqual = (product1: CartItem, product2: CartItem): boolean =>
String(product1.sku) === String(product2.sku)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be sku another type than string?


// 'sku' check
const isSkuEqual = (product1: CartItem, product2: CartItem): boolean =>
String(product1.sku) === String(product2.sku)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be sku another type than string?

case 'checksum': {
return isChecksumEquals
}
case 'sku': {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it be remove if it is the same as default?

@alinadivante
Copy link
Collaborator

@gibkigonzo
Regarding #4104

  1. When I change color than photo is not updated
  2. Do not close Edit mode pop-up window until the changed values [color or sizes] are updated.
    Now they update with a delay ...
    edit_mode

@alinadivante alinadivante added QA rejected Testers will add this label when something is still wrong and removed QA - Ready for tests This is notification for testers, that improvement is ready to be tested and verified. labels Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

QA rejected Testers will add this label when something is still wrong

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants