mazaamahesh Posted March 4, 2014 Share Posted March 4, 2014 i dont have a knowelege about php so can any developer tell me how can i hide Choose Product from ajax order form. I can do it using apply a comment in products.tpl in some lines then it hides, and work perfectly as i want. but it's not showing products on cart.php so can any one help me with this ? 0 Quote Link to comment Share on other sites More sharing options...
mazaamahesh Posted March 4, 2014 Author Share Posted March 4, 2014 i forget to tell that i want to hide on when we click on Direct Shopping Cart Link to whmcs it shows Choose Product in ajax order form. i want to just hide it. thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 4, 2014 Share Posted March 4, 2014 if you just wanted to remove "Choose Product" from the forms, you could remove {$LANG.cartchooseproduct} from products.tpl, adddomain.tpl and addons.tpl... or just edit its entry in language files (e.g., lang/english.php) $_LANG['cartchooseproduct'] = "Choose Product"; 0 Quote Link to comment Share on other sites More sharing options...
mazaamahesh Posted March 4, 2014 Author Share Posted March 4, 2014 when we click on whmcs direct link other order form not show the choose product categories Options but ajax cart showing it. i just want to hide it from ajax cart it should be show only register domain transfer domain I Want To Keep My Domain Name Somewhere Else. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 4, 2014 Share Posted March 4, 2014 can you post a screenshot of what you're seeing and what you want to remove. 0 Quote Link to comment Share on other sites More sharing options...
mazaamahesh Posted March 4, 2014 Author Share Posted March 4, 2014 want to hide selected area. i can hide it using applying comment in product.tpl but when i do it it will also hide from cart.php 0 Quote Link to comment Share on other sites More sharing options...
mazaamahesh Posted March 5, 2014 Author Share Posted March 5, 2014 any help in this ? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 5, 2014 Share Posted March 5, 2014 just to be clear.. if someone uses a direct link to the cart, you don't want them to see the blue box... for everyone else who doesn't use a direct link, you do want them to see the blue box ? for these direct linked products, do you want them to be purchased only via direct links, or can they be purchased through the cart as normal ? 0 Quote Link to comment Share on other sites More sharing options...
mazaamahesh Posted March 6, 2014 Author Share Posted March 6, 2014 Thanks for reply brian, if someone uses a direct link to the cart, i don't want them to see the blue box. for everyone else who doesn't use a direct link, yes i want them to see the blue box . when we use a direct link to purchase the Products only ajax cart order form show the blue box. other any order form did not show the blue box. i just want to hide the blue box from the ajax cart as other order form work. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 7, 2014 Share Posted March 7, 2014 ok... this was tricky, but I think it can be done... in ajaxcart/products.tpl, you just need to replace ~line 14 <h2>{$LANG.cartchooseproduct}</h2> with... {if (!$smarty.server.QUERY_STRING|strstr:'pid=')} <h2>{$LANG.cartchooseproduct}</h2> and then replace at ~line 39 {if $numitemsincart}<div id="checkoutbtn"><input type="button" value="{$LANG.ajaxcartcheckout}" onclick="checkout()" /></div>{/if} with... {if $numitemsincart}<div id="checkoutbtn"><input type="button" value="{$LANG.ajaxcartcheckout}" onclick="checkout()" /></div>{/if} {/if} with those changes made - direct links shouldn't show the blue box; everyone else should see it as normal. 0 Quote Link to comment Share on other sites More sharing options...
mazaamahesh Posted March 8, 2014 Author Share Posted March 8, 2014 Dear Brian, Thanks for your solution. it working fine. but created 1 new issues. like when we click on home button it's show blank page. like public_html/whmcs/index.php waiting for your reply. Thanks again. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 8, 2014 Share Posted March 8, 2014 can you enable display php errors in general settings -> other (3rd checkbox from bottom) and let me know of any error messages... also, in utilities -> logs -> activity log any error messages in there... 0 Quote Link to comment Share on other sites More sharing options...
mazaamahesh Posted March 8, 2014 Author Share Posted March 8, 2014 Hooks Debug: Hook File Loaded: /home/infralig/public_html/billing/includes/hooks/example.php Hooks Debug: No Hook Functions Defined Hooks Debug: Called Hook Point ClientAreaFooterOutput 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 8, 2014 Share Posted March 8, 2014 I think you've ticked the wrong checkbox - it should be the display errors box... http://prntscr.com/2yxhd4 0 Quote Link to comment Share on other sites More sharing options...
mazaamahesh Posted March 8, 2014 Author Share Posted March 8, 2014 HI, yes i have only enabled Tick to enable PHP Error Reporting (Not recommended for production use) but it's not showing anything on index.php, also nothing in activity log 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 8, 2014 Share Posted March 8, 2014 (edited) can you PM a link to your site - I probably need to see this to help further... update: for anyone wanting to use this code, it works fine - there was another issue with mazaamahesh's site that was causing his error. Edited March 8, 2014 by brian! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.