close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

pricing display in powerstore 4

Thread began 11/03/2011 4:21 am by studio366170 | Last modified 11/03/2011 6:02 pm by studio366170 | 537 views | 3 replies |

studio366170

pricing display in powerstore 4

Hi, Just wondering if there is any way to have only the dollar value display, and not the cents..
eg

instead of having 25.00

it would display

25

(a client wants to be able to do this. seems odd, but is there a way to do it?)

Thanks in advance!

Sign in to reply to this post

studio366170

Please help... desparately need advice on how to do this !

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

This is not supported in power store, you would need to manually edit the code for every page that displays a price to change the number format.


for example, the featured product on the index page is generated in the webassist/plugins/catalog/featuredbox.php file using this code:

php:
<?php echo(($row_FeaturedRS)?(number_format($row_FeaturedRS['ProductPrice'],2)):"24.99"); ?>



you would need to edit the number format to 0:

php:
<?php echo(($row_FeaturedRS)?(number_format($row_FeaturedRS['ProductPrice'],0)):"24"); ?>




there are to many other places where a price is displayed to list them all for you.

Sign in to reply to this post

studio366170

Thanks Jason! I think it makes more sense to have the cents anyway..... :)

Simone

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...