Zen Cart Logo
Forums / Basic Configuration / Unable to select an action in Shipping Module

Unable to select an action in Shipping Module

Views: 11,473

Results 1 to 14 of 14
24 Jun 2011, 2:05 AM
#1
marlenef avatar

marlenef

New Zenner

Join Date:
Apr 2010
Posts:
41
Plugin Contributions:
0

Unable to select an action in Shipping Module

I'm using v1.3.9e
Have not installed any addons that I can remember.
The site is hosted at Dreamhost

I wanted to make some changes to the shipping module, but it looks as if I no longer have access.

I'm attaching a screen print of the SHIPPING MODULES page. If I click on an icon ("i" or arrow) in the "Action" column - nothing happens.

This is probably something really stupid - but I can't help myself. What am I missing?:blush:

Marlene
https://www.waterweedmat.com

24 Jun 2011, 2:39 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Unable to select an action in Shipping Module

It looks like you have a problem with a file or files in the:
/includes/modules/shipping

or in the:
/includes/languages/english/modules/shipping

Look in the:
/cache

and see what debug logs you have in there ...

24 Jun 2011, 3:03 AM
#3
marlenef avatar

marlenef

New Zenner

Join Date:
Apr 2010
Posts:
41
Plugin Contributions:
0

Re: Unable to select an action in Shipping Module

Oh yeah! There's a lot of debug files... but have no clue how to open them and probably wouldn't know what they said if I could. Any suggestions?

(FTP listing attached)

24 Jun 2011, 4:31 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Unable to select an action in Shipping Module

Go to the Modules ... Shipping ... then in your FTP program look at the /cache directory and refresh the screen and look at the newest file ...

NOTE: the other files should also be checked and the errors corrected ...

24 Jun 2011, 1:20 PM
#5
marlenef avatar

marlenef

New Zenner

Join Date:
Apr 2010
Posts:
41
Plugin Contributions:
0

Re: Unable to select an action in Shipping Module

Followed your instructions... here is what the latest file says:
[23-Jun-2011 18:46:47] PHP Fatal error: Call to a member function in_cart_check() on a non-object in /home/weedmat/waterweedmat.com/ZenCart/includes/modules/shipping/ups.php on line 469

