Jump to content

Mohon bantuannya, ada 2 pertanyaan...Help !


siphil

Recommended Posts

Mohon Bantuannya mastah2...

disini ane ingin tanya, ada 2 pertanyaan yg ingin ane tanyakan.

tolong dibantu.

 

Pertanyaanya begini :

 

1. Bagaimana cara memperbesar Font di Ps, dari 11px ke 14px.

    karena font bawaan Ps hnya 11px (kecil bgt) ngak enak dibaca...?

    Tolong cara menggantinya dimana...?

 

2. Bagaimana cara membuat tag sperti (new/sale/discond)

    Pada foto terlihat seperti ada tanda (new/sale/discond)

   

    Yg saya tanyakan bagaimana cara menambah tag tersebut, atau apakah ada modulnya yg bisa

    di download gratiss....?

    saya ingin menambah tag (FREE ONGKIR)

 

Ini gambarnya jika blom faham, yg saya kotakin warna hitam...

post-939839-0-35854400-1425984163_thumb.jpg

Link to comment
Share on other sites

Sebenarnya untuk menampilkan free ongkir otomatis itu harus di inject ke admin produknya.
Jadi dari mulai create produk ada masukkan nama produk - harga - kombinasi - upload produk - nah buat satu lagi tab informasi status disitu.
Dan ini butuh module. sebenarnya ada modulenya. tapi berbayar. nanti setiap produk yan tampil otomatis ada status free ongkir - dll.
Default prestashop hanya memberikan status: available, out off stock, new produk, sale, best produk.
 
Kalau semua produk mau di kasih status free ongkir tingal edit aja di tpl template.
Contoh:
1. Di produk list - semua produk ada statusnya free ongkir maka harus edit ke product-list.tpl dan setelah di code add to cart tambahkan {l s=free ongkir.'}.
   kalau pakai gambar mungkin bisa menambahkan class = gratis ongkir contoh <div class = "gratis-ongkir"> {l s=free ongkir.'}</div> dan buka css -product-list.css tambahkan .gratis-ongkir { background: url (../img/gratis-ongkir.png)} dan upload gambarnya di themes - nama template - img 
 
2. Kalau menampilkan di hot produk - new produk sebenarnya harus di edit di modulenya,
    Kalau kasus sesuai gambar mas siphil , coba ke module cshotdeals - views - templates - hooks - cshotdeals.tpl  ambil file dibawah dan paste.

<!-- MODULE today deal -->
{if isset($proTodays) && $proTodays|@count > 0}
	<div class="csshopping block">
		<h4 class="title_block"><a href="{$link->getPageLink('prices-drop', true)|escape:'html'}" title="{l s='Specials' mod='cshotdeals'}">{l s='Latest Deals' mod='cshotdeals'}</a></h4>
		<div class="home_shopping block_content">
			<ul class="ul_csshopping">
			{foreach from=$proTodays item=product name=proTodays}
				<li class="ajax_block_product">
					<div class="product-image-container">
						<a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link">
							<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" />
							<span class="bg_hover"></span>
						</a>
						{if isset($quick_view) && $quick_view}
							<a class="quick-view" href="{$product.link|escape:'html':'UTF-8'}" title="" rel="{$product.link|escape:'html':'UTF-8'}">
								 <span>{l s='quick view' mod='cshometab'}</span>
							</a>
						{/if}
						{if isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
							<span class="sale-box">
								<span class="sale-label">{l s='Sale'}</span>
<!--tambahan baru -->                                                                
<span class="gratis-ongkir">{l s='Gratis Ongkir'}</span>
							</span>

						{/if}
					</div>
					{hook h='displayCountDownProduct' product=$product}
					<h5 class="name_product">
						<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a>
					</h5>
					<div class="price_hotdeal">
						{if $product.specific_prices}
							{if isset($product.price_without_reduction)}
								<span class="price-discount">
								{if !$priceDisplay}
									{convertPrice price=$product.price_without_reduction}
								{else}
									{convertPrice price=Tools::ps_round($product.price_without_reduction, 2)}
								{/if}
								</span>
							{/if}
						{/if}
						<span class="price product-price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>	
					</div>
					<div class="hotdeal_button">
						{if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}
						{if ($product.allow_oosp || $product.quantity > 0)}
							{if isset($static_token)}
								<a class="ajax_add_to_cart_button cs_buttoncart" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='cshotdeals'}" data-id-product="{$product.id_product|intval}">
									<span></span>
									{l s='Add to cart' mod='cshotdeals'}
								</a>
							{else}
								<a class="ajax_add_to_cart_button cs_buttoncart" href="{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='cshotdeals'}" data-id-product="{$product.id_product|intval}">
									<span></span>
									{l s='Add to cart' mod='cshotdeals'}
								</a>
							{/if}						
						{else}
					<span class="cs_buttoncart disabled">
						<span>{l s='out of stock' mod='cshotdeals'}</span>
					</span>
					{/if}
				{/if}
			
					<div class="functional-buttons">
						{hook h='displayProductListFunctionalButtons' product=$product}
						{if isset($comparator_max_item) && $comparator_max_item}
							<div class="compare">
								<a class="add_to_compare" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product}" title="{l s='Add to Compare' mod='cshotdeals'}">{l s='Add to Compare' mod='cshotdeals'}</a>
							</div>
						{/if}
					</div>										
				</div>
				</li>
			{/foreach}
			</ul>
		</div>
	</div>
{/if}
<!-- MODULE today deal -->

tambahkan css di cshotdeals - css - cshotdeals.css

 

.gratis-ongkir { background: url (../img/gratis-ongkir.png)}

 

dan upload gambarnya di cshotdeals - img

Edited by ABANGWEB (see edit history)
Link to comment
Share on other sites

Sebenarnya untuk menampilkan free ongkir otomatis itu harus di inject ke admin produknya.

Jadi dari mulai create produk ada masukkan nama produk - harga - kombinasi - upload produk - nah buat satu lagi tab informasi status disitu.

Dan ini butuh module. sebenarnya ada modulenya. tapi berbayar. nanti setiap produk yan tampil otomatis ada status free ongkir - dll.

Default prestashop hanya memberikan status: available, out off stock, new produk, sale, best produk.

 

Kalau semua produk mau di kasih status free ongkir tingal edit aja di tpl template.

Contoh:

1. Di produk list - semua produk ada statusnya free ongkir maka harus edit ke product-list.tpl dan setelah di code add to cart tambahkan {l s=free ongkir.'}.

   kalau pakai gambar mungkin bisa menambahkan class = gratis ongkir contoh <div class = "gratis-ongkir"> {l s=free ongkir.'}</div> dan buka css -product-list.css tambahkan .gratis-ongkir { background: url (../img/gratis-ongkir.png)} dan upload gambarnya di themes - nama template - img 

 

2. Kalau menampilkan di hot produk - new produk sebenarnya harus di edit di modulenya,

    Kalau kasus sesuai gambar mas siphil , coba ke module cshotdeals - views - templates - hooks - cshotdeals.tpl  ambil file dibawah dan paste.

<!-- MODULE today deal -->
{if isset($proTodays) && $proTodays|@count > 0}
	<div class="csshopping block">
		<h4 class="title_block"><a href="{$link->getPageLink('prices-drop', true)|escape:'html'}" title="{l s='Specials' mod='cshotdeals'}">{l s='Latest Deals' mod='cshotdeals'}</a></h4>
		<div class="home_shopping block_content">
			<ul class="ul_csshopping">
			{foreach from=$proTodays item=product name=proTodays}
				<li class="ajax_block_product">
					<div class="product-image-container">
						<a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link">
							<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" />
							<span class="bg_hover"></span>
						</a>
						{if isset($quick_view) && $quick_view}
							<a class="quick-view" href="{$product.link|escape:'html':'UTF-8'}" title="" rel="{$product.link|escape:'html':'UTF-8'}">
								 <span>{l s='quick view' mod='cshometab'}</span>
							</a>
						{/if}
						{if isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
							<span class="sale-box">
								<span class="sale-label">{l s='Sale'}</span>
<!--tambahan baru -->                                                                
<span class="gratis-ongkir">{l s='Gratis Ongkir'}</span>
							</span>

						{/if}
					</div>
					{hook h='displayCountDownProduct' product=$product}
					<h5 class="name_product">
						<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a>
					</h5>
					<div class="price_hotdeal">
						{if $product.specific_prices}
							{if isset($product.price_without_reduction)}
								<span class="price-discount">
								{if !$priceDisplay}
									{convertPrice price=$product.price_without_reduction}
								{else}
									{convertPrice price=Tools::ps_round($product.price_without_reduction, 2)}
								{/if}
								</span>
							{/if}
						{/if}
						<span class="price product-price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span>	
					</div>
					<div class="hotdeal_button">
						{if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}
						{if ($product.allow_oosp || $product.quantity > 0)}
							{if isset($static_token)}
								<a class="ajax_add_to_cart_button cs_buttoncart" href="{$link->getPageLink('cart',false, NULL, "add=1&id_product={$product.id_product|intval}&token={$static_token}", false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='cshotdeals'}" data-id-product="{$product.id_product|intval}">
									<span></span>
									{l s='Add to cart' mod='cshotdeals'}
								</a>
							{else}
								<a class="ajax_add_to_cart_button cs_buttoncart" href="{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='cshotdeals'}" data-id-product="{$product.id_product|intval}">
									<span></span>
									{l s='Add to cart' mod='cshotdeals'}
								</a>
							{/if}						
						{else}
					<span class="cs_buttoncart disabled">
						<span>{l s='out of stock' mod='cshotdeals'}</span>
					</span>
					{/if}
				{/if}
			
					<div class="functional-buttons">
						{hook h='displayProductListFunctionalButtons' product=$product}
						{if isset($comparator_max_item) && $comparator_max_item}
							<div class="compare">
								<a class="add_to_compare" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product}" title="{l s='Add to Compare' mod='cshotdeals'}">{l s='Add to Compare' mod='cshotdeals'}</a>
							</div>
						{/if}
					</div>										
				</div>
				</li>
			{/foreach}
			</ul>
		</div>
	</div>
{/if}
<!-- MODULE today deal -->

tambahkan css di cshotdeals - css - cshotdeals.css

 

dan upload gambarnya di cshotdeals - img

 

Thanks gan , akan ane coba

biarpun ane masih newbie..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...