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

Update GetPrice.php - Add if statement #52

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

Conversation

duikb00t
Copy link

@duikb00t duikb00t commented Oct 9, 2024

Without this change, we don't receive any prices from Business Central on Category Pages in Magento. We do receive the price on product pages, but they are not listed on category pages.

  • We only show prices for logged in users.

  • When we add the new if statement it shows correctly. https://i.imgur.com/PKBRuDm.png

  • I am aware that it probably won't reach the return '<div class="commerce365-price-placeholder"></div>'; anymore.

We are not sure this fix is 100% correct, but for us it works now. Can you please review?

Thanks,

Without this change, we don't receive any prices from Business Central on Category Pages in Magento. We do receive the price on product pages, but they are not listed on category pages.

- We only show prices for logged in users.

- When we add the new if statement it shows correctly.
https://i.imgur.com/PKBRuDm.png

We are not sure this fix is 100% correct, but for us it works now.
Can you please review?

Thanks,
Improved statement.
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.

1 participant