Jump to content

BAJI26

Member
  • Posts

    1000
  • Joined

  • Last visited

  • Days Won

    1

BAJI26 last won the day on October 29 2016

BAJI26 had the most liked content!

About BAJI26

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

BAJI26's Achievements

Senior Member

Senior Member (3/3)

1

Reputation

  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?
×
×
  • 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