Monday, 20 February 2012

Magento: Add product using a link

Magento: Add product using a link

/checkout/cart/add?product=1&qty=1


click here for the original website

Thursday, 2 February 2012

Magento: Country Codes

Magento: Country Codes


AF Afghanistan AF - AFG AFG
AL Albania AL - ALB ALB
DZ Algeria DZ - DZA DZA
AS American Samoa AS - ASM ASM
AD Andorra AD - AND AND
AO Angola AO - AGO AGO
AI Anguilla AI - AIA AIA
AQ Antarctica AQ - ATA ATA
AG Antigua and Barbuda AG - ATG ATG
AR Argentina AR - ARG ARG
AM Armenia AM - ARM ARM
AW Aruba AW - ABW ABW
AU Australia AU - AUS AUS
AT Austria AT - AUT AUT
AZ Azerbaijan AZ - AZE AZE
BS Bahamas BS - BHS BHS
BH Bahrain BH - BHR BHR
BD Bangladesh BD - BGD BGD
BB Barbados BB - BRB BRB
BY Belarus BY - BLR BLR
BE Belgium BE - BEL BEL
BZ Belize BZ - BLZ BLZ
BJ Benin BJ - BEN BEN
BM Bermuda BM - BMU BMU
BT Bhutan BT - BTN BTN
BO Bolivia BO - BOL BOL
BA Bosnia and Herzegovi BA - BIH BIH
BW Botswana BW - BWA BWA
BV Bouvet Island BV - BVT BVT
BR Brazil BR - BRA BRA
IO British Indian Ocean IO - IOT IOT
VG British Virgin Islan VG - VGB VGB
BN Brunei BN - BRN BRN
BG Bulgaria BG - BGR BGR
BF Burkina Faso BF - BFA BFA
BI Burundi BI - BDI BDI
KH Cambodia KH - KHM KHM
CM Cameroon CM - CMR CMR
CA Canada CA - CAN CAN
CV Cape Verde CV - CPV CPV
KY Cayman Islands KY - CYM CYM
CF Central African Repu CF - CAF CAF
TD Chad TD - TCD TCD
CL Chile CL - CHL CHL
CN China CN - CHN CHN
CX Christmas Island CX - CXR CXR
CC Cocos [Keeling] Isla CC - CCK CCK
CO Colombia CO - COL COL
KM Comoros KM - COM COM
CG Congo - Brazzaville CG - COG COG
CD Congo - Kinshasa CD - COD COD
CK Cook Islands CK - COK COK
CR Costa Rica CR - CRI CRI
HR Croatia HR - HRV HRV
CU Cuba CU - CUB CUB
CY Cyprus CY - CYP CYP
CZ Czech Republic CZ - CZE CZE
CI Côte d’Ivoire CI - CIV CIV
DK Denmark DK - DNK DNK
DJ Djibouti DJ - DJI DJI
DM Dominica DM - DMA DMA
DO Dominican Republic DO - DOM DOM
EC Ecuador EC - ECU ECU
EG Egypt EG - EGY EGY
SV El Salvador SV - SLV SLV
GQ Equatorial Guinea GQ - GNQ GNQ
ER Eritrea ER - ERI ERI
EE Estonia EE - EST EST
ET Ethiopia ET - ETH ETH
FK Falkland Islands FK - FLK FLK
FO Faroe Islands FO - FRO FRO
FJ Fiji FJ - FJI FJI
FI Finland FI - FIN FIN
FR France FR - FRA FRA
GF French Guiana GF - GUF GUF
PF French Polynesia PF - PYF PYF
TF French Southern Terr TF - ATF ATF
GA Gabon GA - GAB GAB
GM Gambia GM - GMB GMB
GE Georgia GE - GEO GEO
DE Germany DE - DEU DEU
GH Ghana GH - GHA GHA
GI Gibraltar GI - GIB GIB
GR Greece GR - GRC GRC
GL Greenland GL - GRL GRL
GD Grenada GD - GRD GRD
GP Guadeloupe GP - GLP GLP
GU Guam GU - GUM GUM
GT Guatemala GT - GTM GTM
GG Guernsey GG - GGY GGY
GN Guinea GN - GIN GIN
GW Guinea-Bissau GW - GNB GNB
GY Guyana GY - GUY GUY
HT Haiti HT - HTI HTI
HM Heard Island and McD HM - HMD HMD
HN Honduras HN - HND HND
HK Hong Kong SAR China HK - HKG HKG
HU Hungary HU - HUN HUN
IS Iceland IS - ISL ISL
IN India IN - IND IND
ID Indonesia ID - IDN IDN
IR Iran IR - IRN IRN
IQ Iraq IQ - IRQ IRQ
IE Ireland IE - IRL IRL
IM Isle of Man IM - IMN IMN
IL Israel IL - ISR ISR
IT Italy IT - ITA ITA
JM Jamaica JM - JAM JAM
JP Japan JP - JPN JPN
JE Jersey JE - JEY JEY
JO Jordan JO - JOR JOR
KZ Kazakhstan KZ - KAZ KAZ
KE Kenya KE - KEN KEN
KI Kiribati KI - KIR KIR
KW Kuwait KW - KWT KWT
KG Kyrgyzstan KG - KGZ KGZ
LA Laos LA - LAO LAO
LV Latvia LV - LVA LVA
LB Lebanon LB - LBN LBN
LS Lesotho LS - LSO LSO
LR Liberia LR - LBR LBR
LY Libya LY - LBY LBY
LI Liechtenstein LI - LIE LIE
LT Lithuania LT - LTU LTU
LU Luxembourg LU - LUX LUX
MO Macau SAR China MO - MAC MAC
MK Macedonia MK - MKD MKD
MG Madagascar MG - MDG MDG
MW Malawi MW - MWI MWI
MY Malaysia MY - MYS MYS
MV Maldives MV - MDV MDV
ML Mali ML - MLI MLI
MT Malta MT - MLT MLT
MH Marshall Islands MH - MHL MHL
MQ Martinique MQ - MTQ MTQ
MR Mauritania MR - MRT MRT
MU Mauritius MU - MUS MUS
YT Mayotte YT - MYT MYT
MX Mexico MX - MEX MEX
FM Micronesia FM - FSM FSM
MD Moldova MD - MDA MDA
MC Monaco MC - MCO MCO
MN Mongolia MN - MNG MNG
ME Montenegro ME - MNE MNE
MS Montserrat MS - MSR MSR
MA Morocco MA - MAR MAR
MZ Mozambique MZ - MOZ MOZ
MM Myanmar [Burma] MM - MMR MMR
NA Namibia NA - NAM NAM
NR Nauru NR - NRU NRU
NP Nepal NP - NPL NPL
NL Netherlands NL - NLD NLD
AN Netherlands Antilles AN - ANT ANT
NC New Caledonia NC - NCL NCL
NZ New Zealand NZ - NZL NZL
NI Nicaragua NI - NIC NIC
NE Niger NE - NER NER
NG Nigeria NG - NGA NGA
NU Niue NU - NIU NIU
NF Norfolk Island NF - NFK NFK
KP North Korea KP - PRK PRK
MP Northern Mariana Isl MP - MNP MNP
NO Norway NO - NOR NOR
OM Oman OM - OMN OMN
PK Pakistan PK - PAK PAK
PW Palau PW - PLW PLW
PS Palestinian Territor PS - PSE PSE
PA Panama PA - PAN PAN
PG Papua New Guinea PG - PNG PNG
PY Paraguay PY - PRY PRY
PE Peru PE - PER PER
PH Philippines PH - PHL PHL
PN Pitcairn Islands PN - PCN PCN
PL Poland PL - POL POL
PT Portugal PT - PRT PRT
PR Puerto Rico PR - PRI PRI
QA Qatar QA - QAT QAT
RO Romania RO - ROU ROU
RU Russia RU - RUS RUS
RW Rwanda RW - RWA RWA
RE Réunion RE - REU REU
BL Saint Barthélemy BL - BLM BLM
SH Saint Helena SH - SHN SHN
KN Saint Kitts and Nevi KN - KNA KNA
LC Saint Lucia LC - LCA LCA
MF Saint Martin MF - MAF MAF
PM Saint Pierre and Miq PM - SPM SPM
VC Saint Vincent and th VC - VCT VCT
WS Samoa WS - WSM WSM
SM San Marino SM - SMR SMR
SA Saudi Arabia SA - SAU SAU
SN Senegal SN - SEN SEN
RS Serbia RS - SRB SRB
SC Seychelles SC - SYC SYC
SL Sierra Leone SL - SLE SLE
SG Singapore SG - SGP SGP
SK Slovakia SK - SVK SVK
SI Slovenia SI - SVN SVN
SB Solomon Islands SB - SLB SLB
SO Somalia SO - SOM SOM
ZA South Africa ZA - ZAF ZAF
GS South Georgia and th GS - SGS SGS
KR South Korea KR - KOR KOR
ES Spain ES - ESP ESP
LK Sri Lanka LK - LKA LKA
SD Sudan SD - SDN SDN
SR Suriname SR - SUR SUR
SJ Svalbard and Jan May SJ - SJM SJM
SZ Swaziland SZ - SWZ SWZ
SE Sweden SE - SWE SWE
CH Switzerland CH - CHE CHE
SY Syria SY - SYR SYR
ST São Tomé and Príncip ST - STP STP
TW Taiwan TW - TWN TWN
TJ Tajikistan TJ - TJK TJK
TZ Tanzania TZ - TZA TZA
TH Thailand TH - THA THA
TL Timor-Leste TL - TLS TLS
TG Togo TG - TGO TGO
TK Tokelau TK - TKL TKL
TO Tonga TO - TON TON
TT Trinidad and Tobago TT - TTO TTO
TN Tunisia TN - TUN TUN
TR Turkey TR - TUR TUR
TM Turkmenistan TM - TKM TKM
TC Turks and Caicos Isl TC - TCA TCA
TV Tuvalu TV - TUV TUV
UM U.S. Minor Outlying  UM - UMI UMI
VI U.S. Virgin Islands VI - VIR VIR
UG Uganda UG - UGA UGA
UA Ukraine UA - UKR UKR
AE United Arab Emirates AE - ARE ARE
GB United Kingdom GB - GBR GBR
US United States US - USA USA
UY Uruguay UY - URY URY
UZ Uzbekistan UZ - UZB UZB
VU Vanuatu VU - VUT VUT
VA Vatican City VA - VAT VAT
VE Venezuela VE - VEN VEN
VN Vietnam VN - VNM VNM
WF Wallis and Futuna WF - WLF WLF
EH Western Sahara EH - ESH ESH
YE Yemen YE - YEM YEM
ZM Zambia ZM - ZMB ZMB
ZW Zimbabwe ZW - ZWE ZWE
AX Åland Islands AX - ALA ALA

