Skip to main content

load external xml by Form ( in product page)

More
10 years 1 month ago #249559 by shahryarjb
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6
-- PHP version -- : 5.3

hi

in com_content ( custom plugin )
Code:
function onContentPrepareForm($form, $data) { if (!($form instanceof JForm)) { $this->_subject->setError('JERROR_NOT_A_FORM'); return false; } if ( $form->getName() != "com_content.article" ) { return true; } // Add the extra fields to the form. // need a seperate directory for the installer not to consider the XML a package when "discovering" JForm::addFormPath(dirname(__FILE__) . '/rating'); $form->loadFile('rating', false); return true; }
rating.xml
pleas see attached file

in hikashop ?

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

More
10 years 1 month ago #249577 by Jerome
Hi,

I'm afraid that we do not understand your question and your message.

Now, if you want to include content generated by content plugin ; please use the JHTML::_('content.prepare', ...) function.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

More
10 years 1 month ago #249639 by shahryarjb
hey,
i need to make some specific form in Hikashop component (send product unit) that user fill them and the data store in other database.
this feature exist in "com_content", you are able to add a xml file with some defined form into a new tab.

what should i do to add some specific form in Hikashop component for "product unit"?

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

More
10 years 1 month ago #249665 by nicolas
Hi,

So do you mean that you want to add some new fields to the existing product edition page of HikaShop ?
In that case, you can edit the file "form" of the view "product" for your backend template via the menu Display>Views.
Your modifications will be added as a template override and that way you can directly put your form code in there.

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

Time to create page: 0.187 seconds
Powered by Kunena Forum