How to add link to orders page with filter inside link? - opencart

I want to add direct link with filter_date_added=(DATE(NOW()) in Dashboard in Opencart's Administration to orders page.
I'm not a programmer and if somebody can help me with this I'll be very grateful.

If you a not a programmer may I suggest you searching the modules on OpenCart modules forum. Alternatively you can edit the order_sales.tpl in view/templates and simply add a column inside that and pull the variable from the PHP module.
The archiecture is found in
admin\controller\sale\order.php
admin\model\sale\order.php
admin\view\template\sale\order_list.tpl
admin\language\english\sale\order.php
http://www.opencart.com/index.php?route=extension/extension/info&extension_id=14230
There is a module out there that allow you to do this for country, viewing sales by country. Maybe you can download and play around with it and try to experiment. It will only help you to become a better programmer.

Related

Opencart store page and links

I have locally installed opencart into the ".../shop" part of my website. Now I want to fit my site header and footer to appear around the site.
Please can people help advise the best way of doing this. I have a header.php and footer.php included on ever page of my site but am not clear how to implement this on the shop page.
I am thinking that there is going to be conflicts especially linking to other pages via the shop section. Will the hrefs in my header in the shope section need to direct differently?
You'd want to goto your catalog/view/theme/default/template/common/header.tpl and footer.tpl and make the changes.

Can't hide and add category on frontend in Prestashop 1.5

I'm new in Prestashop and I ask you about little help.
My client uses Prestashop 1.5 and she deleted one category and add one new category. Unfortunately we don't see these changes in category block on homepage and other pages.
Can you please help me how can I make these changes in admin? I looked for a solution in the category settings and in modules settings, but without success. I deleted cache in Prestashop and also in browser.
Can you please help me?
Thank you very much in advance.
Kind regards,
Jan Pavelka
picture of backend /
picture of frontend
What is name of this category module? This is blockcategories or it is different module? If it is different module maybe it has configuration page where you must edit displayed content like in module blocktopmenu.
Could:
Clear the cache from admin panel ;
Very often the themes and modules have a " cache " separate checks if there are options to delete it or you cache modules ;
If it appears also , try to look as if phpmyadmi in ps_category and ps_category_lang tables is still present that category (replace " PS_ " with the code you're using ) .
Let me know
Thanks guys for the great advice.
Finally, it was very simple (and stupid from my part). I only had a lower level of access to backend - that was the problem. For these things I need admin access.
Jan

ContextualHelp on Infragistics XamFormulaEditor for custom variables

I am using DataGrid for displaying table. One of the columns in Datagrid consists of XamFormulaEditor. Also, there are some custom variables that are assigned to XamCalculationManager's Named references so that they are visible to user when he types formula in XamFormulaEditor. I have couple of problems with ContextualHelp:
For Eg. if the custom variable name is "a", then in ContextualHelp list it looks like [//a]. Isnt't there any settings to make it look like [a] ?
Is there any way to filter the contextual help to not display standard functions and only display variables that we want ?
After looking into this and doing some research, ContextualHelp on Infragistics XamFormulaEditor for custom variables has been determined to be a new product idea. You can suggest new product ideas for future versions (or vote for existing ones) at Infragistics new site for features:
http://ideas.infragistics.com.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
Log into the Infragistics Product Idea site at http://ideas.infragistics.com (creating a new login if needed).
Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)
Add your product idea and be sure to be specific and provide as much detail as possible. Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.

AdSense with OpenCart

After hours upon hours of searching through stackoverflow and AdSense forums, i am not able to find anything to help me implement my google adsense code in my opencart template.
Originally i put the code in the welcome module hoping it would show up on the top of each page but this did not work at all.
I found an extension called KINZA which was free but once installed, this simply outputs the javacript code on my website and not the actual ad.
My question is this: I would like to have one of my ads up top across the page and maybe one on the sidebar as a thin skyscrapper size. How would one do this ? Where in my opencart template would i implement the code ?? I do not want to spend money on an extension to get this to work. I would rather just dive in the code and paste it where it needs to be.\Any help is GREATLY appreciated.
Thank you !
there are 6 files that are included in every page of frontend
catalog/view/theme/your_theme/template/common/header.tpl , footer.tpl , column_left.tpl , column_right.tpl , content_top.tpl , content_bottom.tpl
you can put your code in any one of these and it should work fine
you can make a module for adsense so that you can control its layout and position from admin .... here is a guide of to make/duplicate a module at opencart forums http://forum.opencart.com/viewtopic.php?t=6696
Opencart 3 onwards does not support google adsence you can not show ads just go for wordpress or any other

Opencart module development - Inject javascript/html code in some pages

I'm a beginner on Opencart and just started developing a module for Opencart which it must inject some lines of javascript and html code in these pages:
- Cart Page
- Product Page
- Confirmation Order Page
- Register form page
The official documentation doesn't have informations about how can i do that, I've tried to find a good documentation about OpenCart but I didn't find anything.
I need help. How can I do that?
Diggin necro topics;) :
The easiest way i think:
upload/catalog/view/theme/[themename]/template/product/product.tpl - here you can add your custom html for product page
[your theme name, you shouldnt overwrite default theme because it can cause damage after update]
It depends on where you're trying to insert the HTML/JavaScript.
Doing things the proper way in OpenCart, you're limited to the column-left, column-right, content-top, and content-bottom positions.
The files you'll need to create are:
admin/controller/module/mymodule.php
admin/language/english/module/mymodule.php
admin/view/template/module/mymodule.tpl
catalog/controller/module/mymodule.php
catalog/language/module/mymodule.php
catalog/view/theme/default/module/mymodule.php
To learn how to do this the first time, it's easiest to replicate an existing stock OpenCart module (preferably a simple one, such as information). Once you've replicated it you'll need to go through each of those files and replace any references to "information" with "mymodule".
After that, if you've done it properly, you should be able to navigate to Admin > Extensions > Modules and see your module in there. Then install it, use the "Add module" button to position the module on all the relevant layouts, hit save and hey presto you have a working module on the front-end.
To modify the front-end output, just edit catalog/view/theme/default/module/mymodule.php
If you want to insert your HTML somewhere other than the 4 available positions OpenCart gives you, position your module in the content-bottom position and use JavaScript/jQuery to inject some HTML where you want.
If this is for your own personal website then as Pawel S suggested it would be easiest to simply modify the relevant view files (ie. catalog/view/theme/[themename]/template/product/product.tpl), however if you're making a module which you plan to distribute then this should be a last resort.
Hope that helps!
I realize this is probably long dead by now, but if you're creating a module that needs to modify existing controllers, languages, models or views the correct tool to use is vQMod.
vQMod allows you to modify existing code on the fly using XML.
https://code.google.com/p/vqmod/