Tuesday, 31 January 2012

Monday, 16 January 2012

CSS: how to click though objects

CSS: how to click though objects

pointer-events:none;


click here for the original website

CSS: css3 with IE

CSS: css3 with IE

Just add a link to the PIE.htc in the css style that requires it and it should work in IE7 and IE8.

Edit.
Make sure to add position relative inorder to get it to work.

click here for the original website

Silverstripe: Math Spam Protection

Silverstripe: Math Spam Protection

Go to the link below to get a hold of it and some instructions.


click here for the original website

Thursday, 12 January 2012

SilverStripe: Get the contents of one page to appear on another

SilverStripe: Get the contents of one page to appear on another

Use snippet of code:
<div class="typography"><h1><% control Title %>$XML<% end_control %></h1>
<% control Page(disclaimer) %>$Content<% end_control %></div>


click here for the original website

Wednesday, 11 January 2012

Magento: adding the contents of a category to a page

Magento: adding the contents of a category to a page

If you want to add the contents of a category to a page insert this code:

{{block type="catalog/product_list" column_count="4" category_id="8" template="catalog/product/list.phtml"}}


click here for the original website

Tuesday, 10 January 2012

Magento: if language is

Magento: if language is

Use this bit of code see what the language is

$language_settings = Mage::app()->getStore()->getCode();
$language_settings = strtolower($language_settings);
if ( $language_settings == “default") {
echo “Default = English”;
} elseif ( $language_settings == “french") {
echo “French”;
} elseif ( $language_settings == “german") {
echo “German”;
}

click here for the original website

Monday, 9 January 2012

Magento - Add multiple currencies

Magento - Add multiple currencies

  1. Go to System\Configuration\Currency Setup and select your allowed countries.
  2. Then go to System\Manage Currency Rates and adjust your currency converstion rates. You can also do this by importing the rates from 'Webservicex'.

this is the phrase I googled for: "magento setup multiple currency shop"

click here for the original website