- Posts: 366
- Thank you received: 26
Set default Warehouse
4 years 1 week ago #344827
by Thrane
Set default Warehouse was created by Thrane
-- 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
-- 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.
4 years 1 week ago #344828
by nicolas
Replied by nicolas on topic Set default Warehouse
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:
where xxx is to be replaced by the id of the warehouse.
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:
Code:
<?php if(empty($this->product->product_id) && @$this->product->product_type != 'variant') {
$this->product->product_warehouse_id = xxx;
}
Please Log in or Create an account to join the conversation.
4 years 1 week ago #344833
by Thrane
Replied by Thrane on topic Set default Warehouse
Great, works!
Thank you!
Thank you!
Please Log in or Create an account to join the conversation.
Time to create page: 0.134 seconds