Jump to content
  • 0

Rewrite pricing system


shivsingh7150

Question

what it is possible to override price display part for Zero amount products.

I am want to show Free in place of $ 0.00 USD

Please help me if any one know such possibility. i know we can do by JS/jQuery but it will take time according to every pages but if possible to  over ride like Magento then it will be very helpful.

Thanks

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
7 hours ago, indy0077 said:

Hi, did you fix it? I have the same question. I want to display at front-end "FREE" instead of $0,00 for products which have the price set up to "Free" in Products/Services > Product>Pricing

                                        {if $product.bid}
                                            {$LANG.bundledeal}<br />
                                            {if $product.displayprice}
                                                <span class="price">{$product.displayprice}</span>
                                            {/if}
                                        {elseif $product.pricing.type eq "free"}
                                                <span class="price">{$LANG.orderfree}</span>
                                        {else}
                                            {if $product.pricing.hasconfigoptions}
                                                {$LANG.startingfrom}
                                                <br />
                                            {/if}

... and I haven't forgotten about the other issue @indy0077 if you still need me to help with that.

Link to comment
Share on other sites

  • 0
3 hours ago, brian! said:

                                        {if $product.bid}
                                            {$LANG.bundledeal}<br />
                                            {if $product.displayprice}
                                                <span class="price">{$product.displayprice}</span>
                                            {/if}
                                        {elseif $product.pricing.type eq "free"}
                                                <span class="price">{$LANG.orderfree}</span>
                                        {else}
                                            {if $product.pricing.hasconfigoptions}
                                                {$LANG.startingfrom}
                                                <br />
                                            {/if}

... and I haven't forgotten about the other issue @indy0077 if you still need me to help with that.

... in  products.tpl or an another file?

P.S. thanks, that you are thinking of me... so far it's all fine, the only thing I need is, that if a product has "Free" or "One Time" price the front end displays nothig. Not $0,00 (or FREE) nor the price of "One Time" price...

Edited by indy0077
Link to comment
Share on other sites

  • 0
14 hours ago, indy0077 said:

... in  products.tpl or an another file?

in the above, I was thinking purely of products.tpl - were you thinking beyond of that ??

instinctively, i'd do this with a hook I think (though that would be to avoid editing the template - if you've already editing the template, there is not much to be gained) - unless you wanted to tweak ordersummary as that would need a template tweak.

6vd9utc.png

15 hours ago, indy0077 said:

P.S. thanks, that you are thinking of me... so far it's all fine, the only thing I need is, that if a product has "Free" or "One Time" price the front end displays nothing. Not $0,00 (or FREE) nor the price of "One Time" price...

{if $product.bid}
	{$LANG.bundledeal}<br />
	{if $product.displayprice}
		<span class="price">{$product.displayprice}</span>
	{/if}
{elseif in_array($product.pricing.type,array("free","onetime"))}
{else}
	{if $product.pricing.hasconfigoptions}
		{$LANG.startingfrom}<br />
	{/if}

D2IJpl6.png

if it doesn't like in_array, then it's a double condition empty elseif statement...

{elseif $product.pricing.type eq "free" or $product.pricing.type eq "onetime"}
Link to comment
Share on other sites

  • 0
On 4/3/2020 at 6:40 PM, brian! said:

                                        {if $product.bid}
                                            {$LANG.bundledeal}<br />
                                            {if $product.displayprice}
                                                <span class="price">{$product.displayprice}</span>
                                            {/if}
                                        {elseif $product.pricing.type eq "free"}
                                                <span class="price">{$LANG.orderfree}</span>
                                        {else}
                                            {if $product.pricing.hasconfigoptions}
                                                {$LANG.startingfrom}
                                                <br />
                                            {/if}

... and I haven't forgotten about the other issue @indy0077 if you still need me to help with that.

Ok, this works on the standard cart tempalte, but not here

 

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
Answer this question...

×   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