getdokan / dokan

Multivendor marketplace platform
https://wordpress.org/plugins/dokan-lite/
254 stars 200 forks source link

⚠️ RANKMATH SEO MODULE - MISS CODE SINCE DOKAN PRO 3.11.0 up to 3.11.2 resulting in missing the social media SEO tab in Add/Edit Product template #2292

Closed Sophie-2e closed 2 months ago

Sophie-2e commented 3 months ago

Bug Description

Using RankMath Plugin. In Seller Dashboard > Products > Add/Edit A Product > SEO module > Cannot see the social media SEO tab anymore on product. After investigating the issue with RankMath, it appears that Dokan miss the codes for AI: https://support.rankmath.com/ticket/rankmath-dokan-cannot-see-the-social-media-seo-tab-anymore-on-product/?view=all

Here is RankMath reply: The localized data used in the Content AI was missing in the compatibility code that was added by the Dokan team.

Also opened a Dokan support ticket where I copy paste the code there to: #66558

Here is the code for the dokan-pro/modules/rank-math/includes/ContentAi.php file:

`<?php

namespace WeDevs\DokanPro\Modules\RankMath;

defined( 'ABSPATH' ) || exit;

use RankMath\Helper; use MyThemeShop\Helpers\WordPress; use RankMath\ContentAI\Content_AI; use RankMath\Admin\Admin_Helper; use RankMath\Helpers\Url;

/**

Please add it to your next Dokan Pro Update

Step To Reproduce

Using RankMath Plugin. In Seller Dashboard > Products > Add/Edit A Product > SEO module > Cannot see the social media SEO tab anymore on product. After investigating the issue with RankMath, it appears that Dokan miss the codes for AI: https://support.rankmath.com/ticket/rankmath-dokan-cannot-see-the-social-media-seo-tab-anymore-on-product/?view=all

Here is RankMath reply: The localized data used in the Content AI was missing in the compatibility code that was added by the Dokan team.

Here is the code for the dokan-pro/modules/rank-math/includes/ContentAi.php file:

Expected Behaviour

Make sure the proper code is added to Dokan Pro so there is no bug

Actual Behaviour

Wrong code in the dokan-pro/modules/rank-math/includes/ContentAi.php file

Additional Information

No response

Environment (please complete the following information)

1. Dokan Version: [all]
2. Dokan Pro Version: [from 3.11.0]
3. WooCommerce Version: [all]
4. Browser [alli]
5. Current Theme: [all including store front]
Sophie-2e commented 3 months ago

Still not fixed in Dokan 3.11.2...it is just a copy paste guys. Just copy the code from my staging website. I tested it already and it works like a charm.

Sophie-2e commented 2 months ago

@devAsadNur & @YeasinArafat1998 & @mrabbani Still not fixed in Dokan Pro 3.11.3

campbellscreations commented 2 months ago

Also have a Rank Math issue but not the same as this one. Rank Math determined that the code Dokan used was not done correctly so the data entered on the sellers side does NOT match what is shown on the ADMIN side. So our sellers can enter all the required data in the Rank Math SEO fields but because Dokan did not code correctly, our admin team is now forced to open each and every single product listed on our site to simply hit save so that it takes the data and shows the correct score. On sellers side they can only get score to in the 50's with errors showing, but none of those issues occur on the admin side. Have lost several sellers due to their frustration over spending so much time working on SEO to be left with such a low score especially when it is shoved down everyone's throats that SEO is critical for success in online sales.

Since it works perfectly on Admin side, this is a Dokan dashboard/product entry coding issue. My support ticket regarding this has also been open since June 11th with still no resolution. So I def feel your frustration!

Sophie-2e commented 1 month ago

Thanks for fixing this issue @devAsadNur 🫶 Now it would be great to work on this one also related to RankMath: https://github.com/getdokan/dokan-wpml/issues/72 🙌