Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Waddell 3 posts 83 karma points
    Jul 11, 2017 @ 11:51
    Tom Waddell
    0

    Marketing Rules 404 after upgrade

    I have upgraded to TeaCommerce v3.1.4 from v2 in a Umbraco 6 project and have created a Marketing campaign in our store. However I am unable to add any Rules or Awards as the ajax call in campaign.controller.js (line 3) to /umbraco/backoffice/teacommerce/campaigns/getmanifestsforrules/ is returning a 404 error.

    I have checked the teacommerce dlls in the bin folder match with the versions in the 3.1.4 package and there are no errors in the Umbraco log file.

    Does anyone have any ideas how to get this working or what to investigate next?

  • Anders Burla 2560 posts 8256 karma points
    Jul 12, 2017 @ 13:59
    Anders Burla
    0

    Hi Tom

    What URL gives you a 404 - please see the URL in your chrome debug console to see the exact URL as Umbraco is showing Tea Commerce in an iFrame.

    One thing to be sure about is that all old files was overwritten.

    Kind regards

    Anders

  • Tom Waddell 3 posts 83 karma points
    Jul 12, 2017 @ 14:17
    Tom Waddell
    0

    Hi Anders,

    The url that gives a 404 is https://localhost:44300/umbraco/backoffice/teacommerce/campaigns/getmanifestsforrules/

    I am running the website locally using IISExpress from Visual Studio 2015 which is running https on port 44300

  • Anders Burla 2560 posts 8256 karma points
    Jul 12, 2017 @ 14:21
    Anders Burla
    100

    Tested with Umbraco 7 and that URL works. So it might be a bug with the v6 version. Could you update to Umbraco 7?

    Else try and find what the URL should be. Might be that you need to remove the backoffice or something like that. Then you can just change the url in the javascript or html frontend file that uses that url.

    https://demo.teacommerce.net/umbraco/backoffice/teacommerce/campaigns/getmanifestsforrules/

    Kind regards

    Anders

  • Tom Waddell 3 posts 83 karma points
    Jul 12, 2017 @ 15:11
    Tom Waddell
    0

    Hi Anders,

    I removed the "backoffice/" section from all the ajax urls in the following js files:

    • campaign.controller.js
    • discount-code-rule.controller.js
    • payment-method-rule.controller.js
    • shipping-method-rule.controller.js

    And the backoffice Marketing section now functions in Umbraco 6. Many thanks for your help.

Please Sign in or register to post replies

Write your reply to:

Draft