Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please login

Hikashop Multi Vendor Issue 26.11.2017 03:50

I am using the hikashop multi vendor platform and I am using different calculators for different vendors. The code im using for my previous calculators is

$hk_quantity=1;
$hk_product_name='Custom Print';
$hk_product_description=$description;
$hk_pricehikaproduct=$cost_uf;
$hk_product_code='BB';
$hk_productfields=array();
$hk_productfields['product_weight']=$weight/1000;
$hk_productfields['product_width']=23;
$hk_productfields['product_length']=32;
$hk_productfields['product_height']=27;

However, this creates a custom product each time and I cant seem to work out how to allocate this to a particular vendor. Is there a specific vendor code that I can insert to allocate the product created to the correct vendor

Re: Hikashop Multi Vendor Issue 26.11.2017 20:34

Hi,
at the product table you have available the column 'product_vendor_id', where you can assign any specific value to the new product. You can set directly at the code your vendor id, same as you do for the other product fields, for ex:


$hk_productfields['product_vendor_id']=1;


Hope this helps, regards
Moonsoft Team
www.moonsoft.es

Re: Hikashop Multi Vendor Issue 26.11.2017 22:13

I dont have a table with product vendor id. Can this vendor id be put directly into the code

Re: Hikashop Multi Vendor Issue 27.11.2017 08:34

Hi,
if you use a multi vendor installation you should have this field at the product table, at the code you can fill this field or any other you have for this purpouse at the product table. Where do you store the vendor id when you create a new product manually using the default hikashop backend? That is the same field you should fill from the calculator code.

Best regards
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect
FaLang translation system by Faboba

Our clients' feedback