Quick Tip: Display Product Images in the PrestaShop Ajax Cart
Last Updated on Saturday, 11 May 2013 06:14 Written by Fabio Porta Wednesday, 15 May 2013 12:00
Adding product images in the default Prestashop Ajax cart can be trickier than expected, especially if you want to display them on the fly, without a page refresh. Let’s see how to do it properly in this quick tip!
Introduction: the 3 files we need to edit
You might think that it can be simple enough to add a small thumb for each product in the ajax cart. Opening the tpl file, adding the same code you find in the product list. Done.
Learn MoreOpenCart – Using the json Object with Ajax
Last Updated on Tuesday, 30 April 2013 01:54 Written by Joe Stenhouse Monday, 6 May 2013 12:00
This is a simple tutorial that will show you how to set up a java script function that uses Ajax to contact a PHP CONTROL file, thus returning json data to echo the results on a TPL file (HTML). All throughout the Opencart framework this is happening and sometimes you will have need to write your own extension. In doing so, you will come across the need to use AJAX.
For this example we are going to do a simple HELLO WORLD echo. First, you need to write your javascript (with AJAX). Since Opencart uses jQuery we will be using jquery style javascript. Jquery is not a scripting language. Rather, it’s a javascript library that makes great use of Javascript to produce rich applications.
Learn MoreWhy is JQuery AJAX Sending a GET Instead of a POST?
Last Updated on Thursday, 18 April 2013 02:34 Written by David Bauernschmidt Sunday, 21 April 2013 12:00
If I take the same amount of time writing this article as I did finding the problem, then this article would probably be 50,000 words long. However; I also know that articles are supposed to help individuals quickly solve problems and be enjoyable to read therefore; I had to adjust accordingly. I found this solution after hours on the internet trying to solve a problem that was created when I upgraded the jquery library from 1.6.1 to 1.8.3. I cannot prove (yet) that Jquery ultimately caused this problem but I can say that when I use any development tool at my disposal I see something quite interesting. Let’s play a game of what’s different. Look at following two sets of code and tell me what is different between them. There is a lot of other code but this is what is important.
Learn MoreHow to Activate Live Notifications in Elgg 1.8
Last Updated on Sunday, 20 January 2013 12:00 Written by Rodolfo Hernandez Sunday, 20 January 2013 12:00
The default elgg notification system sends emails to users when there’s activity in the network. Although this is good, it requires having the email inbox open to get the notification as soon as it arrives. A better way to handle notifications would be in site notifications. For that reason in this article I will give you a step by step guide on how to activate live notifications in elgg 1.8
1. First, let’s download the community plugin called “Notifier for Elgg 1.8” here
Learn MoreHow to Remove Contents of an Element (div, ul, etc) with jQuery
Last Updated on Friday, 21 December 2012 08:12 Written by Richi González Friday, 21 December 2012 12:00
Hello,
As I’ve been recently working with a website that has a lot of jQuery and AJAX, and my jQuery knowledge was small, I was wondering how to remove the content of a <div> with jQuery. The solution was pretty easy and with just a line of code.
The element we are going to affect will be called ‘Target’.
Learn More
Recent Comments