Set default Warehouse

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
2 years 2 months ago #344827

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.2.2.
-- PHP version -- : 8.02

Hi

Can I somewhere set the default warehouse for new products?
Instead of NONE.

Regards
Thomas

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344828

Hi,

There is no option for that.
However, you can add such code at the beginning of the product / form.php view file for your backend template via the menu Display>Views:

<?php if(empty($this->product->product_id) && @$this->product->product_type != 'variant') {
 $this->product->product_warehouse_id = xxx;
}
where xxx is to be replaced by the id of the warehouse.

Please Log in or Create an account to join the conversation.

  • Posts: 359
  • Thank you received: 24
  • Hikaserial Standard Hikashop Business
2 years 2 months ago #344833

Great, works!

Thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum