Jump to content

BAJI26

Retired Forum Member
  • Posts

    1000
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by BAJI26

  1. @brian! Hi there, digging up an old post here bud. Based on the Hook below how can I get the pricing options so that when the client chooses a price option and click buy that chose get transferred to the cart! <select name="billingcycle" class=""> <option value="monthly">1 Month - $15.99</option> <option value="quarterly">3 Months - $47.97</option> <option value="semiannually">6 Months - $95.94</option> <option value="annually">1 Year - $191.88</option> </select> <?php use Illuminate\Database\Capsule\Manager as Capsule; function RG_cloud_hosting_hooks($vars) { if ($vars['templatefile'] == "cloud_hosting") { $myproducts = Capsule::table('tblproducts') ->join('tblpricing', 'tblproducts.id', '=', 'tblpricing.relid') ->select('tblproducts.*','tblpricing.*') ->where('tblpricing.type', 'product') ->where('tblproducts.hidden','0') ->where('tblproducts.gid', '36') ->groupBy('tblproducts.id') ->get(); $encodedata = json_encode($myproducts); $decodedata = json_decode($encodedata, true); return array("myproducts" => $decodedata); } } add_hook("ClientAreaPage", 1, "RG_cloud_hosting_hooks"); ?>
  2. I'm having an issue with Weebly Website Builder. See the screenshots!
  3. In WHMCS Admin you can put extensions on [highlight]sale[/highlight], I only want to display 6 manually chosen extensions with their prices. Like I have on my homepage!
  4. Question: Is there a way to have just enter the smarty tag with the product ids.... like for product 1= {$myproduct.pid=18}, product 2= {$myproduct.pid=19} So if I have more than one groups on the page I can just enter the PID for the product.??
  5. I wanna use it for my homepage where I have those 6 or so domains!
  6. I've done a few pages so far but I have a page with 2 groups, so I did this ->where('tblproducts.gid', '13,2') but group 2 doesn't show! How can I have 2 groups on 1 page? Also how to show the domain pricing on homepage?
  7. Thanks! So I can use what you did and apply it to other pages just create another hook php file correct?
  8. Ok! Thanks! Exactly what I wanted! I've used <span>${$myproducts.0.monthly}</span>/Monthly on the different packages and just changed the 0 to 1 and it will show for the next package which worked for 3 of the 4 but the 4th package no price shows... What is that number in relation to the product itself?
  9. Yes,I wanna get it working first then I'll play and learn.... I don't have that [highlight]$myproducts[/highlight] in the debug window
  10. What should I look for in the pop-up page after I added {debug}?
  11. I did put in the gid and also just used the last snippet above and the site still renders blank page... none accessible! I removed the last line add_hook("ClientAreaPage", 1, "homepage_products_hook"); and the site comes back...
  12. Hi, this is what my hook php file looks like: <?php $products = Capsule::table('tblproducts') ->join('tblpricing', 'tblproducts.id', '=', 'tblpricing.relid') ->select('tblproducts.*','tblpricing.*') ->where('tblproducts.gid', 'x') ->where('tblpricing.type', 'product') ->get(); ?> But it makes my site blank...
  13. Where do I put that code and how to add it to the custom page to show the particular price, description?
  14. Its a pricing table for hosting plans, if I use the javascript data feed it slows the page down dramatically because I have 4 plans on one page.
  15. Is there a way to show the product name, product price and product description on custom whmcs page without using the javascript data feed?
  16. Look like I'm going to bailout too! http://www.digitalfaq.com/editorials/websites-blogs/hostgator-alternatives-eig-pt1.htm
×
×
  • 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