./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How do I add a product to OpenCart from an external site? | |
up vote | |
0 | |
down vote | |
favorite | |
I need to add a product to the shopping cart from a website to ocart. I was trying the following code. All I get is "shopping cart empty" after the user clicks the submit button. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.00000000, M12=1.00000000, M21=-1.00000000, M22=0.00000000,sizingMethod='auto expand')"; | |
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.00000000, M12=1.00000000, M21=-1.00000000, M22=0.00000000,sizingMethod='auto expand'); | |
-moz-transform: matrix(0.00000000, -1.00000000, 1.00000000, 0.00000000, 0, 0); | |
-webkit-transform: matrix(0.00000000, -1.00000000, 1.00000000, 0.00000000, 0, 0); | |
-o-transform: matrix(0.00000000, -1.00000000, 1.00000000, 0.00000000, 0, 0); | |
http://stackoverflow.com/questions/11900870/rotating-a-text-to-270-degrees-in-ie8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this to your <head> section | |
<script language="javascript" type="text/javascript"> | |
function resizeIframe(obj) { | |
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px'; | |
} | |
</script> | |
And change your iframe to this: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$image = file_get_contents('http://www.url.com/image.jpg'); | |
file_put_contents('/images/image.jpg', $image); //save the image on your server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(window.location.hash) { | |
// Fragment exists | |
} else { | |
// Fragment doesn't exist | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.menufixed{ | |
position: fixed; | |
top: 0; | |
z-index: 999; | |
margin: 0 auto; | |
width: 100%; | |
background: #fff; | |
left: 50%; | |
transform: translateX(-50%); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (min-width: 1200px) { | |
.container{ | |
max-width: 970px; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Have you heard about the jQuery Waypoint plugin. | |
Below is the simple way of calling a waypoints plugin and having the page load more Content once you reaches the bottom on scroll : | |
$(document).ready(function() { | |
var $loading = $("<div class='loading'><p>Loading more items…</p></div>"), | |
$footer = $('footer'), | |
opts = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ajaxStop(function(){ | |
setTimeout("window.location = 'otherpage.html'",100); | |
}); |