close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

ecommerce question

Thread began 8/14/2014 3:46 pm by Webbie | Last modified 8/26/2014 6:53 am by Jason Byrnes | 2486 views | 15 replies |

Webbie

ecommerce question

Jason,
I am wanting to add another select list into my product details page and Just want to check before i do anything,

I have to adjust my ecart object, then update my shopping cart, then add the product option recordset, then do the add to cart button again.

If i go through this process will this mess up my gateway portal and paypal information that i already have set up?

Or is there a more simple way to do this, like copy and paste the php code, add a recordset then point that to the select list?


Just want to make sure if i should go through the whole process or not just to make one more select list, my database is alll ready for it.

Thank you

Sign in to reply to this post

Jason ByrnesWebAssist

add the new column to the cart object, create the new option recordset. edit the add to caret buttons to add the new option select list and edit the cart display to show the new column should be all you need to do.

Sign in to reply to this post

Webbie

Got the add to cart button adjusted, record sets done, populated the new select list, and adjusted the shopping cart.

Problem im having is when i click on checkout from the detail page to go to the shopping cart i get a blank white screen, i used that code you gave me to turn on errors and put it into the template page for problem page, did not work.

The problem page is : http://ewebsolutionsinc.com/buy_package_detail.php?ProductID=108%20&pageNum_WADAProducts_3=5

It seems it will not go to the products_cart page where shopping cart is...

Any idea why its going blank and wont display error's? How can i fix this?

Talk to ya Monday,
Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

error reporting needed to be on the product_details.php page. it shows:

Notice: Use of undefined constant ServicePrice - assumed 'ServicePrice' in /home1/ewebsol3/public_html/ewebsolutionsinc/WA_eCart/eCartEWEB_PHP.php on line 208

Fatal error: Unsupported operand types in /home1/ewebsol3/public_html/ewebsolutionsinc/WA_eCart/eCartEWEB_PHP.php on line 208


This is caused by the total price calcualtion, in both total price and tru price, you refe to the [ServicePrice] column. that column does not exist, it is named ServicePriceInc, not ServicePrice

Sign in to reply to this post

Webbie

Ok thanks,
Yes that makes sense because serviceprice is just the name of item and servipriceinc is the actuall price increase that goes on the cart. Got it.
Where is that again?
Do i edit that in ecart object or edit cart from recordset?

Sign in to reply to this post

Jason ByrnesWebAssist

it is in the calculations in the ecart object.

Sign in to reply to this post

Webbie

Thanks Jason,
I got the checkout cart working.

My checkout button on the cart page does not take me to the payment gateway page it just reloads.

Any ideas whats happening here?

Sign in to reply to this post

Jason ByrnesWebAssist

there is no redirect set for the checkout server behaivor.

The checkout button code is at line 43 - 61:

<?php
//WA eCart Redirect Check Out
if (isset($_POST["eCartEWEB_Checkout"]) || isset($_POST["eCartEWEB_Checkout_x"])) {
$Redirect_redirStr="";
if ($Redirect_redirStr != "") {
if (isset($_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "") {
if (strpos($Redirect_redirStr, "?") === false) {
$Redirect_redirStr .= "?".$_SERVER['QUERY_STRING'];
}
else {
$Redirect_redirStr .= "&".$_SERVER['QUERY_STRING'];
}
}

$eCartEWEB->redirStr = $Redirect_redirStr;
}
$eCartEWEB->cartAction = "Checkout";
}
?>


edit line 46 of the cart page:

$Redirect_redirStr="";



to set the redirect for the checkout button.

$Redirect_redirStr="checkout.php";
Sign in to reply to this post

Webbie

Thanks,
Do you know how i can create a blank spot in the dynamic drop down list for products so customers have the option of not purchasing some of my addons?

Sign in to reply to this post

Jason ByrnesWebAssist

add a blank option:

<option value=""></option>

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