Jump to content

Showing $0.00 for Bundle


Recommended Posts

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}

xYMvfrL.png

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).

Link to comment
Share on other sites

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}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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