CalcBuilder Forum

Hikashop Multi Vendor Issue

User mieprint 2017-11-26 03:50:04

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=$weight/1000;
$hk_productfields=23;
$hk_productfields=32;
$hk_productfields=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

Moonsoft support 2017-11-26 20:34:00

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=1;


Hope this helps, regards

User mieprint 2017-11-26 22:13:18

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

Moonsoft support 2017-11-27 08:34:36

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

...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!
...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!