<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RB Music - Uncovered &#38; Rediscovered Hits &#187; JShop</title>
	<atom:link href="http://www.rb-music.co.uk/tag/jshop/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rb-music.co.uk</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 27 Oct 2011 16:13:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Jshop custom sql within a template</title>
		<link>http://www.rb-music.co.uk/2009/04/20/jshop-custom-sql-within-a-template/</link>
		<comments>http://www.rb-music.co.uk/2009/04/20/jshop-custom-sql-within-a-template/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 21:01:30 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[custom sql query]]></category>
		<category><![CDATA[JShop]]></category>
		<category><![CDATA[Jshop custom template]]></category>
		<category><![CDATA[templating for jshop]]></category>

		<guid isPermaLink="false">http://www.rb-music.co.uk/?p=329</guid>
		<description><![CDATA[It&#8217;s been along while since I posted anything tech related.. mainly down to it being low down my pecking order of interests right now though its still good fun. Like today I wanted to do my own thing within a jshop template&#8230; add my own template variables from a custom sql query. What I wanted [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been along while since I posted anything tech related.. mainly down to it being low down my pecking order of interests right now though its still good fun. Like today I wanted to do my own thing within a jshop template&#8230; add my own template variables from a custom sql query. What I wanted to do was add a hidden section and then add sections within there to hold some banner images thus allowing content management by the client and the section wouldn&#8217;t be included in the main loop. Here&#8217;s how&#8230;</p>
<p><span id="more-329"></span></p>
<h2>Add some custom php in the top of your template&#8230;</h2>
<div class="pre">
<code><br />
&lt;?php<br />
		global $dbA;<br />
		$result =  $dbA->retrieveAllRecordsFromQuery("select * from jss_sections WHERE parent = 23");<br />
		$this->theVariables["sectionRotate"] = $result;<br />
?&gt;<br />
</code>
</div>
<p>Line 2 is where you do your custom query to pull what ever you fancy from the database</p>
<p>Line 3 include the returned array into a custom variable.</p>
<h2>Do a loop through your custom variable and output however you wish!</h2>
<div class="pre">
<code><br />
&lt;#loop:sectionRotate#&gt;<br />
&lt;div class="button"&gt;<br />
&lt;img src="{sectionRotate.thumbnail}" /&gt;<br />
&lt;/div&gt;<br />
&lt;#/loop#&gt;<br />
</code>
</div>
<p>If you want to see the whole array to see what your working with obviously you can use;</p>
<div class="pre">
<code><br />
&lt;?php<br />
print_r({*sectionRotate});<br />
?&gt;<br />
</code>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.rb-music.co.uk/2009/04/20/jshop-custom-sql-within-a-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JShop Review</title>
		<link>http://www.rb-music.co.uk/2008/10/31/jshop-review/</link>
		<comments>http://www.rb-music.co.uk/2008/10/31/jshop-review/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 23:16:13 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[Software/Tools]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[Ecommerce]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[JShop]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.rb-music.co.uk/?p=86</guid>
		<description><![CDATA[Ecommerce is something I haven’t really covered in any huge depth before but along came the opportunity at work to get stuck into making a shop online. At my old company we were about to start a site using JShop but the time came to move on. So a few weeks into my new job [...]]]></description>
			<content:encoded><![CDATA[<p>Ecommerce is something I haven’t really covered in any huge depth before but along came the opportunity at work to get stuck into making a shop online. At my old company we were about to start a site using JShop but the time came to move on. So a few weeks into my new job along came a project – an ecommerce site in JShop.</p>
<p><span id="more-86"></span></p>
<p>From my initial introduction into the backend of the system it seemed a little daunting but once you get used to where everything is, it all becomes a lot simpler – it also helps if you get yourself a copy of manual to flick through great little reference throughout the project, also if you have someone who has used the system before (cheers Pete) will help. </p>
<p>Most things you could possibly want to customize are included such as custom fields, extra fields for products/sections etc also you can turn desired functionality on and off with a flick of a switch in the backend – shipping type, tax etc. This makes for minimal need for hacks to both the core code and database which makes the implementation of JShop simple and easy. </p>
<p>Saying that if you do require to add code this is straightforward as long as you know your stuff (php/javascript), the code is clearly laid out so when I did need to make a simple tweak there wasn’t too much pain involved. Although I would advise not hacking too much as one it isn’t supported by Jshop &#8211; two it could hinder any future updates – which are free once you have purchased the license. I guess with custom code its knowing when you have added too much&#8230; always comment what’s been added you can always remove for an update and add back in.</p>
<p>Once you have mastered the backend functionality the only thing left is the templating system which is one of the best things I have worked with easy enough for a non developer to understand. Making loops/if else simple and adding anything returned from the database as easy as {customer.name} which allows you to create any look and feel you could possibly want. This is fairly laborious task but taking each page one at a time and adding your own styles the site soon comes together it would take a considerable amount of time to knock up each template from scratch.</p>
<p>I’m yet to decide if to start fresh css as wise as it doesn’t make the best use of it, a lot of time was spent adjusting font sizes, colours, sizes but for speed adjusting the two css files works just fine – the css is never going to be 100% but it works just fine&#8230; </p>
<p>If you do purchase and need any support the forums are fairly handy but the email support is even better I emailed with a fairly complex problem and the guys on there support team knocked up a template in order for me to allow me to achieve what I needed to… worth every penny!!</p>
<p>To sum up I would highly recommend this for any kind of shop you could want, a lot of thought has gone into what a shop might what to do and this is all made available – out of the box. This then allows you to spend your time adjusting templates to your own look and feel. The checkout process is smooth and clear it gives the customer complete control over there orders… Within the system I don’t think there is anything else you could possibly want to add unless you had really specialist processes involved in your order process if you want a shop online this gives you exactly that I don’t think you could want more – unless you are picky with minor details. The likes of play/amazon aren’t going to offer much more functionality wise (related products/reviews etc) to that what Jshop is going to offer, even if the processes might be slightly different.</p>
<p>To create something similar would take at least 5+ months development time perhaps…. With JShop out of the box to live site 15/20 days dev time the next one would be quicker. </p>
<p>You do the maths….</p>
<p><a href="http://www.jshop.co.uk/">Check JShop out</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rb-music.co.uk/2008/10/31/jshop-review/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

