Its is possible to put some product on homepage (POPULAR) manually in prestashop? - prestashop

How can I manage the content on the homepage in prestashop? Foe example I put a special product on popular tab?

This can be solved through various ways,
One option is to custimize your product page from back office. That should be found in "theme module".
Another way you can try is to use third-party add-ons, that may not be costless.
Or you can edidt your source code, for example, your .tpl file.
Hope these can do some help.

Related

Double forward slash outputting as https:// in Tapcart App from Shopify Site

Working on a Shopify site for a client that utilizes tapcart, which appears to just grab default or inline styles from rich text editor. The problem lies in the product description where we use "//" as a divider.
Product Description // This is a product is how it is supposed to look. It instead appears as:
Product Description https:// This is a product
Not too familiar with how Tapcart works as they don't allow much outside development and can't give an answer as to why this is happening or if there is any way to avoid it. The error does not appear on the actual website. Is there a proper way to escape it? Has anyone seen something like this before?
Thanks!
You can stop using the product description for stuff other than the product description and use metafields instead.
In the shopify admin go to settings -> metafields and define the metafields you need, then go to each product and use the metafields at the bottom rather than using the description to put additional info.

What is the correct .tpl file to edit the footer links in Prestashop

I need to edit the footer links in my Prestashop template ( just to add a wrapper). That's the link list that comes afterthe block-contact. This is the block that shows links to special offers, product categories, best sales...and then comes another block of links related to CMS pages.
Do you know which files i have to edit?
Thanks
Well finally i got it, for anyone who had the same issue, here's the correct .tpl :
modules\ps_linklist\views\templates\hook\linkblock.tpl

How to change in template through the Shopify application

I am trying to write a Shopify application and I want to add a section to the product page when the store owner installed my app. I tried this by adding a custom script tag in the shop template and this tag will load and inject my desired HTML into the page. It's work but it needs to force the store owner to change the product page template and its not user-friendly.
I see some apps in the Shopify app store that can change the product page after you install them without needs add any part to the product page template. How they do this work? I can't find the correct way in the Shopify documents.
You can change the Shopify theme of the shop using The API for Assets:
However as drip mentioned this is not a good idea:
If you change the theme auto-magically via code, you are looking for trouble. A lot of things can go wrong - simply you cannot cater for all themes and their changes over time! So you could possibly leave a broken page after the change. The e-shop owner won't be impressed! Actually a lot of the 1* reviews of apps are for that reason!
What would happen if the eshop owner removes your app? He won't know what code to remove.
So, most apps ask the user to add the app code. They provide detailed instructions of course.
Fyi, another problematic approach is the following:
Some apps may attempt to change the DOM "on the fly", by first locating an existing DOM element (a lot of theme-specific if statements to do that with any degree of success) and, then insert the app's DOM elements.
That's very messy and problematic as well, but at least you do not risk ruining the owner's theme files. In the worst case he can uninstall your app and he 'll be ok.

Joomla front page multiple modules/articles

I have a Joomla website with virtuemart. The front page has featured products. Now I want to be able to show more at my front page. I made an article with a picture in it. I want it also to display at the homepage at the same time as the featured products module, say above it. So basically multiple things at the front page. Now I could hardcode it in, but I want to be able to make it as article as it is easier and faster editable.
The solution is Module,
Just create a module , with params as article id options.
Means create a module with parameter option that you can set the article Id, then simply assign that module to the Home Page.
Inside your module Just read the article id and fetch those article details.
For the module development tutorial you can check this.
Hope its helps..

Alfresco Share site's dashlet for document library

I was wondering whether exists any dashlet which allows you to explore a site's document library. As far as I know doesn't exist such dashlet out of the box, there only exists the "Site Content" dashlet but it is slightly limited.
I have been searching around and "googling" and I found these useful resources that could be useful as a starting point if I had to create my own:
http://ecmarchitect.com/archives/2012/05/08/1592
http://code.google.com/p/fme-alfresco-extensions/wiki/GalleryPlusDashlet2
Do somebody know more dashlets/resources targeting this issue? Any suggestion?
As a temporary solution, I'm also thinking in the possibility of taking advantage of the "Web View" dashlet, by configuring in it such URL that retrieves the documentlist region/component in the documentlibrary page. For example:, share/page/components/documentlibrary/documentlist or share/page/site/{site}/documentlibrary?region=documentlist. Maybe it is crazy or what I'm saying doesn't make any sense, but it is just an idea.
Another idea that have just came to my mind is the option of creating a custom Surf/Share page which includes the component/webscript that implements the explorer of the document library, specifically the documentlist component. Then configure the "Web View" dashlet giving the URL that points to the custom page created. Would it make sense?
Thanks in advance.
You are going to see a couple of site visualization and navigation dashlets on Alfresco Visualization Tools available on https://github.com/bhagyas/alfresco-visualization-tools. The project is still at it's initial phase, but you will find interesting snippets of code used to retrieve the document library content trees within the dashlets.
The project was presented by me at Alfresco DevCon in Berlin just a week ago to bring interactive navigation and content analytics. If interested, you can find the slides at the lightening talk slides in the DevCon 2012 site at Alfresco.
Cheers! =)
Hi I've done exactly the same, it was not really needed for a Dashlet but for to embed the documentlibrary of a site in an iframe for another site.
So what I did was indeed create a new page template embedded-documentlibrary.
I've copied first the following files and renamed them:
site-data/pages/documentlibrary.xml
site-data/template-instances/documentlibrary.xml
site-webscripts/org/alfresco/documentlibrary.ftl
If you rename file 3 or put it in another folder, you need to check the paths in file 1 & 2.
So to make only the documentlibrary appear instead of everyting I just removed everything in file 3 within the <div id="alf-hd"> tag.
If you remove the tag, the document-tree will also be removed and it gave some javascript errors. This should be fixed in the latest version, but haven't tied that.
So it's extremely easy to create your own page and instead of navigating to site/documentlibrary you just navigate to site/embedded-documentlibrary or your own name you've chosen.
And yes then you'll need to use the web-view Dashlet to show it.
The only thing you need to know is, that the links open within the iframe. So if you use the web-view Dashlet, you need to open the links in a new window.
For my situation I needed an iframe, in your case you could also just let the freemarker from your Dashlet render the components needed.
There is a document-liberary-display dashlet available in the alfresco add-on list which can be used to show all the documents from document-library on site-dashlet.
http://addons.alfresco.com/addons/document-library-display-dashlet