{"id":4031,"date":"2008-11-14T13:30:18","date_gmt":"2008-11-14T13:30:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/oscommerce\/"},"modified":"2008-11-17T15:11:14","modified_gmt":"2008-11-17T15:11:14","slug":"oscommerce","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/oscommerce\/","author":1312019,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"2.6.3","requires":"2.5","requires_php":"","requires_plugins":"","header_name":"osCommerce","header_author":"Tal Orlik","header_description":"","assets_banners_color":"","last_updated":"2008-11-17 15:11:14","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.none.com","header_plugin_uri":"http:\/\/localhost\/wordpress\/wp-cpntent\/plugins\/index.php","header_author_uri":"http:\/\/everything-about-everything-else.blogspot.com\/2008\/11\/oscommerce-pulginwidget-for-wordpress.html","rating":0,"author_block_rating":0,"active_installs":0,"downloads":9818,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-4.jpg":{"filename":"screenshot-4.jpg","revision":"1566824","resolution":"4","location":"plugin","width":1440,"height":900},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1566824","resolution":"2","location":"plugin","width":1436,"height":900},"screenshot-3.jpg":{"filename":"screenshot-3.jpg","revision":"1566824","resolution":"3","location":"plugin","width":1440,"height":900},"screenshot-6.jpg":{"filename":"screenshot-6.jpg","revision":"1566824","resolution":"6","location":"plugin","width":1440,"height":900},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1566824","resolution":"1","location":"plugin","width":1440,"height":900},"screenshot-5.jpg":{"filename":"screenshot-5.jpg","revision":"1566824","resolution":"5","location":"plugin","width":1440,"height":900}},"screenshots":{"1":"osCommerce Admin -&gt; Listing","2":"osCommerce Admin -&gt; Add Page","3":"osCommerce Admin -&gt; Edit Page","4":"osCommerce Widget Options","5":"osCommerce Page Management","6":"osCommerce Front-&gt; Widget (Shop\/Category listing) + Product Page"}},"plugin_section":[],"plugin_tags":[83,15647,3045,168,162],"plugin_category":[43],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-4031","plugin","type-plugin","status-closed","hentry","plugin_tags-admin","plugin_tags-oscommerce","plugin_tags-shopping-cart","plugin_tags-sidebar","plugin_tags-widget","plugin_category-customization","plugin_committers-talimoon"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/oscommerce.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/oscommerce\/trunk\/screenshot-1.jpg?rev=1566824","caption":"osCommerce Admin -&gt; Listing"},{"src":"https:\/\/ps.w.org\/oscommerce\/trunk\/screenshot-2.jpg?rev=1566824","caption":"osCommerce Admin -&gt; Add Page"},{"src":"https:\/\/ps.w.org\/oscommerce\/trunk\/screenshot-3.jpg?rev=1566824","caption":"osCommerce Admin -&gt; Edit Page"},{"src":"https:\/\/ps.w.org\/oscommerce\/trunk\/screenshot-4.jpg?rev=1566824","caption":"osCommerce Widget Options"},{"src":"https:\/\/ps.w.org\/oscommerce\/trunk\/screenshot-5.jpg?rev=1566824","caption":"osCommerce Page Management"},{"src":"https:\/\/ps.w.org\/oscommerce\/trunk\/screenshot-6.jpg?rev=1566824","caption":"osCommerce Front-&gt; Widget (Shop\/Category listing) + Product Page"}],"raw_content":"<!--section=description-->\n<p>This pulgin\/widget enable you to pull the category and product listing from you osCommerce site.\nOnce activated (follow instructions on installation tab) you get a new menu item in your administration section called 'osCommerce'. You'll\nthen be able to add multiple 'shops', edit and delete them. After you add at least one shop the front end widget uses that information to display\nthe categories from your osCommerce shop. Once you click the shop name that you've provided it'll display the categories available.\nOnce any category is clicked on it'll display the products in that category in the product page that you've created (see installation instructions).\nOn the product page when you click the 'buy now' button itll open your osCommerce shop in the checkout_shipping.php page with\nthe product already added in your shpping cart. If you leave that window open and continue to click 'buy now' on other products on your\nWordpress site you'll be able to see them adding on your cart in the osCommerce window.\nThe plugin uses hard coded 'language_id', 'country_id', 'zone_id', 'country_code', (English = 1, South Africa = 193, Zone = (none), Code = 'ZAR')\nfor the product prices hence you'll need to do a search and replace on those values and put the ones you wish to use. Those values are taken directly\nfrom your osCommerce installation from the configuration table in the DB.\nThe sql statements are taken directly from oscommerce to produce the same results with the exception of minor ammendments.\nI didn't take this plugin\/widget further for the mere fact that a new OO version of osCommerce is imminent and that for sure will\nbring through much better ways to communicate with OSC and pull information from it.<\/p>\n\n<h3>Directory Structure and File Listing<\/h3>\n\n<p>osCommerce (root)<\/p>\n\n<pre><code>classes\n    osc_categories.class.php (for category listing)\n    osc_currencies.class.php (for product price calculation like in osc)\n    osc_db.class.php     (for db connection as well as extended table and field information)\n    osc_management.class.php (Listing, Add, Edit, Delete of 'shops')\n    osc_products.class.php   (for product listing)\n    osc_widget.class.php     (widget management)\ncss\n    osc_front.css\n    osc_management.css\nimages\n    button_buy_now.gif\n    cross.png\n    no_image.gif\njs\n    java_script.js\n\nosCommerce.php   (main file)\nreadme.txt\nscreenshot-1.jpg\nscreenshot-2.jpg\nscreenshot-3.jpg\nscreenshot-4.jpg\nscreenshot-5.jpg\nscreenshot-6.jpg&lt;h3&gt;PROBLEMS&lt;\/h3&gt;I was unable to implement pagination on the product page in the front end. I got it to displays\n<\/code><\/pre>\n\n<p>the correct paging links however doesn't execute the paging once clicked on.\nim not sure if im just missing something small like a hook or something. The code is in\n(commented out) for all to see maybe someone can help fix it up and let me know.<\/p>\n\n<h3>Special Thanks<\/h3>\n\n<p>I'd like to thank 'Luke Howell' who wrote the 'Event Calendar' plugin\/widget\nURL: http:\/\/www.lukehowell.com\/events-calendar\/ OR http:\/\/wordpress.org\/extend\/plugins\/events-calendar\/\nwho unknowingly helped me in putting together this plugin\/widget. I followed his structure and code and based mine on it.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the osCommerce directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Once activated use the osCommerce admin section to add your shops' details as per the fields available (They are self explanetory).<\/li>\n<li>In 'Design' -&gt; 'Widgets' add the widget to your sidebar (Only after step 3 will you see anything displaying in the widget).\nThe recommended placement is just under your wordpress category listing.<\/li>\n<li>Create a page call it what you wish e.g. 'Products' and add the following to its content section: [[oscProductListing]]<\/li>\n<li>Publish the page and now you're ready to display product listings.<\/li>\n<\/ol>\n\n<p>And you're done!!!<\/p>\n\n<pre><code>    When updating you will need to deactivate and reactivate the plugin.\n<\/code><\/pre>\n\n<!--section=faq-->\n<ol>\n<li>How do i change the currency specification for my country?<\/li>\n<\/ol>\n\n<p>You chenge it by searching for the following values and replacing them with the your ones\ntaken from your osCommerce configuration:<\/p>\n\n<p>'language_id', 'country_id', 'zone_id', 'country_code', (English = 1, South Africa = 193, Zone = (none), Code = 'ZAR')<\/p>","raw_excerpt":"This plugin pulls the category and product listing from your osCommerce site.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/4031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=4031"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/talimoon"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=4031"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=4031"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=4031"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=4031"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=4031"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=4031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}