I have a problem about displaying a module in front-office when it was grafted.
Via the back office, I can graft the module on the hook that interests me, but when I display the front office, my module refuses to display. (No error, in short, everything looks good, but the contents of the tpl file is not displayed).
To display something on Prestashop via custom module, please make sure following things has been followed:
Your module must be installed.
If you are using hooks in your module to display something or performing any action then those hooks must be registered with your module. Otherwise, Prestashop will not execute hook content of your module.
Related
I have an app that I am using on Shopify store. When I install it i have used assets api to create a snippet file. Everything works fine.
What I am trying to achieve is that whenever user install my application the app snippet which is created should be included automatically on product-template.liquid file on a desirable place (e.g above add to cart button).
What i have done is I have used again assets api to get the page data and I am trying to place my code that will include that snippet but I am not sure how to specify position where to add that code.
Solution: I did it by getting page as a string via assets Api and then by getting position i updated it with my line of code
I'm using a theme with testimonial slider in homepage and I've figured out that there in the module folder a file called all_testimonial.tpl and something about an upload form.
So I guess that there is a way to have a page with all testimonials with the upload form.
But I'm not able to understand how could use that tpl.
Do you have any suggestions?
TPL file is a file extension for a template file format in general.
In Prestashop, Smarty is a template parser written in PHP
Take a have a look at these websites
https://www.smarty.net/
https://www.smarty.net/docsv2/en/smarty.for.designers
It would be difficult to answer which module for testimonial slider you are using in theme and which PrestaShop version website is using.
But I would say to have a look at the Prestashop Hooks
To see List of Hooks -> For a full list of Hooks
To see Module Development Changes -> https://build.prestashop.com/news/module-development-changes-in-17/
I am using DNN 8 and i need slider for the home page. I have did extensive search about this on internet and i found Content Slider module.
I have added this module in the page and when i add content slider module a message appears in the pane like below
No content sliders have been created yet. Please use the Actions Menu
to create a slider.
So i used action menu to add slider, when i click Add Slider option from the action menu i get the error like below image.
Click image to see error
Not understanding what to do. So please any help me to solve this error.
This is a bug related to DNN8 deprecating support for older controls. If the module is open source you should download the source code and add references to DNN8 so that you can recompile it to get the proper references.
Steps:
Setup your development environment (link)
Download Source Code (_source) version of the module
Install _Source package via the Host/Extensions page (link)
Open the CSProj file in Visual Studio 2015
Remove reference to DotNetNuke.Web
Add reference to DotNetNuke.Web.Deprecated (found in the website's BIN folder)
Compile in Release mode to package (assuming the module supports my BUILDSCRIPTS)
Install the created _INSTALL file to your production DNN site
If the module doesn't use my BUILDSCRIPTS just compile and copy the DLL generated to your production website BIN folder
Chris
When you load with Dojo's require a module with the wrong module url (mid), it creates an error (timeout) each time you use require(not loaded yet modules) again, regardless you loaded another module successfully afterwards.
Is there a way to clear that errors? Those failed modules seem to be permanent somewhere in dojo.js and they don't seem to be accessible through an API.
ps: I'd be happy even with a core hack to get rid of them.
Recently I decided to study php and I discovered yii framework. At first glance it seemed very easy to work with it but now I am struggling to configure my web application for installing an extension to work with Enums. I downloaded this extension from their web site and I put it within extensions folder. The issue is that I am not able to call the subclasses that I created in my code. I created a few classes that extend from this superclass (extension).
Which configuration I must do to make this extension class, available to my web application code?
As I said I just put that extension class in my extensions folder and I am just instantiating them, inside controller's methods. When I run the code I see the same error message no matter any configuration I make:
include (xxx.php): failed to open stream: No such file or directory
If anyone does want to know more about this extension this is the page that shows some information about that.
http://www.yiiframework.com/extension/enum/
in config/main.php you should add your extension details in the components array, something like:
return array(
// 'preload'=>array('xyz',...),
'components'=>array(
'xyz'=>array(
'class'=>'ext.xyz.XyzClass',
'property1'=>'value1',
'property2'=>'value2',
),
// other component configurations
),
);
where xyz is an extension
or just put it in the extensions folder and import it by Yii::import('application.extensions.extensionname.*');