How to clear cart after logout in opencart 2.x? - opencart2.x

I am using Opencart 2.x version and wants to clear cart when customer logout their account.
So please help me to achieve this task. I tried previous solutions but its not working for me (opencart 2.x) version all of are for Version 1.5.x to 1.6.x
Thanks..

Related

Facing XSS issue in Liferay 7.1.1 GA2

We have Liferay site that is ready to move into production. We ran a Vulnerability scan on the site recently and faced XSS issues which we need to solve before going LIVE.
Liferay is allowing the request like below,
https://<domain>/categories/sample/category/<script>xss</script>
https://<domain>/categories/sample/category/<script>alert("Script Executed")</script>
Above URL is being allowed in Liferay which needs to be validated, it will be helpful if anyone can guide me on how to validate this or prevent these requests. We are holding up our release due to this issue, any guidance will be greatly helpful.
Versions used:
Liferay : 7.1.1 GA2(Bundled version)
Tomacat: 9.0.10
I tried below options but that din't help in portal-ext.properties as well but that din't help:
xss.allow=false
xss.allow.com.liferay.portal.model.Portlet=false
xss.allow.com.liferay.portal.model.PortletPreferences=false
xss.allow.com.liferay.portlet.journal.model.JournalArticle.content=false
xss.allow.com.liferay.portlet.journal.model.JournalStructure.xsd=false
xss.allow.com.liferay.portlet.journal.model.JournalTemplate.xsl=false
I can see that some of the fix was already done in Liferay in older versions but still am facing it in 7.1.1,
Links of the fixes:
Link1
Link2
You can resolve the issue by having a filter which will validate the url , You can refer the link for using filter https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/servlet-filters You can refer below link for raising issue https://portal.liferay.dev/participate/feedback/report-issues

can anyone suggest a book for learning opencart 2.2 customization?

I want to create a new theme on opencart 2.2. Is there any book to help me to understand the complete process of creating a new opencart 2.2 theme?
Thanx.
Find overall workflow here, If you know the php then you can check the default theme and modify it, for theme, or follow the developer guide

Aperte workflow integrating with lifaray 6.1.1 CE

I am using liferay-portal-tomcat-6.1.1-ce-ga2.Now i want to integrate aperte work flow to the portal.i know that aperte bundle is available with liferay 6.0.6.
but i need aperte workflow for liferay 6.1.1 CE.
how i can achieve this?
help me..thanks in advance
The only way is to get the Aperte Workflow code base and maven build with liferay 6.1 dependency. Then solve the issue one by one.
Few days back I have done a research on that and successfully made it work.
The entire process is documented on my blog.
Here is the link,
http://rupalchatterjee.wordpress.com/2013/07/03/integrate-aperte-workflow-in-liferay-6-1/

Payment module in Kohana 3?

I've been using Kohana 2.3.7. There are somethings that are holding us back to using Kohana 3 and one is the lack of modules compared to 2.3.7. For instance, I can't seem to find the Payment module (Paypal, 2C0, Authorize.net, etc) present in 2.3 to 3. If there is already, can you please direct me to it?
Thanks for the help.
There are a few payment modules for Kohana 3.
Paypal
Google Checkout
Both created by Woody Gilk.
You also have the option of porting the Kohana 2 libraries. Takes no longer than half a day and gets the job done.
You can load the official authorize.net PHP SDK as a Kohana module.
http://dev.strategystar.net/2011/10/authorize-net-module-for-kohana-3-x/
I hope it helps. The two resources that Pixel Developer posted work nicely for Paypal and Google Checkout.

Where to submit Subsonic patch?

I just found an issue for Subsonic 2.1 that I created a patch for. Where do I go to submit that patch?
http://code.google.com/p/subsonicproject/issues/list
Make sure it's still a bug in 2.2.
Edit: It's over a year later and my answer is obsolete. The google code site is no longer used although it may live on forever... Subsonic 2.2 is on github, but there is really no point in submitting a bug report for it, or trying to get a branch pull request accepted. It's a dead project.. just an observation, not a flame. There's really no community for it any more which is a shame.

Resources