Creating/Updating new products

  • Posts: 28
  • Thank you received: 0
8 months 3 weeks 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!

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.

  • Posts: 23430
  • Thank you received: 3641
  • MODERATOR
8 months 3 weeks ago #297474

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

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 );
You will find all classes in the HikaShop backend folder.

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