Evolve Web Hosting Posted August 31, 2018 Share Posted August 31, 2018 We've created a bundle with 2 items that are free (a trial of 2 services) and I'm trying to figure out how to show $0.00 or FREE on the category page. On the admin side, it already shows $0.00 and doesn't translate to $0.00 on the client side. I searched for a solution and didn't see one. Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 1, 2018 Share Posted September 1, 2018 17 hours ago, EvolveWebHosting said: We've created a bundle with 2 items that are free (a trial of 2 services) and I'm trying to figure out how to show $0.00 or FREE on the category page. On the admin side, it already shows $0.00 and doesn't translate to $0.00 on the client side. I searched for a solution and didn't see one. Any ideas? this is a borderline bug - or certainly a clumsy implementation of the feature... the problem is that the default value for "Display Price" is 0.00 and so WHMCS assumes that you don't want to display a price for the product unless you change it - but you can't change it to FREE or even re-enter 0.00.. it sees 0 as you not wanting to display the price and the value of 0.00 isn't passed to the template. the quick fix might be to edit the products.tpl template (assuming its standard_cart) and change... {if $product.bid} {$LANG.bundledeal}<br /> {if $product.displayprice} <span class="price">{$product.displayprice}</span> {/if} to... {if $product.bid} {$LANG.bundledeal}<br /> {if $product.displayprice} <span class="price">{$product.displayprice}</span> {else} <span class="price">{$LANG.orderfree}</span> {/if} or if you want to show a 0.00 price... {if $product.bid} {$LANG.bundledeal}<br /> {if $product.displayprice} <span class="price">{$product.displayprice}</span> {else} <span class="price">{$currency.prefix}0.00{$currency.suffix}</span> {/if} the downside to this is that you must use the Display Price value for all your bundles - so either add a price or don't... but if you don't, then the bundle will be shown as free (it won't affect the actual price charged though, just what's shown on the products page). 0 Quote Link to comment Share on other sites More sharing options...
Evolve Web Hosting Posted September 1, 2018 Author Share Posted September 1, 2018 Brian - Thanks for this information and I agree, this, along with a few other things needs to be updated / fixed with bundles. I used the Free text and had to add and additional {/if} to make it work. {if $product.bid} {$LANG.bundledeal}<br /> {if $product.displayprice} <span class="price">{$product.displayprice}</span> {/if} {else} <span class="price">{$LANG.orderfree}</span> {/if} 0 Quote Link to comment Share on other sites More sharing options...
Evolve Web Hosting Posted September 1, 2018 Author Share Posted September 1, 2018 I couldn't edit my last post (pending moderation) to make this correction: {if $product.bid} {$LANG.bundledeal}<br /> {if $product.displayprice} <span class="price">{$product.displayprice}</span> {else} <span class="price">{$LANG.orderfree}</span> {/if} {/if} 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 2, 2018 Share Posted September 2, 2018 21 hours ago, EvolveWebHosting said: I used the Free text and had to add and additional {/if} to make it work. a bad copy&paste on my part, but the {/if} was already there in the code, I just didn't add it to the paste... 0 Quote Link to comment Share on other sites More sharing options...
Evolve Web Hosting Posted September 3, 2018 Author Share Posted September 3, 2018 On 9/2/2018 at 3:50 AM, brian! said: a bad copy&paste on my part, but the {/if} was already there in the code, I just didn't add it to the paste... No worries at all! Thank you for your help. 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.