{"id":111,"date":"2008-09-20T13:32:39","date_gmt":"2008-09-20T22:32:39","guid":{"rendered":"http:\/\/www.insidethe.com\/blog\/?p=111"},"modified":"2008-09-20T13:32:39","modified_gmt":"2008-09-20T22:32:39","slug":"tips-to-upgrade-and-maintain-x-cart-php-shopping-cart","status":"publish","type":"post","link":"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/","title":{"rendered":"Tips to upgrade and maintain X-Cart PHP shopping cart"},"content":{"rendered":"<p>During a recent shopping cart upgrade these three tips came to mind. Mostly when I failed to follow my own advice. The tips are in regards to manually patching files that have been customized.<\/p>\n<ol>\n<li>Comment, comment, comment. If you make a change to a PHP file or template that was supplied by the vendor make a comment. Know what line the change started and where the change ends. When manually patching the file the comments will keep you from having to guess if a change is a patch from the vendor or a customization you made.<\/li>\n<li>When making a customization, comment out the original code block using block comments (not line comments) and make your changes to a copy of the original code block. Eventually when the original code gets patched or updated by the vendor you will still have a reference to the original code and a utility like WinMerge will be able to help match up the changes to the original code.<\/li>\n<li>For files that need manual patching use a utility such as <a href=\"http:\/\/www.winmerge.org\/\" target=\"_blank\">WinMerge<\/a> to find and resolve conflicts. If you make ample comments and left original code blocks in place WinMerge will better be able to help you get the file patches and your customizations back in place.<\/li>\n<\/ol>\n<p>Good luck on patching your custom cart!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>During a recent shopping cart upgrade these three tips came to mind. Mostly when I failed to follow my own advice. The tips are in regards to manually patching files that have been customized. Comment, comment, comment. If you make a change to a PHP file or template that was supplied by the vendor make [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[11],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Tips to upgrade and maintain X-Cart PHP shopping cart - Insidethe.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tips to upgrade and maintain X-Cart PHP shopping cart - Insidethe.com\" \/>\n<meta property=\"og:description\" content=\"During a recent shopping cart upgrade these three tips came to mind. Mostly when I failed to follow my own advice. The tips are in regards to manually patching files that have been customized. Comment, comment, comment. If you make a change to a PHP file or template that was supplied by the vendor make [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/\" \/>\n<meta property=\"og:site_name\" content=\"Insidethe.com\" \/>\n<meta property=\"article:published_time\" content=\"2008-09-20T22:32:39+00:00\" \/>\n<meta name=\"author\" content=\"Jared\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jared\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/\",\"url\":\"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/\",\"name\":\"Tips to upgrade and maintain X-Cart PHP shopping cart - Insidethe.com\",\"isPartOf\":{\"@id\":\"https:\/\/insidethe.com\/blog\/#website\"},\"datePublished\":\"2008-09-20T22:32:39+00:00\",\"dateModified\":\"2008-09-20T22:32:39+00:00\",\"author\":{\"@id\":\"https:\/\/insidethe.com\/blog\/#\/schema\/person\/c18d4380c3bf0a5b931cc79af34e61cd\"},\"breadcrumb\":{\"@id\":\"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/insidethe.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tips to upgrade and maintain X-Cart PHP shopping cart\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/insidethe.com\/blog\/#website\",\"url\":\"https:\/\/insidethe.com\/blog\/\",\"name\":\"Insidethe.com\",\"description\":\"It is my space, but better than myspace\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/insidethe.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/insidethe.com\/blog\/#\/schema\/person\/c18d4380c3bf0a5b931cc79af34e61cd\",\"name\":\"Jared\",\"url\":\"https:\/\/insidethe.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tips to upgrade and maintain X-Cart PHP shopping cart - Insidethe.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/","og_locale":"en_US","og_type":"article","og_title":"Tips to upgrade and maintain X-Cart PHP shopping cart - Insidethe.com","og_description":"During a recent shopping cart upgrade these three tips came to mind. Mostly when I failed to follow my own advice. The tips are in regards to manually patching files that have been customized. Comment, comment, comment. If you make a change to a PHP file or template that was supplied by the vendor make [&hellip;]","og_url":"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/","og_site_name":"Insidethe.com","article_published_time":"2008-09-20T22:32:39+00:00","author":"Jared","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jared","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/","url":"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/","name":"Tips to upgrade and maintain X-Cart PHP shopping cart - Insidethe.com","isPartOf":{"@id":"https:\/\/insidethe.com\/blog\/#website"},"datePublished":"2008-09-20T22:32:39+00:00","dateModified":"2008-09-20T22:32:39+00:00","author":{"@id":"https:\/\/insidethe.com\/blog\/#\/schema\/person\/c18d4380c3bf0a5b931cc79af34e61cd"},"breadcrumb":{"@id":"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/insidethe.com\/blog\/2008\/09\/tips-to-upgrade-and-maintain-x-cart-php-shopping-cart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/insidethe.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Tips to upgrade and maintain X-Cart PHP shopping cart"}]},{"@type":"WebSite","@id":"https:\/\/insidethe.com\/blog\/#website","url":"https:\/\/insidethe.com\/blog\/","name":"Insidethe.com","description":"It is my space, but better than myspace","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/insidethe.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/insidethe.com\/blog\/#\/schema\/person\/c18d4380c3bf0a5b931cc79af34e61cd","name":"Jared","url":"https:\/\/insidethe.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts\/111"}],"collection":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/comments?post=111"}],"version-history":[{"count":1,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts\/111\/revisions"}],"predecessor-version":[{"id":112,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts\/111\/revisions\/112"}],"wp:attachment":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/media?parent=111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/categories?post=111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/tags?post=111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}