Add sample product and default message when you install thelia

This commit is contained in:
touffies
2013-11-06 19:30:52 +01:00
parent 250cc5adde
commit e262c41987
7 changed files with 805 additions and 753 deletions

View File

@@ -160,7 +160,7 @@ return array (
'%nb Item' => '%nb Item',
'Latest products' => 'Latest products',
'Product Offers' => 'Product Offers',
/*
/*
'The page cannot be found' => 'The page cannot be found',
'What\'s your name?' => 'What\'s your name?',
'So I can get back to you.' => 'So I can get back to you.',
@@ -198,7 +198,18 @@ return array (
'Your current password does not match.' => 'Your current password does not match.',
'Password confirmation is not the same as password field.' => 'Password confirmation is not the same as password field.',
'I would like to receive the newsletter or the latest news.' => 'I would like to receive the newsletter or the latest news.',
*/
*/
// Product Empty
'Product Empty Title' => 'Welcome',
'Product Empty Message' => 'It\'s really quick to add a product.
<ol>
<li>Check <strong>NEW</strong> under the details tab if you want to see your product in the latest product section.</li>
<li>Check <strong>SALE</strong> under the details tab if you want to see your product in the offer product section.</li>
</ol>',
'Product Empty Button' => 'Add my first product',
'Demo product title' => 'Demo product title',
'Demo product description' => 'Demo product description',
// Placeholder
'Placeholder firstname' => 'John',
'Placeholder lastname' => 'Doe',
'Placeholder email' => 'johndoe@domain.com',

View File

@@ -160,7 +160,7 @@ return array (
'%nb Item' => '',
'Latest products' => '',
'Product Offers' => '',
/*
/*
'The page cannot be found' => '',
'What\'s your name?' => '',
'So I can get back to you.' => '',
@@ -198,7 +198,18 @@ return array (
'Your current password does not match.' => '',
'Password confirmation is not the same as password field.' => '',
'I would like to receive the newsletter or the latest news.' => '',
*/
*/
// Product Empty
'Product Empty Title' => 'Welcome',
'Product Empty Message' => 'It\'s really quick to add a product.
<ol>
<li>Check <strong>NEW</strong> under the details tab if you want to see your product in the latest product section.</li>
<li>Check <strong>SALE</strong> under the details tab if you want to see your product in the offer product section.</li>
</ol>',
'Product Empty Button' => 'Add my first product',
'Demo product title' => 'Demo product title',
'Demo product description' => 'Demo product description',
// Placeholder
'Placeholder firstname' => '',
'Placeholder lastname' => '',
'Placeholder email' => '',

View File

@@ -200,6 +200,17 @@ return array (
'Password confirmation is not the same as password field.' => '',
'I would like to receive the newsletter or the latest news.' => '',
*/
// Product Empty
'Product Empty Title' => 'Bonjour',
'Product Empty Message' => 'C\'est très simple d\'ajouter un produit dans l\'adminsitration.
<ol>
<li>N\'oubliez pas de sélectionner <strong>NEW</strong> dans l\'onglet Details afin de voir votre produit dans la section des nouveautés.</li>
<li>N\'oubliez pas de sélectionner <strong>SALE</strong> dans l\'onglet Details afin de voir votre produit dans la section des promotions.</li>
</ol>',
'Product Empty Button' => 'Ajouter mon premier produit',
'Demo product title' => 'Example de titre',
'Demo product description' => 'Example de description de produit',
// Placeholder
'Placeholder firstname' => 'Prénom',
'Placeholder lastname' => 'Nom de famille',
'Placeholder email' => 'Adresse e-mail',

View File

@@ -160,7 +160,7 @@ return array (
'%nb Item' => '',
'Latest products' => '',
'Product Offers' => '',
/*
/*
'The page cannot be found' => '',
'What\'s your name?' => '',
'So I can get back to you.' => '',
@@ -198,7 +198,18 @@ return array (
'Your current password does not match.' => '',
'Password confirmation is not the same as password field.' => '',
'I would like to receive the newsletter or the latest news.' => '',
*/
*/
// Product Empty
'Product Empty Title' => 'Welcome',
'Product Empty Message' => 'It\'s really quick to add a product.
<ol>
<li>Check <strong>NEW</strong> under the details tab if you want to see your product in the latest product section.</li>
<li>Check <strong>SALE</strong> under the details tab if you want to see your product in the offer product section.</li>
</ol>',
'Product Empty Button' => 'Add my first product',
'Demo product title' => 'Demo product title',
'Demo product description' => 'Demo product description',
// Placeholder
'Placeholder firstname' => '',
'Placeholder lastname' => '',
'Placeholder email' => '',

View File

@@ -1,19 +0,0 @@
{for $count=1 to 4}
<li class="item">
<article>
<a href="{url path="/admin/catalog"}" tabindex="-1" class="product-image">
{images file='../assets/img/280x196.png'}<img src="{$asset_url}" alt="{intl l="Demo product title"}">{/images}
<span class="mask"></span>
</a>
<a href="{url path="/admin/catalog"}" class="product-info">
<h3 class="name">{intl l="Demo product title"}</h3>
<div class="short-description">{intl l="Demo product description"}</div>
<div class="product-price">
<div class="price-container">
<span class="regular-price"><span class="price">99.99 {currency attr="symbol"}</span></span>
</div>
</div>
</a>
</article><!-- /product -->
</li>
{/for}

View File

@@ -0,0 +1,35 @@
<div class="jumbotron">
<h1>{intl l="Product Empty Title"}</h1>
<p>{intl l="Product Empty Message"}</p>
<p><a href="{url path="/admin"}" class="btn btn-jumbotron btn-lg" role="button">{intl l="Product Empty Button"}</a></p>
</div>
<section id="products-new">
<div class="products-heading">
<h2>{intl l="Latest"}</h2>
</div>
<div class="products-content">
<ul class="products-grid product-col-4">
{for $count=1 to 4}
<li class="item">
<article>
<a href="{url path="/admin"}" tabindex="-1" class="product-image">
{images file='../assets/img/280x196.png'}<img src="{$asset_url}" alt="{intl l="Demo product title"}">{/images}
<span class="mask"></span>
</a>
<a href="{url path="/admin"}" class="product-info">
<h3 class="name">{intl l="Demo product title"}</h3>
<div class="short-description">{intl l="Demo product description"}</div>
<div class="product-price">
<div class="price-container">
<span class="regular-price"><span class="price">99.99 {currency attr="symbol"}</span></span>
</div>
</div>
</a>
</article><!-- /product -->
</li>
{/for}
</ul>
</div>
</section><!-- #products-new -->

View File

@@ -28,20 +28,9 @@
</section><!-- #carousel -->
{if {count type="product"} eq 0}
<div class="jumbotron">
<h1>Welcome</h1>
<p>
It's really quick to add a product.
<ol>
<li>Check <strong>NEW</strong> under the details tab if you want to see your product in the latest product section.</li>
<li>Check <strong>SALE</strong> under the details tab if you want to see your product in the offer product section.</li>
</ol>
</p>
<p><a href="{url path="/admin/catalog"}" class="btn btn-jumbotron btn-lg" role="button">Add my first product</a></p>
</div>
{/if}
{include file="includes/product-empty.html"}
{else}
{ifloop rel="product_new"}
<section id="products-new">
<div class="products-heading">
<h2>{intl l="Latest"} <a href="{url path="/view_all" type="new"}" class="btn-all">{intl l="+ View All"}</a></h2>
@@ -106,10 +95,10 @@
</article><!-- /product -->
</li>
{/loop}
{elseloop rel="product_new"}{include file="demo/product-new.html"}{/elseloop}
</ul>
</div>
</section><!-- #products-new -->
{/ifloop}
{ifloop rel="product_promo"}
<section id="products-offer">
@@ -126,4 +115,7 @@
</div>
</section><!-- #products-offer -->
{/ifloop}
{/if}
{/block}