<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: Woocommerce additional image tab</title>
		<link>http://www.kriesi.at/support/topic/woocommerce-additional-image-tab</link>
		<description>Support Forum - Topic: Woocommerce additional image tab</description>
		<language>en-US</language>
		<pubDate>Sun, 19 May 2013 07:04:43 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/woocommerce-additional-image-tab" rel="self" type="application/rss+xml" />

		<item>
			<title>jorisvh on "Woocommerce additional image tab"</title>
			<link>http://www.kriesi.at/support/topic/woocommerce-additional-image-tab#post-48472</link>
			<pubDate>Tue, 27 Mar 2012 08:22:54 +0000</pubDate>
			<dc:creator>jorisvh</dc:creator>
			<guid isPermaLink="false">48472@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thank you so much!!! This is great! I really appreciate it.&#60;/p&#62;
&#60;p&#62;Martijn
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ismael on "Woocommerce additional image tab"</title>
			<link>http://www.kriesi.at/support/topic/woocommerce-additional-image-tab#post-48322</link>
			<pubDate>Mon, 26 Mar 2012 15:16:07 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">48322@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;This is what you have to do.&#60;/p&#62;
&#60;p&#62;1.) First look for woocommerce-hooks.php and add this line in the /* Product page tabs */&#60;/p&#62;
&#60;pre&#62;add_action( 'woocommerce_product_tabs', 'woocommerce_product_upsells_tab', 50 );
add_action( 'woocommerce_product_tab_panels', 'woocommerce_product_upsells_panel', 50 );&#60;/pre&#62;
&#60;p&#62;2.) Go to woocommerce-template.php look for /* Product page tabs then add this line&#60;/p&#62;
&#60;pre&#62;if (!function_exists('woocommerce_upsell_display')) {
	function woocommerce_product_upsells_tab() {
		woocommerce_get_template('single-product/tabs/tab-upsells.php', false);
	}
}&#60;/pre&#62;
&#60;p&#62;3.) Again, in the woocommerce-template.php, look for /* Product page tab panels */ add this line.&#60;/p&#62;
&#60;pre&#62;if (!function_exists('woocommerce_upsell_display')) {
	function woocommerce_product_upsells_panel() {
		woocommerce_get_template('single-product/tabs/upsells.php', false);
	}
}&#60;/pre&#62;
&#60;p&#62;4.) Go to templates &#38;gt; single-product &#38;gt; tabs and create a file called tabs-upsells.php and insert this code.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;li&#38;gt;&#38;lt;a href=&#38;quot;#tab-upsells&#38;quot;&#38;gt;&#38;lt;?php _e(&#38;#39;Upsells&#38;#39;, &#38;#39;woocommerce&#38;#39;); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;5.) Again in tabs folder create a file called upsells.php and insert this code.&#60;/p&#62;
&#60;pre&#62;&#38;lt;?php
/**
 * Upsell Tab
 */

global $woocommerce, $post;
?&#38;gt;
&#38;lt;div class=&#34;panel&#34; id=&#34;tab-upsells&#34;&#38;gt;
	&#38;lt;?php
/**
 * Up-sells
 */

global $product;
$upsells = $product-&#38;gt;get_upsells();
if (sizeof($upsells)==0) return;
?&#38;gt;
	&#38;lt;h2&#38;gt;&#38;lt;?php _e('You may also like…', 'woocommerce') ?&#38;gt;&#38;lt;/h2&#38;gt;
	&#38;lt;?php
	$args = array(
		'post_type'	=&#38;gt; 'product',
		'ignore_sticky_posts'	=&#38;gt; 1,
		'posts_per_page' =&#38;gt; 4,
		'orderby' =&#38;gt; 'rand',
		'post__in' =&#38;gt; $upsells
	);
	query_posts($args);
	woocommerce_get_template_part( 'loop', 'shop' );
	wp_reset_query();
	?&#38;gt;

&#38;lt;/div&#38;gt;&#60;/pre&#62;
&#60;p&#62;6.) You may now see the up-sell products on an upsells tab. You may want to remove the up-sells below the description tab to avoid redundancy.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jorisvh on "Woocommerce additional image tab"</title>
			<link>http://www.kriesi.at/support/topic/woocommerce-additional-image-tab#post-48277</link>
			<pubDate>Mon, 26 Mar 2012 09:50:39 +0000</pubDate>
			<dc:creator>jorisvh</dc:creator>
			<guid isPermaLink="false">48277@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hello Devin,&#60;/p&#62;
&#60;p&#62;Ok but how can I do that exactly? I am no PHP programmer. THanks a lot!!!!!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Devin on "Woocommerce additional image tab"</title>
			<link>http://www.kriesi.at/support/topic/woocommerce-additional-image-tab#post-47815</link>
			<pubDate>Thu, 22 Mar 2012 18:19:46 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">47815@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi jorisvh,&#60;/p&#62;
&#60;p&#62;You would need to modify the WooCommerce template for single items. Its located in your plugins&#38;gt;woocommerce&#38;gt;templates&#38;gt;single-product.php with calls to the single-product folder and the various files in there as well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jorisvh on "Woocommerce additional image tab"</title>
			<link>http://www.kriesi.at/support/topic/woocommerce-additional-image-tab#post-47769</link>
			<pubDate>Thu, 22 Mar 2012 15:16:19 +0000</pubDate>
			<dc:creator>jorisvh</dc:creator>
			<guid isPermaLink="false">47769@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Another question. In the product data I have a up-sells product. In other words that is an additional iamge (thanks Kriesli). But the image is under the description text. I want the up sells as a additional image tab. So to see the image you have to click on a tab. Is that possible?&#60;/p&#62;
&#60;p&#62;THanks a lot,&#60;/p&#62;
&#60;p&#62;Martijn
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
