ahmed salah
Member-
Posts
26 -
Joined
-
Last visited
About ahmed salah

Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
ahmed salah's Achievements
Junior Member (1/3)
1
Reputation
-
I have an idea to do on my hosting, I have a lot of Wordpress themes and I want to give the user the choice when ordering the hosting plan if he wants he can choose a Wordpress theme and the hosting package automatically come with installed Wordpress and the selected theme if that possible please give me the guide. I'm using 20i for the hosting.
-
Show extra information about each product on the products page
ahmed salah replied to ahmed salah's topic in Developer Corner
Thank you, you always save the day 🙂, i edited the code to fetch the translated description also with the name. function linux_product_hook($vars) { $products = Capsule::table('tblproducts') ->join('tblpricing', 'tblproducts.id', '=', 'tblpricing.relid') ->where('tblpricing.type', 'product') ->where('tblproducts.hidden','0') ->where('tblproducts.gid','1') ->select('tblproducts.id','tblproducts.name','tblproducts.description','tblpricing.monthly') ->orderBy('tblproducts.order') ->groupBy('tblproducts.id') ->get(); $results = json_decode(json_encode($products), true); foreach($results as $key => $product) { $product_translation = Capsule::table('tbldynamic_translations') ->where('related_id',$product['id']) ->where('language','arabic') ->select('tbldynamic_translations.translation') ->get(); // print_r($product); if ($product_translation) { $results[$key]['product_name_translation'] = $product_translation[0]; $results[$key]['product_desc_translation'] = $product_translation[1]; } } return array("linux_product" => $results); } This will return the translation array which contains tow array one for the name and the second for the description. and then pull them to the $result array. Thank you. -
Show extra information about each product on the products page
ahmed salah replied to ahmed salah's topic in Developer Corner
Sorry for that i thought it doesn't matter where the product showed. What should i edit at my hook file, i'm using the regular way to output the product i get them from the function homepage_products_hook($vars) { $client = Menu::context('client'); $products = Capsule::table('tblproducts') ->join('tblpricing', 'tblproducts.id', '=', 'tblpricing.relid') ->select('tblproducts.*','tblpricing.*') ->where('tblpricing.type', 'product') ->where('tblproducts.hidden','0') ->where('tblproducts.gid','1') ->groupBy('tblproducts.order') ->get(); foreach ($products as $data) { echo $data->normalPrice; } $encodedata = json_encode($products); $decodedata = json_decode($encodedata, true); return array("myproducts" => $decodedata); } -
ahmed salah started following brian!
-
Show extra information about each product on the products page
ahmed salah replied to ahmed salah's topic in Developer Corner
The above screenshot is from the Homepage where is display my products using Hooks. It's working good on orderform, so the name is not displayed only on the pages i made. -
Show extra information about each product on the products page
ahmed salah replied to ahmed salah's topic in Developer Corner
really this is easy for translation, i did a lot of work to translate it on my way. but i tried it and no results appear for on the product page. I'm the developer of the theme and i'm confusing how to do it (Most Popular Tag), i'm working on Six Theme -
Show extra information about each product on the products page
ahmed salah replied to ahmed salah's topic in Developer Corner
For example i want to add product name in Arabic Lang, or add some tags to the product like the Most popular plan. in the product description i just write the product specifications (details). -
Show extra information about each product on the products page
ahmed salah replied to ahmed salah's topic in Developer Corner
Thank you for your replay, specifically i need to show it in the product details when the user open the websites -
No there is no third party addons. As a client when i click register or signup button the whole website stops working and i you can't do any thing in both the website and as admin from the WHMCS admin also stops working, but if i opened from another browser or another device is working good. It's really confused! Let's say it take long time to register.
