Jump to content

DareDevil67

Member
  • Posts

    4
  • Joined

  • Last visited

About DareDevil67

Recent Profile Visitors

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

DareDevil67's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. I need help 1. $currency .prefix not working in my whmcs v8 2. I am using ModulesGarden Discount Center module. If I use original orderforms/standard_cart/product.tpl, the discounted price shown with red mark in product page (picture-1), But if I modify the product.tpl with your above mentioned code, then the minimum price (monthly breakdown of triennially) is shown , BUT the Discounted minimum price is NOT shown with red mark in product page (picture-2) suppose my price as follows 1 Month Price A$ 12.74 (Regular Price: A$ 14.99) 36 Month Price A$ 9.99 (Regular Price: A$ 12.49) My modified producr.tpl is {include file="orderforms/standard_cart/common.tpl"} <div id="order-standard_cart"> <div class="row"> <div class="pull-md-right col-md-9"> <div class="header-lined"> <h1> {if $productGroup.headline} {$productGroup.headline} {else} {$productGroup.name} {/if} </h1> {if $productGroup.tagline} <p>{$productGroup.tagline}</p> {/if} </div> {if $errormessage} <div class="alert alert-danger"> {$errormessage} </div> {elseif !$productGroup} <div class="alert alert-info"> {lang key='orderForm.selectCategory'} </div> {/if} </div> <div class="col-md-3 pull-md-left sidebar hidden-xs hidden-sm"> {include file="orderforms/standard_cart/sidebar-categories.tpl"} </div> <div class="col-md-9 pull-md-right"> {include file="orderforms/standard_cart/sidebar-categories-collapsed.tpl"} <div class="products" id="products"> <div class="row row-eq-height"> {foreach $products as $key => $product} <div class="col-md-6"> <div class="product clearfix" id="product{$product@iteration}"> <header> <span id="product{$product@iteration}-name">{$product.name}</span> {if $product.stockControlEnabled} <span class="qty"> {$product.qty} {$LANG.orderavailable} </span> {/if} </header> <div class="product-desc"> {if $product.featuresdesc} <p id="product{$product@iteration}-description"> {$product.featuresdesc} </p> {/if} <ul> {foreach $product.features as $feature => $value} <li id="product{$product@iteration}-feature{$value@iteration}"> <span class="feature-value">{$value}</span> {$feature} </li> {/foreach} </ul> </div> <footer> <div class="product-pricing" id="product{$product@iteration}-price"> {if $product.bid} {$LANG.bundledeal}<br /> {if $product.displayprice} <span class="price">{$product.displayprice}</span> {/if} {else} {if $product.pricing.hasconfigoptions} <br /> {/if} {if $DiscountCenterAddonIsActive} <div class="price"> {$product.pricing.minprice.price} {if $product.pricing.type eq "recurring"} <span class="price-cycle">/ {if $product.pricing.minprice.cycle eq "monthly"} {$LANG.pricingCycleShort.monthly} {elseif $product.pricing.minprice.cycle eq "quarterly"} {$LANG.pricingCycleShort.quarterly} {elseif $product.pricing.minprice.cycle eq "semiannually"} {$LANG.pricingCycleShort.semiannually} {elseif $product.pricing.minprice.cycle eq "annually"} {$LANG.pricingCycleShort.annually} {elseif $product.pricing.minprice.cycle eq "biennially"} {$LANG.pricingCycleShort.biennially} {elseif $product.pricing.minprice.cycle eq "triennially"} {$LANG.pricingCycleShort.triennially} {/if} </span> {/if} </div> {elseif $product.pricing.type eq "free"} <div class="price"> <span>{$LANG.orderfree}</span> </div> {elseif $product.pricing.type eq "onetime"} <div class="price"> <span>{$product.pricing.minprice.price} {$LANG.orderpaymenttermonetime}</span> </div> {else} <div class="package-starting-from ">{$LANG.startingat}</div> <div class="price"> {if $product.pricing.rawpricing.triennially neq -1}<span>{$currency.prefix}{($product.pricing.rawpricing.triennially/36)|string_format:"%.2f"}{$currency.suffix}</span>/mo {elseif $product.pricing.rawpricing.biennially neq -1}<span>{$currency.prefix}{($product.pricing.rawpricing.biennially/24)|string_format:"%.2f"}{$currency.suffix}</span>/mo {elseif $product.pricing.rawpricing.annually neq -1}<span>{$currency.prefix}{($product.pricing.rawpricing.annually/12)|string_format:"%.2f"}{$currency.suffix}</span>/mo {elseif $product.pricing.rawpricing.semiannually neq -1}<span>{$currency.prefix}{($product.pricing.rawpricing.semiannually/6)|string_format:"%.2f"}{$currency.suffix}</span>/mo {elseif $product.pricing.rawpricing.quarterly neq -1}<span>{$currency.prefix}{($product.pricing.rawpricing.quarterly/3)|string_format:"%.2f"}{$currency.suffix}</span>/mo {elseif $product.pricing.rawpricing.monthly neq -1}<span>{$currency.prefix}{($product.pricing.rawpricing.monthly/1)|string_format:"%.2f"}{$currency.suffix}</span>/mo {else}{$product.pricing.minprice.cycleText} {/if} </div> {/if} <br> {if $product.pricing.minprice.setupFee} <small>{$product.pricing.minprice.setupFee->toPrefixed()} {$LANG.ordersetupfee}</small> {/if} {/if} </div> <a href="{$WEB_ROOT}/cart.php?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}" class="btn btn-success btn-sm" id="product{$product@iteration}-order-button"> <i class="fas fa-shopping-cart"></i> {$LANG.ordernowbutton} </a> </footer> </div> </div> {if $product@iteration % 2 == 0} </div> <div class="row row-eq-height"> {/if} {/foreach} </div> </div> </div> </div> </div>
  2. Hello there, Suppose my product price is 30/monthly 75/quarterly 120/semiannually 180/annually $360/triennially. If I want to display in my html page the monthly cheapest price , I will take the option of triennially price . Generally I can use <script language="javascript" src="feeds/productsinfo.php?pid=5&get=price&billingcycle=triennially&currency=1"></script> But it need to display that price by monthly breakdown i.e. 10/month by using product pricing feed code. How can change the pricing feed code?
  3. Hello there, Suppose my product price is 30/monthly 75/quarterly 120/semiannually 180/annually $360/triennially. If I want to display in my html page the monthly cheapest price , I will take the option of triennially price . Generally I can use <script language="javascript" src="feeds/productsinfo.php?pid=5&get=price&billingcycle=triennially&currency=1"></script> But it need to display that price by monthly breakdown i.e. 10/month by using product pricing feed code. How can change the pricing feed code?
×
×
  • 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