Creating/Updating new products

  • Posts: 28
  • Thank you received: 0
5 years 7 months ago #297473

-- 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!

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.

  • Posts: 26000
  • Thank you received: 4004
5 years 7 months ago #297474


You will find the dettails regarding the creation of plugins for HikaShop in that page :

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

	return false;

$productClass = hikashop_get('class.product');

$product = $productClass->get(1);
$product->product_name = 'New name';

$productClass->save( $product );
You will find all classes in the HikaShop backend folder.


Jerome -
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.062 seconds
Powered by Kunena Forum