Close

Profile: JQuick

Avatar

User posts

4 years ago

ZornitsaIvanova wrote:
Can you please check if there is 'customer-pages-body' class at the body tag in your page?



Hi There!. To the original poster. I'm not sure if you solved your issue those years ago, but I ran into the same product just yesterday.  My resolution was as follows:

1) Modify /Themes/<ThemeName>Views/Shared/_CurrentPageClass.cshtml - Add logic to check for your custom controller action so it returns the class customer-pages-body for the body tag



var isMyCustomPage = controllerName.Equals("mycustomcontroller", StringComparison.InvariantCultureIgnoreCase) && actionName.Equals("mycustomaction", StringComparison.InvariantCultureIgnoreCase);


if (isAccountPage || isOrderListPage || isReturnRequest || isBackInStockSubscriptions || isRewardPoints || isForumSubscriptions || isMyCustomPage)
    {
        <text>customer-pages-body</text>
        return;
    }



2) - Modify /Themes/<ThemeName>Views/Shared/_ColumnsTwo.cshtml - Add logic to check for your custom controller action and add it to the logic flow for 'isCustomerAccountPage'


   var isMyCustomPage = currentController.Equals("mycustomcontroller", StringComparison.InvariantCultureIgnoreCase) && currentAction.Equals("mycustomaction", StringComparison.InvariantCultureIgnoreCase);



    isCustomerAccountPage = isCustomerAccountPage || isOrderListPage || isReturnRequest || isBackInStockSubscriptions || isRewardPoints || isForumSubscriptions || isMyProductReviews || isVendorInfo || isHelpDeskPage || isMyCustomPage;

    if (isCustomerAccountPage ||
        currentController.Equals("order", StringComparison.InvariantCultureIgnoreCase) ||
        currentController.Equals("blog", StringComparison.InvariantCultureIgnoreCase) ||
        currentController.Equals("richblog", StringComparison.InvariantCultureIgnoreCase) ||
        currentController.Equals("richblogsearch", StringComparison.InvariantCultureIgnoreCase) ||
        (currentController.Equals("catalog", StringComparison.InvariantCultureIgnoreCase) &&
        currentAction.Equals("producttagsall", StringComparison.InvariantCultureIgnoreCase)))
    {
        isOneColumn = false;
    }


Cheers
Jon

4 years ago

That's great news Boyko. Thanks for the hard work!



Boyko wrote:
Hello.
When will you have the theme and plugins available for 4.3 on MySql?
regards

Hi vchigne,

We plan to release all our products for nopCommerce 4.30 no later than early next week so that everyone could upgrade to nopCommerce 4.30 as everyone on previous version of nopCommerce will upgrade to SQL Server anyway.

We plan to add official MySQL support to all our products after that and I guess we will need a couple of weeks to do so.