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

Currency to £ for cart.php and confirm.php

Thread began 2/24/2010 7:49 am by nicola.goodenough317043 | Last modified 2/26/2010 6:23 am by nicola.goodenough317043 | 969 views | 3 replies |

nicola.goodenough317043

Currency to £ for cart.php and confirm.php

I am new (bet you noticed from the query).

I am following the instructions in "Changing Currency in PowerStore" for PowerStore3. I am using Dreamweaver CS3 to make the changes. I have succeded with all the pages including Admin/Products_Insert.php (thanks Ben Bradley), except cart.php and confirm.php.

Am I right in assuming the files are in the root directory of PowerStore3? If so, I can see many places where there might be a currency symbol, but cannot see any dollar sign in design or code view. However, I can see in the code where it might go, for example

line 584 in cart.php: between the tags, before the start of the php echo statement

<td class="discounts"> <?php echo WA_eCart_DisplayMoney($WA_Store_Cart, $WA_Store_Cart->TotalColumn("AppliedDiscount")); ?></td>

Or am I totally on the wrong track? If so, can someone set me right?

Many thanks, Nick

Sign in to reply to this post

i.edwards384429

£

Hi

I think you will find line 366 in WA_store_cart_php.php controls the £/$ sign in cart.php

HTH

Ian

Sign in to reply to this post

Jason ByrnesWebAssist

yes, the cart.php and confirm.php files are in the root of the power store directory.

the code you posted uses the eCart WA_eCart_DisplayMoney function which cases the price to display using the currency symbol you specify in the eCart object.


I dont see anywhere in the cart of confirm page where the WA_eCart_DisplayMoney function is not used.

as long as the eCart object has been edited on line 366:

php:
$WA_Store_Cart = new WA_Store_Cart_Definition("WA_Store_Cart", 0, "$", true, 2, 0, "oz", true, 2, 1, 0);




to use the currency symbol you wish, those pages should be fine:&pound;

php:
$WA_Store_Cart = new WA_Store_Cart_Definition("WA_Store_Cart", 0, "&pound;", true, 2, 0, "oz", true, 2, 1, 0);
Sign in to reply to this post

nicola.goodenough317043

Currency to £ for cart.php and confirm.php

Many thanks. I have made the changes you suggested, and successfully uploaded them. Everything seems fine. Regards, Nick

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