Jump to content

Show Item with id_product


uzziell

Recommended Posts

Hello, i make module for pick some item to show on homepage with id_product, 

 

and i get stuck, how to call item like attachment picture.

 

post-921757-0-62491900-1437003883_thumb.png

 

 

can help me on .tpl - like i have value '2', and just show item with id_product = 2

 

thank you.

 

 

 

 

Link to comment
Share on other sites

in controller you have to create variable with product and pass it to .tpl file

$product = new Product(2);

$this->context->smarty->assign('product'=>$product);

 

then call product-list.tpl file, like for example homepage featured products module

Link to comment
Share on other sites

thank for your reply

 

but i still have some error :

 

Illegal string offset 'link' in C:\xampp\htdocs\prestashop\cache\smarty\compile\f4\99\ea\f499ea86b8fb681f1a6ccbd504a85817be89d70c.file.top.tpl.php on line 194;
 
Warning:  Illegal string offset 'name' in C:\xampp\htdocs\prestashop\cache\smarty\compile\f4\99\ea\f499ea86b8fb681f1a6ccbd504a85817be89d70c.file.top.tpl.php on line 195
 
 

 

and this my controller code :

 

products = new Product(2);
$this->context->smarty->assign(array(
'name'=>'Lapodapapoy', 
'lapodapapoy_link'=>$this->context->link->getModuleLink('lapodapapoy', 'display'), 
'cariitem'=>Db::getInstance()->executeS('SELECT * FROM `ps_lapodapapoy` WHERE active=1'),
'link'=>$link,
'nama'=>$nama,
'products'=>$products,
'gambar'=>$image_url,
));
return $this->display(__FILE__,'top.tpl');
 
and top.tpl  i copy form product-list.tlp
Link to comment
Share on other sites

sir, i already try make code like this

$product = Db::getInstance()->executeS('SELECT * FROM `ps_product` WHERE id_product=2 OR id_product=3');

$this->context->smarty->assign(array(
'name'=>'Lapodapapoy', 
'lapodapapoy_link'=>$this->context->link->getModuleLink('lapodapapoy', 'display'), 
'cariitem'=>Db::getInstance()->executeS('SELECT * FROM `ps_lapodapapoy` WHERE active=1'),
'products'=>$product,
'lawak'=>$lawak,
'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')),
'homeSize' => Image::getSize(ImageType::getFormatedName('home'))
)); 
return $this->display(__FILE__,'product-list.tpl');

and i get like this,

post-921757-0-18237500-1437159364_thumb.png

 

 

and which one that i should fix.

 

thank you very much

 

 

 

Link to comment
Share on other sites

keep trying with this code :

 

$product = new Product(3);
var_dump($product);

 

and call : 

$this->context->smarty->assign(array(
'products'=>$product,
'mediumSize' => Image::getSize(ImageType::getFormatedName('medium')),
'homeSize' => Image::getSize(ImageType::getFormatedName('home'))
)); 
return $this->display(__FILE__,'product-list.tpl');
 

and i get : 

object(Product)#286 (89) { ["tax_name"]=> NULL ["tax_rate"]=> NULL ["id_manufacturer"]=> string(1) "1" ["id_supplier"]=> string(1) "1" ["id_category_default"]=> string(1) "9" ["id_shop_default"]=> string(1) "1" ["manufacturer_name"]=> NULL ["supplier_name"]=> NULL ["name"]=> array(1) { [1]=> string(13) "Printed Dress" } ["description"]=> array(1) { [1]=> string(541) "
Fashion has been creating well-designed collections since 2010. The brand offers feminine designs delivering stylish separates and statement dresses which has since evolved into a full ready-to-wear collection in which every item is a vital part of a woman's wardrobe. The result? Cool, easy, chic looks with youthful elegance and unmistakable signature style. All the beautiful pieces are made in Italy and manufactured with the greatest attention. Now Fashion extends to a range of accessories including shoes, hats, belts and more!

