Skip to content

Instantly share code, notes, and snippets.

View gunjanpatel's full-sized avatar

Gunjan Patel gunjanpatel

View GitHub Profile
@gunjanpatel
gunjanpatel / product_order_in_backend_listing page.patch
Created July 2, 2013 04:37
This patch is a fix for redSHOP product back-end sorting / ordering issue for version 1.2 and lower.
From 0d297c73af187e5eedd2b3d36ddbca79251fcea4 Mon Sep 17 00:00:00 2001
From: Gunjan Patel <gunjan@redcomponent.com>
Date: Fri, 17 May 2013 17:43:24 +0530
Subject: [PATCH 1/3] fix sorting issue on product listing page
---
component/admin/models/product.php | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/component/admin/models/product.php b/component/admin/models/product.php
(F)(F)(F)(F)(F)(F) (F)(F)(F)(F)(F)(F)(F)
(F)(F)(F):*:*:*(F):* :*:*(F)(F)(F)
(F):*:*(h)(h):*:*:* (h)(h):*:*(F)
:*:*(h)(h)(h)(h):* (h)(h)(h)(h):*:*
:*:*(h)(h)(h)(h) (h)(h)(h)(h)(h):*:*
(F):*:*(h)(h)(h) (h)(h)(h)(h):*:*(F)
(F)(F):*:*(h)(h) (h)(h)(h):*:*(F)(F)
(F)(F)(F):*:*(h) (h)(h):*:*(F)(F)(F)
(F)(inlove)(F)(F) :*:*(h):*:*(F)(F)(inlove)(F)
(F)(inlove)(F)(F) (F):*:*:*(F)(F)(F)(inlove)(F)
@gunjanpatel
gunjanpatel / ConsoleLog.sublime-snippet
Created July 9, 2013 05:38
change.log sublime text 2 code snippet
<snippet>
<content><![CDATA[console.log(${1});]]></content>
<tabTrigger>cl</tabTrigger>
<description>console.log();</description>
<scope>source.js</scope>
</snippet>
@gunjanpatel
gunjanpatel / joomla git.md
Last active August 27, 2021 14:03
work with joomla git using terminal

Clone your forked repo in local.

Using Terminal

  1. For the very first time if you didn't configured remote repository then do it using this command.

     git remote add upstream git@github.com:joomla/joomla-cms.git
    
  2. Fetch changes from remote repository.

@gunjanpatel
gunjanpatel / sublime text 2
Last active September 28, 2020 18:01
sublime text 2 installation on Ubuntu.
How to install Sublime Text 2 on Ubuntu 12.04 (Unity)
April 28, 2012 by Jevin | 307 Comments
Sublime Text is an awesome text editor. If you’ve never heard of it, you should check it out right now.
I’ve made this tutorial because there’s no installer for the Linux versions of Sublime Text. While that’s not a real problem, I feel there is a cleaner way to go around this. Also, this post will show you how to integrate Sublime Text to Unity (which, I’m glad to report, has now matured into a fully functional user interface).
So let’s get on with this. Here is my how to install Sublime Text on Ubuntu tutorial.
@gunjanpatel
gunjanpatel / git-config.md
Last active January 3, 2016 23:19
Working with git daily - Tasol

Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com
@gunjanpatel
gunjanpatel / jdatabase.md
Last active November 14, 2022 12:26
Write subquery in Joomla 3 using JDatabase method.

Here is an example of how to write subquery in Joomla! 3 using JDatabase method.

<?php
// Initialize variables.
$db       = JFactory::getDbo();
$subQuery = $db->getQuery(true);
$query    = $db->getQuery(true);

// Create the base subQuery select statement.
@gunjanpatel
gunjanpatel / phing.md
Last active August 29, 2015 13:56
phing setup in sublime text 2

Setup Phing on Sublime Text 2

  • We will create a custom build system from Tools > Build System > New Build System:
{
    "cmd": ["phing", "-f" , "$file"],
    "file_regex": "^(...*?):([0-9]*):?([0-9]*)",
    "selector": "source.php",
 "windows":
[color]
status = auto
diff = auto
branch = auto
interactive = auto
ui = true
[alias]
amend = !"git commit --amend -C HEAD"
st = status
ci = commit
@gunjanpatel
gunjanpatel / getshoppergroup.php
Last active August 29, 2015 14:06
get redshop shopper group from joomla user id
<?php
require_once JPATH_SITE . '/components/com_redshop/helpers/user.php';
$rsUserhelper = new rsUserhelper;
$shopperGroupId = (int) $rsUserhelper->getShopperGroup(JFactory::getUser()->id);
$shopperGroup = $rsUserhelper->getShoppergroupData(JFactory::getUser()->id);