close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

URGENT HELP! coupon code screws up shipping

Thread began 6/03/2011 2:18 pm by sam308940 | Last modified 6/06/2011 8:13 am by Jason Byrnes | 1697 views | 6 replies |

sam308940

URGENT HELP! coupon code screws up shipping

Hi

on may 19 i added a coupon code. here is the code added:
//eCart Rule
function WAEC_JULES_LUCKY6() {
$totalDiscount = 0;
if (true && ((sizeof($this->Items) > 0) && ($this->InCart("SS2411") == true) && (((isset($_SESSION['discount_code'])?$_SESSION['discount_code']:"") == "lucky6")) OR ((isset($_SESSION['discount_code'])?$_SESSION['discount_code']:"") == "LUCKY6"))) {
$totalDiscount += ($this->ConditionalTotal("TotalPrice", "ID", "SS2411") * .3);//Result
}
return WA_eCart_FormatNumber($totalDiscount, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule


PROBLEM
on the view cart page it will show the shipping costs, and the subtotal including the shipping costs. However when you get to the confirm order page, NO SHIPPING is shown and its not included in the total either. This changed in the orders on the EXACT date the coupon code above was added.

The confirm order page & the checkout page, have not changed since March. So im fairly certain its nothing there that is causing this. It has to be something on the view cart page. HOWEVER the view cart page is the one page that shows the total correct.

?????? Any ideas on what is causing this? SInce may 19 its happened to every order and that shipping has added up! SIGH!!!!!! BIG MONEY LOST. Im freaking out.


Im attaching my files.
and you can test the live url at julesreid.com
add any item to the cart
see the shipping in the cart
then checkout
on the confirm page - no shipping shows

thanks
sam

Sign in to reply to this post

Jason ByrnesWebAssist

the problem occurs on the https transfer to the secure checkout page. The cart transfer form does not transfer either the coupon or shipping.


to fix this edit the cart_checkoutphp file. Change the following line:
[php<input type="hidden" name="Size_<?php echo $JULES_Index; ?>" id="Size_<?php echo $JULES_Index; ?>" value="<?php echo $JULES->DisplayInfo("Size") ?>" />[/php]

to:

php:
<input type="hidden" name="Size_<?php echo $JULES_Index?>" id="Size_<?php echo $JULES_Index?>" value="<?php echo $JULES->DisplayInfo("Size"?>" />

<input type="hidden" name="ship_method" id="ship_method" value="<?php echo(isset($_SESSION["ship_method"])?$_SESSION["ship_method"]:""?>" />
<input type="hidden" name="discount_code" id="discount_code" value="<?php echo(isset($_SESSION["discount_code"])?$_SESSION["discount_code"]:""?>" />
Sign in to reply to this post

sam308940

im sorry but i am not follow.
i cannot find the code you reference in my file on the cart_checkout page.

also - that file has not changed since march. and the shipping was charging up to may 19. SO - it was working up to May 19........?

Sign in to reply to this post

sam308940

SORRY
i got it 2 seconds after that message.

i did find that code (on waht i call cart view page).
SIGH i suppose it got delete at some point?

if it was working before it had to have been being passed to the secure checkout?

frustrating!

Sign in to reply to this post

Jason ByrnesWebAssist

I cant really speak to why it was working before, then stopped. All I can really do is look at the code you posted and try to spot what is wrong based on the description you provide.

If there was no code change at all, then it should not have been working before.

Does the code change I suggested fix the issue?

Sign in to reply to this post

sam308940

yes the code you gave me worked.

i was trying to figure out if i caused issue when working in the file.
im frustrated with myself to think i could have deleted those to fields erroneously.

Sign in to reply to this post

Jason ByrnesWebAssist

OK, glad to hear it is working.

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