" } ["description_short"]=> array(1) { [1]=> string(113) "
100% cotton double printed dress. Black and white striped top and orange high waisted skater skirt bottom.

" } ["quantity"]=> string(1) "0" ["minimal_quantity"]=> string(1) "1" ["available_now"]=> array(1) { [1]=> string(8) "In stock" } ["available_later"]=> array(1) { [1]=> string(0) "" } ["price"]=> string(9) "25.999852" ["specificPrice"]=> int(0) ["additional_shipping_cost"]=> string(4) "0.00" ["wholesale_price"]=> string(8) "7.800000" ["on_sale"]=> string(1) "0" ["online_only"]=> string(1) "0" ["unity"]=> string(0) "" ["unit_price"]=> NULL ["unit_price_ratio"]=> string(8) "0.000000" ["ecotax"]=> string(8) "0.000000" ["reference"]=> string(6) "demo_3" ["supplier_reference"]=> string(0) "" ["location"]=> string(0) "" ["width"]=> string(8) "0.000000" ["height"]=> string(8) "0.000000" ["depth"]=> string(8) "0.000000" ["weight"]=> string(8) "0.000000" ["ean13"]=> string(1) "0" ["upc"]=> string(0) "" ["link_rewrite"]=> array(1) { [1]=> string(13) "printed-dress" } ["meta_description"]=> array(1) { [1]=> string(0) "" } ["meta_keywords"]=> array(1) { [1]=> string(0) "" } ["meta_title"]=> array(1) { [1]=> string(0) "" } ["quantity_discount"]=> string(1) "0" ["customizable"]=> string(1) "0" ["new"]=> NULL ["uploadable_files"]=> string(1) "0" ["text_fields"]=> string(1) "0" ["active"]=> string(1) "1" ["redirect_type"]=> string(3) "404" ["id_product_redirected"]=> string(1) "0" ["available_for_order"]=> string(1) "1" ["available_date"]=> string(10) "0000-00-00" ["condition"]=> string(3) "new" ["show_price"]=> string(1) "1" ["indexed"]=> string(1) "1" ["visibility"]=> string(4) "both" ["date_add"]=> string(19) "2015-07-18 01:08:26" ["date_upd"]=> string(19) "2015-07-18 01:08:26" ["tags"]=> NULL ["base_price"]=> NULL ["id_tax_rules_group"]=> string(1) "1" ["id_color_default"]=> int(0) ["advanced_stock_management"]=> string(1) "0" ["out_of_stock"]=> string(1) "2" ["depends_on_stock"]=> NULL ["isFullyLoaded"]=> bool(false) ["cache_is_pack"]=> string(1) "0" ["cache_has_attachments"]=> string(1) "0" ["is_virtual"]=> string(1) "0" ["id_pack_product_attribute"]=> NULL ["cache_default_attribute"]=> string(2) "13" ["category"]=> bool(false) ["pack_stock_type"]=> string(1) "3" ["webserviceParameters":protected]=> array(4) { ["objectMethods"]=> array(2) { ["add"]=> string(5) "addWs" ["update"]=> string(8) "updateWs" } ["objectNodeNames"]=> string(8) "products" ["fields"]=> array(12) { ["id_manufacturer"]=> array(1) { ["xlink_resource"]=> string(13) "manufacturers" } ["id_supplier"]=> array(1) { ["xlink_resource"]=> string(9) "suppliers" } ["id_category_default"]=> array(1) { ["xlink_resource"]=> string(10) "categories" } ["new"]=> array(0) { } ["cache_default_attribute"]=> array(0) { } ["id_default_image"]=> array(3) { ["getter"]=> string(10) "getCoverWs" ["setter"]=> string(10) "setCoverWs" ["xlink_resource"]=> array(2) { ["resourceName"]=> string(6) "images" ["subResourceName"]=> string(8) "products" } } ["id_default_combination"]=> array(3) { ["getter"]=> string(23) "getWsDefaultCombination" ["setter"]=> string(23) "setWsDefaultCombination" ["xlink_resource"]=> array(1) { ["resourceName"]=> string(12) "combinations" } } ["id_tax_rules_group"]=> array(1) { ["xlink_resource"]=> array(1) { ["resourceName"]=> string(15) "tax_rule_groups" } } ["position_in_category"]=> array(2) { ["getter"]=> string(23) "getWsPositionInCategory" ["setter"]=> string(23) "setWsPositionInCategory" } ["manufacturer_name"]=> array(2) { ["getter"]=> string(21) "getWsManufacturerName" ["setter"]=> bool(false) } ["quantity"]=> array(2) { ["getter"]=> bool(false) ["setter"]=> bool(false) } ["type"]=> array(2) { ["getter"]=> string(9) "getWsType" ["setter"]=> string(9) "setWsType" } } ["associations"]=> array(9) { ["categories"]=> array(2) { ["resource"]=> string(8) "category" ["fields"]=> array(1) { ["id"]=> array(1) { ["required"]=> bool(true) } } } ["images"]=> array(2) { ["resource"]=> string(5) "image" ["fields"]=> array(1) { ["id"]=> array(0) { } } } ["combinations"]=> array(2) { ["resource"]=> string(11) "combination" ["fields"]=> array(1) { ["id"]=> array(1) { ["required"]=> bool(true) } } } ["product_option_values"]=> array(2) { ["resource"]=> string(20) "product_option_value" ["fields"]=> array(1) { ["id"]=> array(1) { ["required"]=> bool(true) } } } ["product_features"]=> array(2) { ["resource"]=> string(15) "product_feature" ["fields"]=> array(2) { ["id"]=> array(1) { ["required"]=> bool(true) } ["id_feature_value"]=> array(2) { ["required"]=> bool(true) ["xlink_resource"]=> string(22) "product_feature_values" } } } ["tags"]=> array(2) { ["resource"]=> string(3) "tag" ["fields"]=> array(1) { ["id"]=> array(1) { ["required"]=> bool(true) } } } ["stock_availables"]=> array(3) { ["resource"]=> string(15) "stock_available" ["fields"]=> array(2) { ["id"]=> array(1) { ["required"]=> bool(true) } ["id_product_attribute"]=> array(1) { ["required"]=> bool(true) } } ["setter"]=> bool(false) } ["accessories"]=> array(3) { ["resource"]=> string(7) "product" ["api"]=> string(8) "products" ["fields"]=> array(1) { ["id"]=> array(2) { ["required"]=> bool(true) ["xlink_resource"]=> string(7) "product" } } } ["product_bundle"]=> array(3) { ["resource"]=> string(7) "product" ["api"]=> string(8) "products" ["fields"]=> array(2) { ["id"]=> array(1) { ["required"]=> bool(true) } ["quantity"]=> array(0) { } } } } } ["id"]=> int(3) ["id_lang":protected]=> NULL ["id_shop":protected]=> int(1) ["id_shop_list"]=> NULL ["get_shop_from_context":protected]=> bool(true) ["table":protected]=> string(7) "product" ["identifier":protected]=> string(10) "id_product" ["fieldsRequired":protected]=> array(1) { [0]=> string(5) "price" } ["fieldsSize":protected]=> array(5) { ["reference"]=> int(32) ["supplier_reference"]=> int(32) ["location"]=> int(64) ["ean13"]=> int(13) ["upc"]=> int(12) } ["fieldsValidate":protected]=> array(42) { ["id_shop_default"]=> string(12) "isUnsignedId" ["id_manufacturer"]=> string(12) "isUnsignedId" ["id_supplier"]=> string(12) "isUnsignedId" ["reference"]=> string(11) "isReference" ["supplier_reference"]=> string(11) "isReference" ["location"]=> string(11) "isReference" ["width"]=> string(15) "isUnsignedFloat" ["height"]=> string(15) "isUnsignedFloat" ["depth"]=> string(15) "isUnsignedFloat" ["weight"]=> string(15) "isUnsignedFloat" ["quantity_discount"]=> string(6) "isBool" ["ean13"]=> string(7) "isEan13" ["upc"]=> string(5) "isUpc" ["cache_is_pack"]=> string(6) "isBool" ["cache_has_attachments"]=> string(6) "isBool" ["is_virtual"]=> string(6) "isBool" ["id_category_default"]=> string(12) "isUnsignedId" ["id_tax_rules_group"]=> string(12) "isUnsignedId" ["on_sale"]=> string(6) "isBool" ["online_only"]=> string(6) "isBool" ["ecotax"]=> string(7) "isPrice" ["minimal_quantity"]=> string(13) "isUnsignedInt" ["price"]=> string(7) "isPrice" ["wholesale_price"]=> string(7) "isPrice" ["unity"]=> string(8) "isString" ["additional_shipping_cost"]=> string(7) "isPrice" ["customizable"]=> string(13) "isUnsignedInt" ["text_fields"]=> string(13) "isUnsignedInt" ["uploadable_files"]=> string(13) "isUnsignedInt" ["active"]=> string(6) "isBool" ["redirect_type"]=> string(8) "isString" ["id_product_redirected"]=> string(12) "isUnsignedId" ["available_for_order"]=> string(6) "isBool" ["available_date"]=> string(12) "isDateFormat" ["condition"]=> string(13) "isGenericName" ["show_price"]=> string(6) "isBool" ["indexed"]=> string(6) "isBool" ["visibility"]=> string(19) "isProductVisibility" ["advanced_stock_management"]=> string(6) "isBool" ["date_add"]=> string(6) "isDate" ["date_upd"]=> string(6) "isDate" ["pack_stock_type"]=> string(13) "isUnsignedInt" } ["fieldsRequiredLang":protected]=> array(2) { [0]=> string(12) "link_rewrite" [1]=> string(4) "name" } ["fieldsSizeLang":protected]=> array(7) { ["meta_description"]=> int(255) ["meta_keywords"]=> int(255) ["meta_title"]=> int(128) ["link_rewrite"]=> int(128) ["name"]=> int(128) ["available_now"]=> int(255) ["available_later"]=> int(255) } ["fieldsValidateLang":protected]=> array(9) { ["meta_description"]=> string(13) "isGenericName" ["meta_keywords"]=> string(13) "isGenericName" ["meta_title"]=> string(13) "isGenericName" ["link_rewrite"]=> string(13) "isLinkRewrite" ["name"]=> string(13) "isCatalogName" ["description"]=> string(11) "isCleanHtml" ["description_short"]=> string(11) "isCleanHtml" ["available_now"]=> string(13) "isGenericName" ["available_later"]=> string(13) "IsGenericName" } ["tables":protected]=> array(0) { } ["image_dir":protected]=> NULL ["image_format":protected]=> string(3) "jpg" ["def":protected]=> array(7) { ["table"]=> string(7) "product" ["primary"]=> string(10) "id_product" ["multilang"]=> bool(true) ["multilang_shop"]=> bool(true) ["fields"]=> array(53) { ["id_shop_default"]=> array(2) { ["type"]=> int(1) ["validate"]=> string(12) "isUnsignedId" } ["id_manufacturer"]=> array(2) { ["type"]=> int(1) ["validate"]=> string(12) "isUnsignedId" } ["id_supplier"]=> array(2) { ["type"]=> int(1) ["validate"]=> string(12) "isUnsignedId" } ["reference"]=> array(3) { ["type"]=> int(3) ["validate"]=> string(11) "isReference" ["size"]=> int(32) } ["supplier_reference"]=> array(3) { ["type"]=> int(3) ["validate"]=> string(11) "isReference" ["size"]=> int(32) } ["location"]=> array(3) { ["type"]=> int(3) ["validate"]=> string(11) "isReference" ["size"]=> int(64) } ["width"]=> array(2) { ["type"]=> int(4) ["validate"]=> string(15) "isUnsignedFloat" } ["height"]=> array(2) { ["type"]=> int(4) ["validate"]=> string(15) "isUnsignedFloat" } ["depth"]=> array(2) { ["type"]=> int(4) ["validate"]=> string(15) "isUnsignedFloat" } ["weight"]=> array(2) { ["type"]=> int(4) ["validate"]=> string(15) "isUnsignedFloat" } ["quantity_discount"]=> array(2) { ["type"]=> int(2) ["validate"]=> string(6) "isBool" } ["ean13"]=> array(3) { ["type"]=> int(3) ["validate"]=> string(7) "isEan13" ["size"]=> int(13) } ["upc"]=> array(3) { ["type"]=> int(3) ["validate"]=> string(5) "isUpc" ["size"]=> int(12) } ["cache_is_pack"]=> array(2) { ["type"]=> int(2) ["validate"]=> string(6) "isBool" } ["cache_has_attachments"]=> array(2) { ["type"]=> int(2) ["validate"]=> string(6) "isBool" } ["is_virtual"]=> array(2) { ["type"]=> int(2) ["validate"]=> string(6) "isBool" } ["id_category_default"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(12) "isUnsignedId" } ["id_tax_rules_group"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(12) "isUnsignedId" } ["on_sale"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["online_only"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["ecotax"]=> array(3) { ["type"]=> int(4) ["shop"]=> bool(true) ["validate"]=> string(7) "isPrice" } ["minimal_quantity"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(13) "isUnsignedInt" } ["price"]=> array(4) { ["type"]=> int(4) ["shop"]=> bool(true) ["validate"]=> string(7) "isPrice" ["required"]=> bool(true) } ["wholesale_price"]=> array(3) { ["type"]=> int(4) ["shop"]=> bool(true) ["validate"]=> string(7) "isPrice" } ["unity"]=> array(3) { ["type"]=> int(3) ["shop"]=> bool(true) ["validate"]=> string(8) "isString" } ["unit_price_ratio"]=> array(2) { ["type"]=> int(4) ["shop"]=> bool(true) } ["additional_shipping_cost"]=> array(3) { ["type"]=> int(4) ["shop"]=> bool(true) ["validate"]=> string(7) "isPrice" } ["customizable"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(13) "isUnsignedInt" } ["text_fields"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(13) "isUnsignedInt" } ["uploadable_files"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(13) "isUnsignedInt" } ["active"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["redirect_type"]=> array(3) { ["type"]=> int(3) ["shop"]=> bool(true) ["validate"]=> string(8) "isString" } ["id_product_redirected"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(12) "isUnsignedId" } ["available_for_order"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["available_date"]=> array(3) { ["type"]=> int(5) ["shop"]=> bool(true) ["validate"]=> string(12) "isDateFormat" } ["condition"]=> array(5) { ["type"]=> int(3) ["shop"]=> bool(true) ["validate"]=> string(13) "isGenericName" ["values"]=> array(3) { [0]=> string(3) "new" [1]=> string(4) "used" [2]=> string(11) "refurbished" } ["default"]=> string(3) "new" } ["show_price"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["indexed"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["visibility"]=> array(5) { ["type"]=> int(3) ["shop"]=> bool(true) ["validate"]=> string(19) "isProductVisibility" ["values"]=> array(4) { [0]=> string(4) "both" [1]=> string(7) "catalog" [2]=> string(6) "search" [3]=> string(4) "none" } ["default"]=> string(4) "both" } ["cache_default_attribute"]=> array(2) { ["type"]=> int(1) ["shop"]=> bool(true) } ["advanced_stock_management"]=> array(3) { ["type"]=> int(2) ["shop"]=> bool(true) ["validate"]=> string(6) "isBool" } ["date_add"]=> array(3) { ["type"]=> int(5) ["shop"]=> bool(true) ["validate"]=> string(6) "isDate" } ["date_upd"]=> array(3) { ["type"]=> int(5) ["shop"]=> bool(true) ["validate"]=> string(6) "isDate" } ["pack_stock_type"]=> array(3) { ["type"]=> int(1) ["shop"]=> bool(true) ["validate"]=> string(13) "isUnsignedInt" } ["meta_description"]=> array(4) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "isGenericName" ["size"]=> int(255) } ["meta_keywords"]=> array(4) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "isGenericName" ["size"]=> int(255) } ["meta_title"]=> array(4) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "isGenericName" ["size"]=> int(128) } ["link_rewrite"]=> array(6) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "isLinkRewrite" ["required"]=> bool(true) ["size"]=> int(128) ["ws_modifier"]=> array(2) { ["http_method"]=> int(2) ["modifier"]=> string(21) "modifierWsLinkRewrite" } } ["name"]=> array(5) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "isCatalogName" ["required"]=> bool(true) ["size"]=> int(128) } ["description"]=> array(3) { ["type"]=> int(6) ["lang"]=> bool(true) ["validate"]=> string(11) "isCleanHtml" } ["description_short"]=> array(3) { ["type"]=> int(6) ["lang"]=> bool(true) ["validate"]=> string(11) "isCleanHtml" } ["available_now"]=> array(4) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "isGenericName" ["size"]=> int(255) } ["available_later"]=> array(4) { ["type"]=> int(3) ["lang"]=> bool(true) ["validate"]=> string(13) "IsGenericName" ["size"]=> int(255) } } ["associations"]=> array(7) { ["manufacturer"]=> array(1) { ["type"]=> int(1) } ["supplier"]=> array(1) { ["type"]=> int(1) } ["default_category"]=> array(3) { ["type"]=> int(1) ["field"]=> string(19) "id_category_default" ["object"]=> string(8) "Category" } ["tax_rules_group"]=> array(1) { ["type"]=> int(1) } ["categories"]=> array(4) { ["type"]=> int(2) ["field"]=> string(11) "id_category" ["object"]=> string(8) "Category" ["association"]=> string(16) "category_product" } ["stock_availables"]=> array(4) { ["type"]=> int(2) ["field"]=> string(18) "id_stock_available" ["object"]=> string(14) "StockAvailable" ["association"]=> string(16) "stock_availables" } ["l"]=> array(3) { ["type"]=> int(2) ["field"]=> string(10) "id_product" ["foreign_field"]=> string(10) "id_product" } } ["classname"]=> string(7) "Product" } ["update_fields":protected]=> NULL ["force_id"]=> bool(false) }

