close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Trying to add shipping exemption for digital item

Thread began 4/20/2020 6:55 pm by Roxana | Last modified 4/23/2020 4:14 pm by Ray Borduin | 49 views | 9 replies |

Roxana

Trying to add shipping exemption for digital item

I used the thread below to try to set up a shipping exemption for a digital item. Unfortunately I couldn't get it to work. It might be, because the Cart object is custom made (different currencies, shipping rules depending on location.

I created a column shippable in the database, with the digital item set to 0, all other items set to 1.

Could you please help?

http://www.webassist.com/forums/posts.php?t=15737

Sign in to reply to this post

Ray BorduinWebAssist

You would set the value of itemShippable in your add to cart server behavior for all add to cart buttons on your site.

Then just update the shipping rule requirements to require that the total of itemShippable is > 0 for all of your shipping rules.

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

Roxana

Luckily I only have one add to cart button on the detail page. But I have no idea how to set the value. Trying to set the value, it won't let me hit OK. So I couldn't test it.

Sign in to reply to this post

Ray BorduinWebAssist

Please attach a copy of the page and I'll take a look.

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

Roxana

Thanks. Here is the copy.

Sign in to reply to this post

Ray BorduinWebAssist

Please attach your cart object as well. I need that to open the interface.

I think you should be able to click OK. Try updating the code to:

php:
<?php

// WA eCart MySQLi AddToCart
if (isset($_POST["segufix_1_ATC"]) && ($rspricelookup->getColumnVal('price') != "0") || isset($_POST["segufix_1_ATC_x"]))     {
  
$ATC_itemID $_POST["segufix_1_ID_Add"];
  
$ATC_AddIfIn 0;
  
$ATC_RedirectAfter "/cart.php";
  
$ATC_RedirectIfIn  "";
  if (
function_exists("rel2abs")) {
    
$ATC_RedirectIfIn $ATC_RedirectIfIn?rel2abs($ATC_RedirectIfIn,dirname(__FILE__)):"";
      
$ATC_RedirectAfter $ATC_RedirectAfter?rel2abs($ATC_RedirectAfter,dirname(__FILE__)):"";
  }
  if (
"DetailRS1" != ""$DetailRS1->FindRow("product_id",$ATC_itemID);
  
$ATC_itemName "".$DetailRS1->getColumnVal('name'false)  ."";// column binding
  
$ATC_itemDescription "".$_POST['lookupname2']  ."";// column binding
  
$ATC_itemWeight "".floatval("0")  ."";// column binding
  
$ATC_itemQuantity "".$_POST["segufix_1_Quantity_Add"]  ."";// column binding
  
$ATC_itemPrice "".($_SESSION['mylocation'] == 'canada')?floatval($rspricelookup->getColumnVal('price_can')):floatval($rspricelookup->getColumnVal('price'))  ."";// column binding
  
$ATC_itemarticle "".$rspricelookup->getColumnVal('item_no_long')  ."";// column binding
  
$ATC_itemVersion "".$rspricelookup->getColumnVal('version')  ."";// column binding
  
$ATC_itemSize "".$rspricelookup->getColumnVal('size')  ."";// column binding
  
$ATC_itemLock "".$rspricelookup->getColumnVal('lock_description')  ."";// column binding
  
if ("DetailRS1" != ""$DetailRS1->Index 0;
  
$ATC_itemQuantity floatval($ATC_itemQuantity);
  if (
is_numeric($ATC_itemQuantity) && $ATC_itemQuantity != 0)     {
    
$segufix->AddToCart($ATC_AddIfIn$ATC_RedirectIfIn$ATC_itemID$ATC_itemName$ATC_itemDescription$ATC_itemWeight$ATC_itemQuantity$ATC_itemPrice$ATC_itemarticle$ATC_itemVersion$ATC_itemSize$ATC_itemLock);
    if (
$ATC_RedirectAfter != "" && $segufix->redirStr == ""$segufix->redirStr $ATC_RedirectAfter;
      
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF'].($_SERVER['QUERY_STRING']?"?".htmlentities($_SERVER['QUERY_STRING']):"");
  }
}
?>



If you still have issues, then please attach the cart object and I can try. You should be able to click the OK button.... maybe try reinstalling the extension.

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

Roxana

This happened. When I click OK, it just closes the window.

Sign in to reply to this post

Ray BorduinWebAssist

You have your add to cart button set to be hidden.
<input class="inputClass"

then inputClass has display:none;

That causes an issue since it tries to select the button on the page when updating. I think if you just remove the class from the input button then you can access the server behavior. Then add the class back after you are done.

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

Roxana

I deleted the input class. But still get the same error message.

Sign in to reply to this post

Ray BorduinWebAssist

Try closing and opening the page after removing the class before accessing the server behavior. Please attach the current version of the page so I can try to reproduce the issue if it still happens.

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