- Posts: 4
- Thank you received: 0
load external xml by Form ( in product page)
- shahryarjb
-
Topic Author
- Offline
Less
More
10 years 1 week ago #249559
by shahryarjb
load external xml by Form ( in product page) was created by shahryarjb
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6
-- PHP version -- : 5.3
hi
in com_content ( custom plugin )
rating.xml
pleas see attached file
in hikashop ?
-- 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;
}
pleas see attached file
in hikashop ?
Please Log in or Create an account to join the conversation.
10 years 1 week ago #249577
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 load external xml by Form ( in product page)
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,
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.
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.
- shahryarjb
-
Topic Author
- Offline
Less
More
- Posts: 4
- Thank you received: 0
10 years 1 week ago #249639
by shahryarjb
Replied by shahryarjb on topic load external xml by Form ( in product page)
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"?
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.
10 years 1 week ago #249665
by nicolas
Replied by nicolas on topic load external xml by Form ( in product page)
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.
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.203 seconds