Jump to content

Mengubah Featured Products menjadi New Products di home


erwinbudiarto

Recommended Posts

Permisi... mau tanya nih, butuh pencerahan dari agan2...

 

Saya menggunakan PS 1.5.3.1.

mau mengubah isi dari featured products menjadi new products pada home.

 

sangat mengharapkan pencerahan dari agan2... sudah ubek2 koq ga dapat solusinya.

 

Makasih sebelumnya :)

Link to comment
Share on other sites

Makasih banyak atas responnya Agan Zaid :)

 

sudah langsug saya coba saran Agan di homefeatured.php line 106, tetapi yang terjadi malah 500. (HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

Link to comment
Share on other sites

Makasih banyak atas responnya Agan Zaid :)

 

sudah langsug saya coba saran Agan di homefeatured.php line 106, tetapi yang terjadi malah 500. (HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

 

di test di localhost berhasil kok gan...

line 106 ini gan:

$products = $category->getProducts((int)Context::getContext()->language->id, 1, ($nb ? $nb : 10));

ganti dengan ini

   $products = Product::getNewProducts((int)Context::getContext()->language->id, 0, ($nb ? $nb : 10));
   if (!$products)
 return;

Link to comment
Share on other sites

saya coba di saya gagal :wacko:

tetapi klo saya langsung timpa saja tanpa delete/comment, tidak ada perubahan sama sekali.

featured produk di home tidak berubah menjadi new products :(

mungkin ada baiknya saya coba searching module untuk itu. smoga bisa didapat. nanti saya akan share apabila saya dapatkan download url nya :)

Link to comment
Share on other sites

barusan dicoba di PS 1.5.3.1 dan berhasil

jangan lupa:

1. force compile

2. ubah nama title block di homefeatured.tpl line 28 karena modul ini sebenarnya milik homefeature hanya data yg diambil adalah new product

<p class="title_block">{l s='Featured products' mod='homefeatured'}</p>

menjadi

<p class="title_block">{l s='New products' mod='homefeatured'}</p>

 

sekarang yg bikin saya pusing, gimana caranya mengecilkan jarak antara row 1 dan 2

udah coba utak atik file .css tetep ga bisa :wacko:

mohon bantuannya bagi yg tau

attached screenshot

post-406452-0-33931700-1364055566_thumb.jpg

Edited by catharina (see edit history)
  • Like 1
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...