Jump to content

jgshier

Member
  • Posts

    11
  • Joined

  • Last visited

Everything posted by jgshier

  1. So we seem to have clients come in create account and order. They will go through check out, but don't actually pay via our payment gateway paypal. Maybe they decided not to complete the order, not sure. Is there away if they come back and sign back in to order again, to not allow them until they cancel or completed the pending order?
  2. So I ended up doing a backup and then just doing a fresh install of 7.5.1, then a restore. That fixed the issue. Thanks for your help!
  3. Upgraded from 7.4.2 to 7.5.0 which it was working, Then upgraded to 7.5.1. I tried two different templates, we normally use the Premium Comparison, but I tried the Standard Cart. When I am in the product I see then in the URL cart.php?a=confproduct&i=0, I then try to hit continue. I see this cart.php?configure=true&i=0&configoption%5B7%5D=10, which just redirects me back to the products. There is nothing in apache [19/Apr/2018:11:07:55 -0400] "GET /cart.php?configure=true&i=0&configoption%5B7%5D=10 HTTP/1.1" 200 5454 "https://myhost/cart.php?a=confproduct&i=0" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36"
  4. After the upgrade to 7.5.1 any of products with any configurable options stopped worked, if they try to add to cart, it just redirects them back the the product listings. Nothing gets added to cart. Not seeing anything in the logs. Anything I can do or check? Jon
  5. Why do my posts have to be approved? Anyway in digging i have this included at the top of my tpl file. <script src="https://netdna.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> Which seems to be the cause. Can I not include this js ?
  6. I have an addon I created with a hook to add child. Which works when I'm on a the home page, the Store shows a drop down and Account shows a drop down. But if I click my addon, it goes to the page just fine. But once the page loads I can see each menu has a drop down option with arrow, but none work. I don't see any errors in the whmcs activity log. Is there away to fix? add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { $primaryNavbar->addChild('My Lists') ->setOrder(70); $primaryNavbar->getChild('My Lists') ->addChild('Channel List', array( 'label' => 'List 1', 'uri' => 'index.php?m=list1', 'order' => '1', )); $primaryNavbar->getChild('My Lists') ->addChild('List 2', array( 'label' => 'List 2', 'uri' => 'index.php?m=list2', 'order' => '2', )); });
  7. Think i got it to work, but is there a better way ? {literal} <script> $(document).ready(function(){ {/literal} {for $j=1 to $z} {literal}$('#bigimg-{/literal}{$j}{literal}').bighover({ width: '{/literal}{$configMouseOverZoomSizeChannels}{literal}', height: 'auto'});{/literal} {/for}{literal} }); </script> {/literal}
  8. This is what I have in a normal php file <?php $x =10; ?> <script> $(document).ready(function(){ <?php for ($j=1;$j<=$x;$j++) { echo " $('#bigimg-$j').bighover({ width: 'auto', height: '300' });"; } ?> }); </script> How do I convert that ?
  9. I know you can do a foreach, but is there a for loop ? Like in php ? I need to do this in the template file for images that need to their own id. $x = 10; for ($j=1;$j<=$x;$j++) { echo "something".$j }
  10. Total newbe here, I have created a hook to run a php function, that function goes and curls a site and gives back an array of category_id and category_name. Which I want to display on my template page. My template page, I am doing: {foreach from=$categories item=items} List : {$items.category_id} - {$items.category_name}<br> {/foreach} Now I want to take the category_id and pass it back to a new function (hook_get_titles) which will give back titles that are in that category. How can I pass the category_id back ? function hook_get_categories($vars) { //Action $url = 'some webpage'; $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0, CURLINFO_HEADER_OUT => true, CURLOPT_HEADER => false, )); $content = curl_exec($ch); //$information = curl_getinfo($ch); curl_close($ch); $categories = json_decode($content, true); return array("categories" => $categories); } add_hook('ClientAreaPage', 1, 'hook_get_categories'); function hook_get_titles($categories_id) { $url = 'some webpage/?categories_id='.$categories_id; $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_SSL_VERIFYHOST => 0, CURLOPT_SSL_VERIFYPEER => 0, CURLINFO_HEADER_OUT => true, CURLOPT_HEADER => false )); $content = curl_exec($ch); curl_close($ch); $titles = json_decode($content, true); return array("titles" => $titles); } add_hook('ClientAreaPage', 1, 'hook_get_title');
×
×
  • 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