I think this almost done, but i dont have idea for make this work and show perfect 1 product. 

Link to comment
Share on other sites

Oke thanks to Vekia for help me, i already fix it.

 

this code how to call product by id_product

 

on my module :

	public function bikinPusing($id){
				$category = new Category((int)Configuration::get('HOME_FEATURED_CAT'), (int)Context::getContext()->language->id);
				$nb = (int)Configuration::get('HOME_FEATURED_NBR');
				Lapodapapoy::$cache_products = $category->getProducts((int)Context::getContext()->language->id, ($id-1), 1, 'name', 'ASC');
				return Lapodapapoy::$cache_products;
	}

public function hookDisplayHome($params){

	$lawak = new Mymodulename();
	
		#$this->_cacheProducts();
			$this->smarty->assign(
				array(
					'lawak'=>$lawak,
					'add_prod_display' => Configuration::get('PS_ATTRIBUTE_CATEGORY_DISPLAY'),
					'homeSize' => Image::getSize(ImageType::getFormatedName('home')),
				)
			);
			return $this->display(__FILE__,'product-list.tpl');
	}
}

and product-list.tpl , i copy all form themes/default-bootstrap/product-list.tpl


{foreach from=$lawak->bikinPusing(7) item=product name=products}
<li class="ajax_block_product col-xs-12 col-sm-4 col-md-3">
....
....
....
</li>


NB : because I just need show 1 item from id_product, code above <li> and code bellow </li> I delete it.

$lawak->bikinPusing(7) , 7 is id_product wanna i call.

 

 

and sorry for bad english

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...