- Posts: 28
- Thank you received: 0
Creating/Updating new products
8 years 3 weeks ago #297473
by Cedwyn
Creating/Updating new products was created by Cedwyn
-- HikaShop version -- : 3.5.1
-- Joomla version -- : latest
-- PHP version -- : latest
Thank you for any info!
Can someone point me to which hikashop files (mvc php) create/update products in the database? (using business edition if that matters)
I am making a custom component that does crud tasks on hikashop and would like to add/update the proper tables. If there are any resources on this, I would greatly appreciate links or suggestions!
Example:
Custom component connects hikashop with other parts of the site. If another part of the site is updated, then the custom component would update the hikashop product associated with that part of the site.
-- Joomla version -- : latest
-- PHP version -- : latest
Thank you for any info!
Can someone point me to which hikashop files (mvc php) create/update products in the database? (using business edition if that matters)
I am making a custom component that does crud tasks on hikashop and would like to add/update the proper tables. If there are any resources on this, I would greatly appreciate links or suggestions!
Example:
Custom component connects hikashop with other parts of the site. If another part of the site is updated, then the custom component would update the hikashop product associated with that part of the site.
Please Log in or Create an account to join the conversation.
8 years 3 weeks ago #297474
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic Creating/Updating new products
Hello,
You will find the dettails regarding the creation of plugins for HikaShop in that page :
www.hikashop.com/support/documentation/6...mentation.html#intro
If you do want to use the core to perform saving action ; you need to load the HikaShop helper and then get the corresponding class
You will find all classes in the HikaShop backend folder.
Regards,
You will find the dettails regarding the creation of plugins for HikaShop in that page :
www.hikashop.com/support/documentation/6...mentation.html#intro
If you do want to use the core to perform saving action ; you need to load the HikaShop helper and then get the corresponding class
Code:
if(!@include_once(rtrim(JPATH_ADMINISTRATOR,DIRECTORY_SEPARATOR).'/components/com_hikashop/helpers/helper.php'))
return false;
$productClass = hikashop_get('class.product');
$product = $productClass->get(1);
$product->product_name = 'New name';
$productClass->save( $product );
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Time to create page: 0.206 seconds