Vendor Data Premoderation

How can the Vendors see the products which have been rejected by the vendor pre moderation plugin?

Kind of query below:

SELECT * FROM `cscart_products` where approved = 'N' and status = 'A' and company_id = 'current vendor company id'

Currently there is no provision for vendors to see the rejected products in case the email is not received or gets bounced etc.

There should be a page to see the same.

Cant the same Product Approval page be used by the vendors as well so that they can see the approved or disapproved products.

can any one please help on this ?

Hello!

If you use Multi-Vendor 4.3, try the following solution:

1. Replace this part of the code:

$schema['controllers']['premoderation']['modes']['products_approval']['permissions'] = false;

with this one:

$schema['controllers']['premoderation']['modes']['products_approval']['permissions'] = array('GET' => true, 'POST' => false);

in the app/addons/vendor_data_premoderation/schemas/permissions/vendor.post.php file.

2. Replace this part of the code:

if ($mode == 'products_approval' && !Registry::get('runtime.company_id')) {

with this one:

if ($mode == 'products_approval') {

in the app/addons/vendor_data_premoderation/controllers/backend/premoderation.php file.

The Vendor will see the his/her products list and the status for each product.

If you need it for another version, feel free to contact us by e-mail: sales@cart-power.com

Best regards,

Thanks for the help , we have version MVE 4.2.4

We tried your changes but the vendor can actually click on approve buttons and make the changes.

After this modification the vendor is able to click the Approve button, but can't save changes. WE test it in the default Multi-Vendor 4.2.4 now. As an option, you can hide the buttons from Vendor on this page. In order to do it, please, make the following changes:

1. In the design/backend/templates/addons/vendor_data_premoderation/views/premoderation/products_approval.tpl file replace this part of the code:

 {if $product.approved == "Y" || $product.approved == "P"}
            {include file="common/popupbox.tpl" id="disapprove_`$product.product_id`" text="{__("disapprove")} \"`$product.product`\"" content=$smarty.capture.disapprove link_text=" " act="edit" icon="icon-thumbs-down"}
        {/if}
    {if $product.approved == "P" || $product.approved == "N"}
        {include file="common/popupbox.tpl" id="approve_`$product.product_id`" text="{__("approve")} \"`$product.product`\""  content=$smarty.capture.approve link_text=" " act="edit" icon="icon-thumbs-up"}
    {/if}

with this one:

  {if $auth.user_type == 'A'}
            {if $product.approved == "Y" || $product.approved == "P"}
                {include file="common/popupbox.tpl" id="disapprove_`$product.product_id`" text="{__("disapprove")} \"`$product.product`\"" content=$smarty.capture.disapprove link_text=" " act="edit" icon="icon-thumbs-down"}
            {/if}
        {if $product.approved == "P" || $product.approved == "N"}
            {include file="common/popupbox.tpl" id="approve_`$product.product_id`" text="{__("approve")} \"`$product.product`\""  content=$smarty.capture.approve link_text=" " act="edit" icon="icon-thumbs-up"}
        {/if}
    {/if}

2. in the same file replace the second condition (there are two this conditions in the file, you need the last one, it is about line 80)

{if $products}

with this one:

{if $products && $auth.user_type == 'A'}

In the default Multi-Vendor 4.2.4 this solution works correctly. IF you have modified version, please, contact us by e-mail: sales@cart-power.com.

Best regards,

Thanks mate for the input