Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Allow Vendor To Add Variant In Product ->Features Rate Topic   * * * * * 1 votes

 
  • pratik1992
  • Member
  • Members
  • Join Date: 09-Oct 14
  • 24 posts

Posted 11 December 2014 - 05:43 AM #1

Hello,
i just came across a small problem or a lock of feature in multivendor. i was accessing the store as a vendor, i came across a small problem in product page-> features tab. The problem is, i as a admin have already added some of the features and its variants for the specific categories,

for example: admin has added a feature as BAG COLOUR and its variants as RED, blue, yellow, green etc, but what if vendors BAG COLOUR is "maroon", so he wont be able to add the variant.

from the admin side, admin gets an option as "enter other" in the variant dropdown, where he can enter a new variant in the product page -> feature tab itself. i want this "enter other" option available for vendors too. It is not possible for admin to input all the existing colours into the variant tab. nor vendor can contact admin each and every time when he wants to add new variant. please help me out with this.

Have a look at the below attachments:
1st image is from the admin side and 2nd image from vendor side.
i have highlighted the problem

where i need to change the code or set vendor permission?

Attached Files



 
  • Alt-team
  • CS-Cart Developer
  • Authorized Reseller
  • Join Date: 18-Jan 11
  • 2687 posts

Posted 11 December 2014 - 08:22 AM #2

Dear Pratik1992,

Code modification is required here.
Maybe other third-party developers could post it here as we are quite busy today.

Best regards, Alt-team.

ADD-ONS  Web development service  | CS-Cart dedicated developers

Buy MULTIVENDOR - USD 1250 (14% off)   Buy CS-CART LICENCE - USD 345 (13% off)

 Email - manager@alt-team.com | Skype - Altteam    


 
  • pratik1992
  • Member
  • Members
  • Join Date: 09-Oct 14
  • 24 posts

Posted 11 December 2014 - 09:32 AM #3

thanks for the reply, if possible please update me with the modifications when ever u free

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19793 posts

Posted 11 December 2014 - 10:14 AM #4

thanks for the reply, if possible please update me with the modifications when ever u free


The solution is simple. Open the app\controllers\backend\product_features.php file and replace this part of code:

if (!Registry::get('runtime.company_id') || (fn_allowed_for('ULTIMATE') && fn_check_company_id('product_features', 'feature_id', $_REQUEST['feature_id']))) {

with this one:

if (fn_allowed_for('MULTIVENDOR') || (fn_allowed_for('ULTIMATE') && fn_check_company_id('product_features', 'feature_id', $_REQUEST['feature_id']))) {

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • pratik1992
  • Member
  • Members
  • Join Date: 09-Oct 14
  • 24 posts

Posted 11 December 2014 - 11:50 AM #5

The solution is simple. Open the app\controllers\backend\product_features.php file and replace this part of code:

if (!Registry::get('runtime.company_id') || (fn_allowed_for('ULTIMATE') && fn_check_company_id('product_features', 'feature_id', $_REQUEST['feature_id']))) {

with this one:

if (fn_allowed_for('MULTIVENDOR') || (fn_allowed_for('ULTIMATE') && fn_check_company_id('product_features', 'feature_id', $_REQUEST['feature_id']))) {



thansk ecom labs for the reply..i did the changes as mentioned by you but enter_other option dint work...ny idea, what can be the issue?

 
  • pratik1992
  • Member
  • Members
  • Join Date: 09-Oct 14
  • 24 posts

Posted 11 December 2014 - 12:32 PM #6

The solution is simple. Open the app\controllers\backend\product_features.php file and replace this part of code:

if (!Registry::get('runtime.company_id') || (fn_allowed_for('ULTIMATE') && fn_check_company_id('product_features', 'feature_id', $_REQUEST['feature_id']))) {

with this one:

if (fn_allowed_for('MULTIVENDOR') || (fn_allowed_for('ULTIMATE') && fn_check_company_id('product_features', 'feature_id', $_REQUEST['feature_id']))) {

hello, ecom labs, i just check it out on my other domain and applied the code and it worked correctly..but i dnt knw why it is not working on this domain? what can the issue be?

 
  • Alt-team
  • CS-Cart Developer
  • Authorized Reseller
  • Join Date: 18-Jan 11
  • 2687 posts

Posted 11 December 2014 - 01:06 PM #7

Dear Pratik1992,

Have you got any third-party add-ons related with product_features?

Best regards, Alt-team.

ADD-ONS  Web development service  | CS-Cart dedicated developers

Buy MULTIVENDOR - USD 1250 (14% off)   Buy CS-CART LICENCE - USD 345 (13% off)

 Email - manager@alt-team.com | Skype - Altteam    


 
  • pratik1992
  • Member
  • Members
  • Join Date: 09-Oct 14
  • 24 posts

Posted 11 December 2014 - 01:24 PM #8

Dear Pratik1992,

Have you got any third-party add-ons related with product_features?

Best regards, Alt-team.

no..there are no addons as such..can u check what is the issue..i can giv u ftp details

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19793 posts

Posted 11 December 2014 - 03:40 PM #9

We fixed it on your server. Please take a look

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • pratik1992
  • Member
  • Members
  • Join Date: 09-Oct 14
  • 24 posts

Posted 12 December 2014 - 04:38 AM #10

We fixed it on your server. Please take a look

thank u very much for the help...hats off to the developers

 
  • pratik1992
  • Member
  • Members
  • Join Date: 09-Oct 14
  • 24 posts

Posted 12 December 2014 - 04:41 AM #11

We fixed it on your server. Please take a look

can u tell me what was the issue

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19793 posts

Posted 12 December 2014 - 01:06 PM #12

All the changes made in the same file. Please check

GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • pratik1992
  • Member
  • Members
  • Join Date: 09-Oct 14
  • 24 posts

Posted 12 December 2014 - 02:31 PM #13

All the changes made in the same file. Please check

great..thanks a lot

 
  • deriktan
  • Advanced Member
  • Members
  • Join Date: 10-Dec 16
  • 77 posts

Posted 13 December 2016 - 11:34 AM #14

Hi,

 

May i Know how to fixed it?

 

Thank You



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19793 posts

Posted 13 December 2016 - 02:00 PM #15

May i Know how to fixed it?

 

Frankly speaking, I do not remember. If you provide us with the temporary FTP access, we can help you to implement this feature


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19793 posts

Posted 16 December 2016 - 11:16 AM #16

All you need to do in the latest versions is to open the design/backend/templates/views/products/components/product_assign_features.tpl file and replace

{$allow_enter_variant = $feature|fn_allow_save_object:"product_features"}

with

{$allow_enter_variant = true}

Hope this will help


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • darpan
  • Newbie
  • Trial users
  • Join Date: 17-Sep 17
  • 12 posts

Posted 05 January 2018 - 05:15 AM #17

Hello eComlabs,

 

Can you suggest me the way in latest version. How can vendors add variants in product.

 

Thanks in advance!

 

Best,

darpan



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19793 posts

Posted 09 January 2018 - 05:51 AM #18

Try solution from post #16. Most possibly it will work on the latest version as well


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • darpan
  • Newbie
  • Trial users
  • Join Date: 17-Sep 17
  • 12 posts

Posted 09 January 2018 - 07:18 AM #19

Hello,

 

Thank your your reply.

 

I tried suggested option but it didn't work. Please help me.

 

Darpan



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19793 posts

Posted 10 January 2018 - 06:33 AM #20

Hello,

 

Thank your your reply.

 

I tried suggested option but it didn't work. Please help me.

 

Darpan

 

It works on my local installation. Please PM me temporary FTP access so that we can check it


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.