close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Sgepay integration edits

Thread began 3/27/2011 6:47 am by josephman1988419833 | Last modified 3/29/2011 2:59 pm by Jason Byrnes | 994 views | 3 replies |

josephman1988419833

Sgepay integration edits

Hi guys,

Another thing;
On pass through to the sage-pay test pages, the delivery is actually named: collection.
How do I change this?

And at the moment, if delivery is free it doesn't pass the '0' value through, it just omits it altogether, I want to be able to pass the 0 value through so it shows it to the user.

Hope someone can help,
Regards,
Joe.

=================
Edit
=================
Changed the name from collection to delivery via ecart.php, where it assigns the shipping rule.
Still stumped on passing the 0 value through though.

Again any help would be great.

Sign in to reply to this post

Jason ByrnesWebAssist

Which sagepay integration method are you using? VSP Server or VSP Form.

Sign in to reply to this post

josephman1988419833

Hi,

Thanks for replying, we are using VSP Form.

Sign in to reply to this post

Jason ByrnesWebAssist

In the WA_eCart/checkoutScripts/Protx_VSPForm.php file, edit lines 133 - 137:

php:
if ($theCart->RuleLooperValue($tempParam) > 0) {

                $theBasket .= ":".$theCart->RuleLooperName($tempParam).":::::".WA_eCart_DisplayMoney($theCart, $theCart->RuleLooperValue($tempParam));
                $theCart->MoveNext();
                $basketCount++;
            }




to:

php:
if ($theCart->RuleLooperValue($tempParam) > 0) {

                $theBasket .= ":".$theCart->RuleLooperName($tempParam).":::::".WA_eCart_DisplayMoney($theCart, $theCart->RuleLooperValue($tempParam));
                $theCart->MoveNext();
                $basketCount++;
            } else {
                $theBasket .= ":".$theCart->RuleLooperName($tempParam).":::::0");
                $theCart->MoveNext();
                $basketCount++;
            }
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...