Copied from the UPS.php file, here are lines 466 through 475:
}
467 // bof: add Rake charge
468 $chk_rakes = 0;
469 $chk_rakes = $_SESSION['cart']->in_cart_check('products_id', '27');
470 $chk_rakes = $chk_rakes * 14.95;
$methods[] = array('id' => $type,
'title' => $title,
'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING + $chk_rakes) );
// eof: add Rake charge
?>

The line starting with //bof: (Line 467) is the code you gave me to put in that file.

Guess I should edit or remove that code. What do you think?

24 Jun 2011, 1:48 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Unable to select an action in Shipping Module

The code change to count for 1 particular Product and add to the charge is the code changes shown in RED where the products_id is 27 and add $14.95 to the charges ...

          $cost = preg_replace('/[^0-9.]/', '',  $cost);


// bof: add Rake charge
$chk_rakes = 0;
$chk_rakes = $_SESSION['cart']->in_cart_check('products_id', '27');
$chk_rakes = $chk_rakes * 14.95;

          $methods[] = array('id' => $type,
                             'title' => $title,
                             'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_USPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_USPS_HANDLING) + $chk_rakes );
// eof: add Rake charge

If you are getting errors, first take out the changes and make sure the usps shipping module is working and that no more debug logs are created when you go to the Modules ... Shipping ...

Next, check for the products_id of the Product you want to add the extra charge ...

24 Jun 2011, 2:49 PM
#7
marlenef avatar

marlenef

New Zenner

Join Date:
Apr 2010
Posts:
41
Plugin Contributions:
0

Re: Unable to select an action in Shipping Module

Here's what I did:

Took the code you gave me back out of the UPS.php file and re-uploaded.

Went to Modules / Shipping in ZenCart and I was able to interact with the window (make edits, etc.) Looked good... no error logs in the cache.

Got the product ID for the Rake (#190) from Product/Categories/Products - and replaced the '27' with '190' in the lines you gave me - and reinserted them into the UPS.php and re-uploaded.

Not only can I not interact with the Shipping Tables under Modules, if I buy ANY product on the website, it does NOT ADD shipping or taxes to the item - not to the Rake and not to any other item.

Here is the updated Error Log from the cache (more recent - includes code for the rake with correct item number):

[24-Jun-2011 07:34:47] PHP Fatal error: Call to a member function in_cart_check() on a non-object in /home/weedmat/waterweedmat.com/ZenCart/includes/modules/shipping/ups.php on line 469

Ajeh, I know I'm a pain in the neck because I am not familiar with PHP and am not a programmer, but I appreciate your help. When you send me instructions, it would really help me understand if you would finish your sentences (connect the dots) because I'm a real idiot when it comes to this stuff. I am happy and willing to compensate for your time as much as I am able. Thanks for your help.

Marlene

24 Jun 2011, 3:28 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Unable to select an action in Shipping Module

First, add below the line:

// bof: add Rake charge
global $cart;

Next, this code is for the USPS shipping module so be sure you adapted the code for:

        $methods[] = array('id' => $type,
                           'title' => $this->types[$type],
                           'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING)  + $chk_rakes);

NOTE: slight edit to last post on position of:

  • $chk_rakes
24 Jun 2011, 3:50 PM
#9
marlenef avatar

marlenef

New Zenner

Join Date:
Apr 2010
Posts:
41
Plugin Contributions:
0

Re: Unable to select an action in Shipping Module

Added/edited USP.php (LOL!.. not USPS that you keep calling it).
as follows:
}
if (empty($returnval)) $returnval = $errorret;

return $returnval;

}
}

******** beginning of edit **************

Line 467: // bof: add Rake charge
Line 468: global $cart;
Line 469:
Line 470:
Line 471: $chk_rakes = 0;
Line 472: $chk_rakes = $_SESSION['cart']->in_cart_check('products_id', '190');
$chk_rakes = $chk_rakes * 14.95;
$methods[] = array('id' => $type,
'title' => $this->types[$type],
'cost' => ($cost * $shipping_num_boxes) + (MODULE_SHIPPING_UPS_HANDLING_METHOD == 'Box' ? MODULE_SHIPPING_UPS_HANDLING * $shipping_num_boxes : MODULE_SHIPPING_UPS_HANDLING) + $chk_rakes);
// eof: add Rake charge

re-uploaded - refreshed - Shipping Module still not interactive.

Back to FTP to open new error log... here's the error:

[24-Jun-2011 08:43:54] PHP Fatal error: Call to a member function in_cart_check() on a non-object in /home/weedmat/waterweedmat.com/ZenCart/includes/modules/shipping/ups.php on line 472

24 Jun 2011, 5:17 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Unable to select an action in Shipping Module

In a clean copy of ups.php ... search for the line of code:

$cost = preg_replace('/[^0-9.]/', '',  $cost);

This code goes where that code is and the BLACK code already exists ...

The RED code is the NEW code to add ...

I think you are putting this in the wrong place ...

24 Jun 2011, 5:39 PM
#11
marlenef avatar

marlenef

New Zenner

Join Date:
Apr 2010
Posts:
41
Plugin Contributions:
0

Re: Unable to select an action in Shipping Module

OK, yes... that was it. I did not have the code in the right place - at least I am not getting any errors and I have access to editing in the SHIPPING MODULES table....

HOWEVER, Shipping rates (none of them) are being added to any product at checkout. I don't think it's this particular file, but probably an error in the way I original set up my UPS shipping and/or the Shipping Module.

Is there a tutorial that explains STEP-BY-STEP, how to set up UPS shipping for 1. USA only 2. Tax in New York based on shipping address?

Thanks again for all your help.
Marlene

26 Jun 2016, 7:20 PM
#12
marlenef avatar

marlenef

New Zenner

Join Date:
Apr 2010
Posts:
41
Plugin Contributions:
0

Re: Unable to select an action in Shipping Module

I was wondering if you could please delete this thread from your database as it is probably obsolete by now anyway. My client (owner of Waterweedmat.com) is concerned about security of the site because it is appearing when doing a search on Waterweedmat:
[QUOTE=MarleneF;1041619]I'm using v1.3.9e
Have not installed any addons that I can remember.
The site is hosted at Dreamhost

I wanted to make some changes to the shipping module, but it looks as if I no longer have access.

I'm attaching a screen print of the SHIPPING MODULES page. If I click on an icon ("i" or arrow) in the "Action" column - nothing happens.

This is probably something really stupid - but I can't help myself. What am I missing?:blush:

Marlene

THANK YOU!

26 Jun 2016, 7:26 PM
#13
marlenef avatar

marlenef

New Zenner

Join Date:
Apr 2010
Posts:
41
Plugin Contributions:
0

Re: Unable to select an action in Shipping Module

Any way you can delete this obsolete thread? The owner of water weed mat.com is concerned about security of the site and since this is 6 years old, I doubt it has any value to anyone. The page appears when doing a search on water weed mat. Thank you... Marlene.

27 Jun 2016, 5:35 AM
#14
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Unable to select an action in Shipping Module

MarleneF:

Any way you can delete this obsolete thread? The owner of water weed mat.com is concerned about security of the site and since this is 6 years old, I doubt it has any value to anyone. The page appears when doing a search on water weed mat. Thank you... Marlene.

I'm not one of the Zen team, and couldn't delete this thread even if I wanted to.

What I can tell you though is that if the owner has security concerns then he/she should be addressing those concerns, and not trying to 'hide' them. There is a common saying among us security pros', and it goes like this 'Security by obscurity is worse than no security at all'. Another being 'security through obscurity is an illusion'

OK, so what if we do ignore the idioms, and this thread is deleted - It will still be found in Google and a zillion other sites with cached copies, and there's nothing can be done about that. Sure, it may make you (and your customer) feel safer if this thread didn't exist, just like an ostrich with its head in the sand also feels safe (I assume).

You, or the site owner actually have far more serious concerns to consider at the moment. Not only has Zencart moved on over the last 5 or 6 years (since V1.3.9) but so has the rest of the world. Webservers have been updated, PHP has been updated, MySQL has been updated - each of these taking this site one step further away from being compatible. The next update to any of these services could be the death of the site, and this will happen at the most inconvenient time possible. Updating a working site, at leisure, can be challenging. Updating a non functional site while under pressure can be near impossible. Many that have found themselves in this position have never been able to recover.

Cheers
RodG