close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Shipping has disappeared

Thread began 9/08/2017 8:14 am by NWak04030229 | Last modified 9/18/2017 7:37 am by Ray Borduin | 3338 views | 22 replies |

NWak04030229

Shipping has disappeared

Couple of things: Shipping seems to have disappeared altogether from my eCart. I have checked and all the shipping options show up under eCart Object but when I buy anything from the site it does not add the shipping. I must have unticked/ticked something in error - what could I check on to see what has happened?

Also: When I go on the site and try to purchase certain items I get the following error message:
Warning: Missing argument 10 for OldTheatrePosters_Definition::AddToCart(), called in /srv/disk4/89822/www/oldtheatreposters.co.uk/s.php on line 1091 and defined in /srv/disk4/89822/www/oldtheatreposters.co.uk/WA_eCart/OldTheatrePosters_PHP.php on line 25

Warning: Cannot modify header information - headers already sent by (output started at /srv/disk4/89822/www/oldtheatreposters.co.uk/WA_eCart/OldTheatrePosters_PHP.php:25) in /srv/disk4/89822/www/oldtheatreposters.co.uk/s.php on line 1219

What has gone wrong there?

Sign in to reply to this post

Ray BorduinWebAssist

The add to cart error appears to be that you have added a column to your cart but haven't updated all of your add to cart buttons to make sure that column has a value.

The shipping I'd have to debug directly. If you give me steps to reproduce the problem and FTP access I can try to see what is happening.

Sign in to reply to this post
Did this help? Tips are appreciated...

NWak04030229

Thank you - details sent privately

Sign in to reply to this post

Ray BorduinWebAssist

What page has add to cart buttons that I should be looking at? I'll see why it isn't showing up in server behaivors and/or show you how to update the code by hand.

Sign in to reply to this post
Did this help? Tips are appreciated...

NWak04030229

It's all the pages A thru Z - if I open them up in Dreamweaver CC2017 then I open Server Behaviors nothing shows. Thanks for this just need to get the site back up and running as soon as I can. I have 2 other sites using eCart but those are functioning just fine

Sign in to reply to this post

Ray BorduinWebAssist

Please post the url to one of the pages and the exact folder where I should look for the file and I'll take a look.

Sign in to reply to this post
Did this help? Tips are appreciated...

NWak04030229

http://www.oldtheatreposters.co.uk/j.php - any of the add to cart buttons on there have the same problem. Is that what you meant?

Sign in to reply to this post

Ray BorduinWebAssist

The Add to Cart buttons can be opened and edited from the Server Behaviors panel. I just opened the page and I see them all there.

To edit the code manually you just need to find the add to cart code on the top of the page and add the new column value. To do that, find any line that starts with:

$ATC_itemPrice = floatval

and then add a line below it for the new column:
$ATC_itemShipFlat = floatval("0");// column binding

Then, two lines below that, you need to add the new column to the actual add to cart function like:
$OldTheatrePosters->AddToCart($ATC_AddIfIn, $ATC_RedirectIfIn, $ATC_itemID, $ATC_itemName, $ATC_itemDescription, $ATC_itemThumbnail, $ATC_itemWeight, $ATC_itemQuantity, $ATC_itemPrice, $ATC_itemShipFlat);

You can see I added ",$ATC_itemShipFlat" before the closing ")";

You would have to do that for each add to cart code chunk. I've gone ahead and made the change for the first one on j.php by updating lines 21 and 24.

Sign in to reply to this post
Did this help? Tips are appreciated...

NWak04030229

Many thanks - I'll go and do all that now. Does this also fix the fact that Shipping isn't coming up on the final Cart?

Sign in to reply to this post

Ray BorduinWebAssist

That should. It looks like you only charge shipping if the country is set to "GB" and there is at least one item with ShipFlat set to "1".

Make sure when you are updating the cart you set the correct ShipFlat value. If you do set at least one to "1" that is in the cart then it should charge the shipping.

Sign in to reply to this post
Did this help? Tips are appreciated...
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...