close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PayPal Standard Gateway (Currency to GBP)

Thread began 10/05/2010 8:50 am by info405361 | Last modified 10/07/2010 2:19 pm by info405361 | 1123 views | 8 replies |

info405361

PayPal Standard Gateway (Currency to GBP)

Hi All

I have puchased PS4 and have updated the all the $ to £ on the pages, now all i have is make paypal do the same when going to paypal to pay.

I have found process_transaction.php with the webassist\plugins\shopping_cart\ dir

I then found the hidden for element

<input type="hidden" name="currency_code" id="currency_code" value="USD" />



and replaced with

<input type="hidden" name="currency_code" id="currency_code" value="GBP" />



Yet when going through checkout to paypal, paypal still shows $ (USD) as the currency.

Please could anyone help tell me which files within the cart process send the currency variable to paypal?

Thanks

Sign in to reply to this post

Ray BorduinWebAssist

That should be the correct code and location. Do you have a sample url where I can look at it? When you view the hidden form on the confirm.php page does it have the updated hidden form element with value="GBP"?

That should be the correct location.

Sign in to reply to this post

info405361

Thank you -

Hi Ray

Thanks for the speedy reply, i have found that my ftp put was being blocked due to chown issue. fixed and my GBP changes have been uploaded and work fine now.

However, on the cart.php file I can not locate the location of the $'s as they are part of a php function

example

<?php if($WA_Store_Cart->DisplayInfo("AdjustedPrice")!=$WA_Store_Cart->DisplayInfo("Price")) { ?>



please could i be pointed in the right location to change the $ to £ when being pulled by php rather than just text on screen.

Kinds

Sign in to reply to this post

Ray BorduinWebAssist

In this case the dollar sign is not coming from the code you have supplied. That will return a number without a symbol. Perhaps the symbol is in the code immediately before this code?

Do a site wide find using the regular expression:

\$"\s*\.\s*num|\$\s*<\?php

That should find the $ symbols you need to replace

Sign in to reply to this post

info405361

Nope

this is the code in cart_editable.php line 233 > 239

<!-- price -->
<td class="price">
<?php if($WA_Store_Cart->DisplayInfo("AdjustedPrice")!=$WA_Store_Cart->DisplayInfo("Price")) { ?>
<span style="text-decoration:line-through;color:red"><?php echo WA_eCart_DisplayMoney($WA_Store_Cart, $WA_Store_Cart->DisplayInfo("Price")); ?></span>
<?php } ?>
<?php echo WA_eCart_DisplayMoney($WA_Store_Cart, $WA_Store_Cart->DisplayInfo("AdjustedPrice")); ?>
</td>



As you can see there is no $ only what is part of the php, i have done the site wide search using the xpression but this does not seen to find anything related to the $'s found on confirm.php when checking out

Pls forgive me if im being daft here?

Sign in to reply to this post

Ray BorduinWebAssist

Yes... this is coming from the call:

WA_eCart_DisplayMoney()

Which takes the currency symbol defined in the cart. You can update that in the file WA_eCart/WA_Store_Cart_PHP.php on line 436

Sign in to reply to this post

Endrio

switch Currency

Hi info405361
can you tell me what exactly are the pages where you've changed the currency, I also want to switch from dollar to euro.

I would be grateful if you help me.

Endrio

Sign in to reply to this post

Ray BorduinWebAssist

I don't have an exact list. You can do a site wide search for the regular expression:

\$"\s*\.\s*num|\$\s*<\?php

That will find most of them, but you'll have to replace them manually. Then get the one referenced above and I think that should do it for all of the currency symbols displayed.

Sign in to reply to this post

info405361

sublexam some

Hi Ray, thank you for your help.

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