Jump to content

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

Junior Member (1/3)

1

Reputation

  1. 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.
  2. 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.
  3. 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); }
  4. 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.
  5. 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
  6. 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).
  7. Thank you for your replay, specifically i need to show it in the product details when the user open the websites
  8. I'm trying to add some extra information to show it to user on the website. i tried to read about custom filed but i didn't understand it well. for example if i want to add tags to each product and then display it on the website, how can i do it ?
  9. Solved The problem was in the SMTP, there was a mistake with SMPT configurations. WHMCS tech support. Thanks to @brian! and @zitu4life and WHMCS support.
  10. Yes when login it's working normally. I think i will open a ticket. For .co domain i'm not offering them and the website is still need more updates. Thank you @brian! If the issue is resolved, update the topic.
  11. 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.
  12. Thank you for replay. I renamed the file as @brian! said but nothing happen, still the same problem, when user register the WHMCS admin and the client area hang. If the problem is caused by the theme files or the hook, why dose the WHMCS admin affected ?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated