Moonsoft Software Solutions

Hikashop Multi Vendor Issue

Started 26 Nov 2017 · 3 replies

  1. mieprint
    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
  2. Moonsoft support
    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
  3. mieprint
    I dont have a table with product vendor id. Can this vendor id be put directly into the code
  4. Moonsoft support
    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

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket