Jump to content

Cara menampilkan jumlah produk pada prestashop


Yundar YK

Recommended Posts

mau menampilkannya di halaman kategori ya, perlu edit product-list.tpl. tp kalau mau menampilkan di halaman produk bisa setting di back office > preferences > product

kalo lewat product-list.tpl scriptnya gimana ya gan?,,biar bisa tampil nominal jumlah produknya,kayak gambar diatas gan,,trima kasih gan salam dari jogja :D :D

Link to comment
Share on other sites

maap baru mampir dimari, presta berapa mas gan?

 

logikanya sih tinggal copas beberapa script dari product.tpl ke product-list.tpl

 

di PS 1.6 default theme script ini

{if ($display_qties == 1 && !$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && $product->available_for_order)}
				<!-- number of item in stock -->
				<p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}>
					<span id="quantityAvailable">{$product->quantity|intval}</span>
					<span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item'}</span>
					<span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items'}</span>
				</p>
			{/if}
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...