close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

shipping update and others

Thread began 7/12/2013 5:43 pm by Jamie | Last modified 7/17/2013 4:12 pm by Jamie | 695 views | 16 replies |

Jamie

shipping update and others

Hey Jason

now that I am on track with the validations, i am trying to get a couple of other things sorted.

1. on the attached image, how do I change the item number to show the sku instead? I can find where I would change that
2. on the cart.php page, the shipping is being added correctly but if you update the cart the shipping doesnt update accordingly (shipping is based on cart value)
3. I made a test purchase the other day and on return to the site, the cart wasnt cleared...

Thanks

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

1) on the confirm page, find the following form element:

<input type="hidden" name="item_number_<?php echo $eCart1_Index+1; ?>" id="item_number_<?php echo $eCart1_Index+1; ?>" value="<?php echo $eCart1->DisplayInfo("ID") ?>" />

and change it to use the sku cart object column instead of ID

NOTE: Im pretty sure paypal requires the ID to be numeric.

2) The shipping is recalculated when the checkout page passes to the confirm page.

3) Add the following code on the checkout success page before the </html> tag.

php:
<?php

// Initialize the session.
// If you are using session_name("something"), don't forget it now!
@session_start();

// Unset all of the session variables.
$_SESSION = array();

// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (ini_get("session.use_cookies")) {
    
$params session_get_cookie_params();
    @
setcookie(session_name(), ''time() - 42000,
        
$params["path"], $params["domain"],
        
$params["secure"], $params["httponly"]
    );
}

// Finally, destroy the session.
@session_destroy();
@
session_regenerate_id();
?>
Sign in to reply to this post

Jamie

1. I am obviosuly missing a step here.

I have added the SKU column in the eCart object within server behaviours... do I need to add it elsewhere?

I have then changed the code you said from

<input type="hidden" name="item_number_<?php echo $SimplyFluff_Index+1; ?>" id="item_number_<?php echo $SimplyFluff_Index+1; ?>" value="<?php echo $SimplyFluff->DisplayInfo("ID") ?>" />


to

<input type="hidden" name="item_sku_<?php echo $SimplyFluff_Index+1; ?>" id="item_sku_<?php echo $SimplyFluff_Index+1; ?>" value="<?php echo $SimplyFluff->DisplayInfo("SKU") ?>" />



2. great - didnt realise that

3. have put it between </body> and </html> - is that right?

Cheers

Jamie

Sign in to reply to this post

Jason ByrnesWebAssist

1) make sure the add to cart buttons are passing a value for the SKU column

3) That will work.

Sign in to reply to this post

Jamie

re 1. I thin i Have done that ok, but its still not working...

Sign in to reply to this post

Jason ByrnesWebAssist

for testing, create a new page, add a cart display manager to it, on the second step of the display manager, select the option to include all columns, then send a link where i can see the problem.

Sign in to reply to this post

Jamie

PM

Sign in to reply to this post

Jason ByrnesWebAssist

you changed the name of the form element....

you cannot change the form element name.

paypal expects the form element to be named item_number, you cannot change it to
item_sku,

that is not an element name that paypal is expecting....

you can change the value to pass the sku instead of ID, but you cannot change the name...

Sign in to reply to this post

Jamie

ahhhhh gotcha thanks mate

Sign in to reply to this post

Jamie

Originally Said By: Jason Byrnes
  2) The shipping is recalculated when the checkout page passes to the confirm page.  



The shipping isn't updating at he confirm page if the cart is updated....

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