Excluding taxes prices values are used as included taxes prices — Nosto Community

Excluding taxes prices values are used as included taxes prices

Hi
There is an issue with the prices displayed by nosto on our website.

Excluding taxes prices values are used as included taxes prices :(

Can anybody please help us ?

Have a nice tady

Best Answer

Answers

  • KonstantinKonstantin Posts: 26Walking Wisdom admin

    Hey there,

    Could you please have a look at the tax rules and settings within Magento? Please make sure that there are tax rules for the countries that you serve as well as checking that the plugin settings reflect that.
    Magento1

    Magento2

    Prestashop

    In case you are using multiple currencies, you would have to select the "exchange rates" within the plugin settings.
    Magento1

    Magento2

    Prestashop

    Once it's been set up correctly, please run a reindex of the products.

    I hope this does help, if not please let us know. B)

  • KonstantinKonstantin Posts: 26Walking Wisdom admin

    Hey there,

    The prices are taken from your platform in form of the HTML markup (tagging). However with the platforms, we receive that information directly from your backend, based on the setup you have there.

    Could you please have a look at the tax rules and settings within your platform? Please make sure that there are tax rules for the countries that you serve, as well as checking that the plugin settings reflect that in case you are using multi-currency.

    Magento1

    Magento2

    Prestashop

    Once done, you would need to ensure the products pick up the prices correctly now and can do that via the platform indexer in case you are using API/plugin or via the Nosto backend when you go to Tools > Products > Update Products> update only available products: OFF > Request.

    Hopefully this information proves helpful. Let us know in case it does not. B)

  • DistriartisanDistriartisan Posts: 35Member

    Thanks a lot for your input.

    We're using Magento 1.9
    tax rules are OK
    We do not have multi-currency

    I've just turned Products > Update Products> update only available products: OFF.

  • DistriartisanDistriartisan Posts: 35Member

    Hey

    The products update seems to be very slow.

    Start : March 4, 2019 10:51AM

    Today at 10.31 AM
    Products remaining 144954 / 228173
    Stalled! Update is not progressing. Please stop the update if the issue persists.

    Is there anything that should be done ?

    Thanks a lot

  • KonstantinKonstantin Posts: 26Walking Wisdom admin

    The process progresses at a rate of 1 product page view per second.
    If your website can handle it, I can speed it up.

    However it is also dependant on how many of our clients are requesting a reindex. There is a limit to how many re-indexes we process at the same time. This is to ensure that the system is running stable for all our clients and can keep on serving thousands of recommendations every second for our clients' websites.

  • DistriartisanDistriartisan Posts: 35Member

    The process finally ended.
    Unfortunately we still have the issue :(

    For example this product
    https://www.distriartisan.fr/gouttiere-aluminium-corniche-2-metres-dev-300-coloris-au-choix.html
    price including taxes : 17,15
    price excluding taxes : 14,29

    price into Nosto : 14,29

    What else should we try ?

    Thanks a lot

    Best

  • DanDan Posts: 88Walking Wisdom admin

    Ok, this is becoming interesting and i might be able to help.

    As a first question: are you using any 3rd party plugins?

  • DistriartisanDistriartisan Posts: 35Member

    Hi Dan

    We're using Magento 1.9.4.0 CE
    I don't know where I to find Nosto plugin version :\

    Can you help me ?

  • DistriartisanDistriartisan Posts: 35Member

    Hi

    We're using 3.8.4 and we can not update the version for now.

    Can you please help me to find a solution ?

    Thanks a lot

  • MaximeMaxime Posts: 13Walking Wisdom admin

    hey @Distriartisan
    I'm taking care of this and come back to you!! ;)

  • KonstantinKonstantin Posts: 26Walking Wisdom admin

    I did a bit of digging around and see that you have the variables for all versions of the prices including and excluding the tax.

    This information is found multiple times within the code

    This is the information Nosto receives from your platform

    I believe that we simply are being fed the with the incorrect variables.
    You can correct what the plugin picks up by doing an Override of the product data (Magento1 Override / Magento2 Override / Prestashop Override)

    Please give it a try and let me know if you are able to replace the variable that Nosto receives for the prices at the moment with the ones that you can see in the first screenshot. The information is all there. We have just to get the right data.

    (Unfortunately) You will have to do a reindex afterwards again. However you can try it first with a single product, when you click on it in the Nosto catalog, you can reindex it there and check if the prices have adapted correctly.

    I hope that helps B)

  • DistriartisanDistriartisan Posts: 35Member

    Thanks
    I'll have to ask our dev team

    Best

  • DistriartisanDistriartisan Posts: 35Member

    Hi

    Unfortunately I can't ask our dev team.

    So i'm trying to get $!product.price * 1.2 inside template

    Is it possible ? How shall i proceed ?

    Best

  • JacopoJacopo Posts: 47Walking Wisdom, Coding Expert admin
    edited April 3

    Howdy @Distriartisan have you called for some help?

    Try this:

    #set($newPrice = $!product.price.asNumber() * 1.2)

    at this point you are able to use $newPrice with the rightly calculated price.
    In case the number of decimal places will go nuts, you can round the number like this

    #set($newRoundedPrice = $math.round($newPrice))

    Please test it and let me know if that has worked for you, or let me know if you need further help.

  • DistriartisanDistriartisan Posts: 35Member

    Hi Jacopo

    here is a screenshot

    No prices are displayed

    I'm missing something ?

    Thanks a lot

    Best

  • JacopoJacopo Posts: 47Walking Wisdom, Coding Expert admin

    @Distriartisan yes you are missing something, but my bad that I should have been more precise, I guess.

    The piece of code I have written for you above was meant to be inside the foreach function (you can just paste it in the row right after the foreach statement).


    A bit of a context: #foreach($product in $products) maps the recommended products contained in the array $products in the object $product, allowing to use all the properties of the object (e.g. $!product.url, $!product.name and so on).

    Outside of the foreach, $!product.something has no value.


    Try to copy that piece of code you have written (that, to me, seems correct) the line after the #foreach

    Also, in my example the only variable to use is $newRoundedPrice - $newPrice was created to round the decimals.

    Please try it out and let us know!  :)

  • DistriartisanDistriartisan Posts: 35Member
    It's better !
    I'd like to round at most 2 decimal places, but only if necessary.

    Would it be possible ?

    Best
  • JacopoJacopo Posts: 47Walking Wisdom, Coding Expert admin
    @Distriartisan I have written for you this piece of code



    the function $math.roundTo(2, $price_to_round) should do the trick.

    Can you try that out and let me know if this time is taking off as expected?

    I just tried that piece of code in my test account and that works like a charm 


  • DistriartisanDistriartisan Posts: 35Member
    Perfect !
    Thanks a lot !

    I guess the time taken for loading a nosto block may be a little slower ?

    Best
  • JacopoJacopo Posts: 47Walking Wisdom, Coding Expert admin
    @Distriartisan the code we are writing it is called Apache Velocity and it is the templating language we use in recommendation slots.
    As that is a templating language, that won't consume a noticeable time - no matter how many functions you create in it.
    If you would have done that via Javascript, altho still probably not noticeable, that would have maybe affected the loading time; but with Velocity, these two functions you are adding will not affect the loading time, do not worry.

    But if you have other questions please do let me know.
    Did it work for you, by the way? Let us know, in future this answer will be useful for other Users like you.

    Bonne journée :) 

  • DistriartisanDistriartisan Posts: 35Member
    Yes it works !
    Thanks a lot.

    I still have a lot of questions :)
    1. I'd like to use custom fields
      Something like : if custom field value is not empty, dsiplay custom field value
      I tried with $!sku.getCustomField(delai_livraison)
      It doesn't work :\
    2. I can't display alt images with $!product.alternateImages because of 'No images available for usage. ' example : https://my.nosto.com/admin/magento-aae66732/campaigns/products/show/5692293560b2b471c68bafd1
      => what is the issue with these pics ?
    3. I'd like to be sure our ips addresses are excluded from conversions stats
      +> can you confirm ?
    4. And last :) we have different prices for our professional customers
      => Is it possible to send an additional Tier Price for each product ?

    Best





  • KonstantinKonstantin Posts: 26Walking Wisdom admin
    Hey @Distriartisan
    Happy to see that it works. Would you mind creating a separate topic for each separate topic?
    This way other users can find them more easily and also not confuse with multiple different answers to a multitude of questions?
  • DistriartisanDistriartisan Posts: 35Member
    It's done

    Best


  • DistriartisanDistriartisan Posts: 35Member
    Hi

    I've got another question :smile:

    There is an "issue" when the price has only one decimal.
    Would it be possible to add a zero ?
    1019.70 €  instead of 1019.7 € ?

    Thanks a lot


  • DistriartisanDistriartisan Posts: 35Member
    I used Velocity :)

    I guess it looks easier with my template ;)


    Thanks a lot, have a nice day
  • JacopoJacopo Posts: 47Walking Wisdom, Coding Expert admin
    edited April 12
    @Distriartisan  this is me knowing that the solution has worked for you:


  • DistriartisanDistriartisan Posts: 35Member
    Thanks :)

    Have a great day
Sign In or Register to comment.

Read our Terms&Conditions before commenting and posting