-
Notifications
You must be signed in to change notification settings - Fork 3
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
Incorrect prices passed to WooCommerce #4
Comments
Thanks for the report. I could reproduce the first issue, but not the second. If you can give a sample product ASIN for the US locale, it would be helpful. |
Hi michaeluno, I'm starting to think there's the same error to both case, see: I imported this product again (Cremer - Fralda Infantil). And see, it got the normal price because this product has not a promocional price. However, the comma is not correct, and the price stays wrong. The correct price would be 29,90 I'm not tell if before I imported this by another form (unit by category or unit by search) and if it was the reason the promocional price was 0. But today, it was imported by unit url, and show like image above. Than, I imported some products from www.amazon.com to test it. And the comportament was the same That products has no promocional price Link unit: https://loja.ofertasdaregi.com.br/ofertas/amazon_auto_links/url/ These products (Oster OLIQ610) are the same, only they have different power voltage (110/220) But, The product was marked by blue was imported by unit url, another, marked by orange was imported by unit category. But, I could not estabilice the reason why it is happening. I just could show it to you. |
Hi michaeluno, I could reproduce this issue. It happens when the importation is by unit category and the product has not promocional price.
I hope helps. |
Hi michaeluno, I had not test import by unit search, and I did it now. And the comportament was the same when I imported by unit url. See image below: Unit search + product has promocional price = The plugin get normal price incorrectly (with incorrect commas) and show correctly the promocional price Unit search + product has not promocional price = The only imported price is incorrect (with incorrect commas) ** Curiously: One by products imported doesn't show disclaimer. Unit seach: https://loja.ofertasdaregi.com.br/ofertas/amazon_auto_links/pesquisa/ I didn't test another importations forms (Contextual, Feed and PA-API). |
Amazon gives price amounts such as 1000 as $10.00 without decimal dots. And they are passed to WooCommerce as 1000, not 10. This change fixes this behavior. Fixes #4
@regianesouzaatelie You can try the development version which may fix this. |
Hi michaeluno, I downloaded that and I did some tests. Only products importted by unit category and that has not promocional price, still show error. See the image: For now, I will import by unit url. |
I'm still unable to reproduce it. Can you provide a category of the US locale that can be used to reproduce the issue? |
Hi michaeluno, Category: Baby Products›Baby Care or Category: Baby Products›Baby Care›Health›Thermometers These products have not a promocional price. The issue happens when the importation is from the unit by category and the product have not a promocional price. I could not import they by category here, because my API is from Brazil. |
Hi michaeluno, I instaled Amazon Auto links and Auto Amazon Links - WooCommerce Products Versão 1.1.0b01 in another site of tests https://loja.ofertasdaregi.com.br/. I did't insert my API and then I imported products from Amazon.com with the unit by category. And curiously doesn't show issue: Unit: https://loja.ofertasdaregi.com.br/amazon_auto_links/categoria/ Then, I inserted my API and I imported again from Amazon.com.br: Some observations: Unit: https://loja.ofertasdaregi.com.br/amazon_auto_links/categoria-2/ number 3 and 4 on image: The product price is R$34,90, but in the unit showns R$ 55,07/ R$ 33,82. These values are aditional options of buy. In the importation by category the Auto Amazon Links - WooCommerce Products seems doesn't found theses values and show 0 (zero) on the promocional price. So, I imported by unit URL the category url. https://www.amazon.com.br/s?rh=n%3A17540141011&language=pt_BR&brr=1&rd=1 However, When I imported the category url by unit URL all these product that has aditional options of buy wasn't imported. If I import only product url by URL unit, this shows like that: I don't know if it exactly explain some thing, but it seems strange to me. Number 2 of [image16]: This product has no price, only aditional options of buy |
With this change, when the discount price is zero or unset, the proper price is used for the displaying price. Before this change, `strlen()` was used to check if a discounted price exists, which might not be reliable when 0.00 is passed. (haven't encountred this value yet though) (possibly) Fixes #4
@regianesouzaatelie You can try 1.1.0b02, (the same link as above) which might fix the zero price issue. |
Hi michaeluno, Well, now I could not import this product by category, it didsn't appear on my list when the importation was by category. See https://loja.ofertasdaregi.com.br/amazon_auto_links/categoria-2/ I also could not import by url. It updates the disclaimer but doesn't the price. I excluded and tried import again but it didn't appear on shop. It appear on unit (https://loja.ofertasdaregi.com.br/amazon_auto_links/url/) but doesn't on the shop. I didn't understand what happened. So, I imported by url in another site (where I have not imported it not once). So, it appear correctly Diferent of when I have imported the first time
I tested importing another product by category that was imported incorrectly on the first: See first importation: apparently, the problem with importing by category has been resolved. .....
This situation remains the same. ..... I have another question about how the categories are shown on product page, but I will create a new issue. Thank you! |
@regianesouzaatelie So has this been resolved? If not, please provide the steps to reproduce. Please remember that unless it is reproduced on my end, it won't be fixed. |
Hi @michaeluno , aparently it was resolved. But nowadays, I have imported by unit search. Let me do some tests more with url and category unit and I will tell you soon here. |
Description
Please, I need help with: https://ofertasdaregi.com.br/p/
Page of tests: https://loja.ofertasdaregi.com.br/ofertas/p/
I’m using the Amazon Auto Links and Auto Amazon Links – WooCommerce Products (Converts unit products to WooCommerce products. Versão 1.0.0 ) in my site. This is importing very well to units, but I have some questions about Amazon Links – WooCommerce Products.
Links of the imported units: https://ofertasdaregi.com.br/amazon_auto_links/pesquisa/ https://ofertasdaregi.com.br/amazon_auto_links/categorias/
Please, check the image attached. Number 2 and 3 on the image: When I hability the Amazon Links – WooCommerce Products:
1- Some products get incorrectly price, because the plugin is not considering the comma in the “price field” from woocomerce. So, the product that costs 93.90 becomes 9390.
logs.txt
Plese, verify if the "error logs" is enought to this question
2- In the some products the plugin fills the promotional price field with “zero (0)”. So, the product has the a wrong price because "the field discount product price" or "promotional price" is filled with zero (0).
About that, I mean... "Promotional price field", it would be like a "discount product price".
Please see the image
Please, I would like get some help, because I’ need to adjusting manually all these details in each products. Thanks very much.
Steps to reproduce
Hability the Amazon Auto Links and Amazon Links – WooCommerce Products.
Configure some units (for exemplo URLS) and put the url will be import.
Atualize. The result is:
1- Some products get incorrectly price, because the plugin is not considering the comma in the “price field” from woocomerce. So, the product that costs 93.90 becomes 9390.
2- In the some products the plugin fills the promotional price field with “zero (0)”. So, the product has the a wrong price because "the field discount product price" or "promotional price" is filled with zero (0).
Screenshots, screen recording clips, or code snippets
No response
Environment
Auto Amazon Links Versão 5.3.1
Auto Amazon Links - WooCommerce Products Versão 1.0.0
WordPress Versão 6.3
Google Chrome Versão 115.0.5790.111
Please confirm that you have searched existing issues in this repository.
Yes
Please confirm that the problem occurs with the WooCommerce default theme, StoreFront and all the plugins deactivated except "Auto Amazon Links" and "Auto Amazon Links - WooCommerce Products".
Yes
The text was updated successfully, but these errors were encountered: