close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Still an open issue with eCart/PowerStore changes.

Thread began 4/26/2010 3:10 pm by carlene | Last modified 4/27/2010 11:37 am by carlene | 5199 views | 9 replies |

carleneBeta Tester

Still an open issue with eCart/PowerStore changes.

Hello!
Please help - or give some sort of advice to eCart5/PowerStore 3 interfunctionality!

This is an extension of this thread that I started and Eric mistakenly thought was solved (but that was my PayPal issue that was solved.)
showthread.php?t=12324

I am working with eCart 5 and PowerStore 3 and have Security Assist as well as Data Assist. (So I've invested a lot of $$ into WebAssist products!)

I'm trying to change the Field that PowerStore 3 adds up. I've added a field to my database called ProductCost. I need ProductCost to be what the store adds up instead of ProductPrice. (ProductPrice is still there - I'm just showing that.) I've already painstakingly populated my database with all info. Over 250 items - so changing the database will be a big problem.

Can I use eCart to do this? And How do I without messing everything up? Can I just change the eCart object like is detailed in the Changing PowerStores Payment Gateway with eCart .pdf?

In general I'm needing much more input on how to get your products to interrelate with the PowerStore3 product.

Please help!

Sign in to reply to this post

Jason ByrnesWebAssist

the simplest way to solve this is to change the binding for the price that is passed to the cart.


On the product detail page, find the following code:
$ATC_itemPrice = floatval("".$row_WADAProducts['ProductPrice'] ."");// column binding


and change that to:
$ATC_itemPrice = floatval("".$row_WADAProducts['ProductCost'] ."");// column binding


This way the value pof product cost will be passed to the cart instead of ProductPrice.


You could use eCart to mange things as well, but that will get much more difficult.

Sign in to reply to this post

carleneBeta Tester

Jason,

THANK YOU!!!!! Hurray! You rock! That worked. My cart now adds up the ProductCost field. Whoopeee!

Ok - now it won't let me past the confirm.php page. I have no payment gateway and no shipping with this store. It should be going to checkout_success.php right?

When I click Confirm on confirm.php - it just sits there.
?

Sign in to reply to this post

Jason ByrnesWebAssist

Is the order being stored in the database?

Is the email receipt being sent out?


there could be a php error occurring which is preventing the header function from processing through to the success page.

Tray adding the following code at line 1 to turn error reporting on:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>
Sign in to reply to this post

carleneBeta Tester

Jason,
Yes - the order is being saved to the database and I do get the email - but the page doesn't change.

Which pages should I post that error reporting code to?

Thanks!

Carlene

Sign in to reply to this post

carleneBeta Tester

Also - Dreamweaver gives me the following message on the confirm.php page when I check the Server Behaviors.

"It appears one of your server-side values is improperly coded. Please check this interface for inconsistencies."

Nice for it to tell me that there is a problem. But that's not super specific and I'm unsure as to what to be looking for.

Sign in to reply to this post

Jason ByrnesWebAssist

The error reporting code shold go on the confirm page.

which server behavior gives you this error message?

can you send a copy of the confirm.php page so I can take a look.

Sign in to reply to this post

carleneBeta Tester

Hey Jason - I also noticed that both the scripts for Authorize.net and PayPal processing are on this confirm.php page. Even though I designated No Payment Gateway in my store settings. I'm guessing that's the problem?

The store is here: store

I've turned off the protected access to that page for now. I'm just testing the store so you can even make an order because it doesn't really go anywhere but the database and I'm the only person accessing it right now.

Attached Files
confirm.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the code for all of the gateways and all of the shipping service providers needs to be in the confirm page, it is only used though, if you enable them in the store settings.

It looks like the success redirect is not getting set for some reason.

try changing:

php:
<?php

if ((isset($_POST["Submit_order"])))     {
  
//WA Universal Email object="mail"
  //Send Loop Once Per Entry
  
$RecipientEmail "".((isset($_POST["email"]))?$_POST["email"]:"")  ."";include("WA_Universal_Email/WAUE_confirm_1.php");

    unset(
$_SESSION['WA_ECart_Coupons']);

  
//Send Mail All Entries
  
if (""!="")     {
    
header("Location: ");
  }
}
?>




to:

php:
<?php

if ((isset($_POST["Submit_order"])))     {
  
//WA Universal Email object="mail"
  //Send Loop Once Per Entry
  
$RecipientEmail "".((isset($_POST["email"]))?$_POST["email"]:"")  ."";include("WA_Universal_Email/WAUE_confirm_1.php");

    unset(
$_SESSION['WA_ECart_Coupons']);

  
//Send Mail All Entries
  
if ("checkout_success.php"!="")     {
    
header("Location: checkout_success.php");
  }
}
?>
Sign in to reply to this post

carleneBeta Tester

Jason,

Great! Thanks very much. That fixed the problem!

- Carlene

Sign in to reply to this post
loading

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