Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Ship In Cart


Guest

Recommended Posts

My problem is when user not log in, although they have selected the country and state, all shipping option cannot calculate a rate (it will display "(No shipping available to the selected location)" for all shipping option), but user log in, it work just fine, any idea what has gone wrong??

 

u can check it here:

 

http://www.mmo.net.my/store/

 

Update of my findings; i suspected the reason why shipping option can't shown any calculation, is becoz when user not log in, the shipping weight cannot be determined.

 

The reason i figure this out, is becoz i tried to enable the show weight option in the configuration, when user log in, the weight is shown according, but when user not log in, the weight cannot be shown. I assumed this could be the root problem as all my shipping option are depend on weight.

 

I have look thru the code, realized the following code was excluded from the non-logged in option:

if (CARTSHIP_SHOWWT == 'true') {
$showweight = ' (' . $total_weight . ' ' . CARTSHIP_WTUNIT . ')';
 } else {
$showweight = '';
 }

 

hence i added these code inside the shipping_estimator.php after the // not logged in tag, the shipping weight was successful displayed, but the shipping option still failed to do the calculation.

 

:angry:

 

Lets try others, When i disabled the "shown update button" in the configuration, the "update" button disappeared in the shopping cart page. Now, i can't refresh the page with the state selected. Meaning, if i select a "A" state. either i refresh it or using the shopping cart update button to refresh it, the selected state has gone and the drop down box has gone back to "Please Select"

 

Could this be the problem, say the session id problem or .htaccess problem??

 

<_<

 

HELP PLSSSSSSSSSSS~~~~~~~~~~~~

Edited by day2
Link to comment
Share on other sites

  • 4 weeks later...
You must login to see quotes if using the MultiGeoZone MultiTable Shipping module.

It works great for all other shipping methods, but has never worked for MultiGeoZone MultiTable Shipping unless you login.

 

Works now, I just updated to the latest version of mzmt.php (MultiGeoZone MultiTable Shipping).

 

Cheers,

Eric_K

Link to comment
Share on other sites

Does anyone have any idea of how to work as a contribution in the pop-up product_info.php?

 

 

my code gives error :wacko:

 

 

 

<?php

$cart->add_cart($product_info['products_id']); //add current to cart for estimator

 

if (CARTSHIP_ONOFF == 'Enabled')

 

 

{echo '<a href="java script:popupWindow(\'' . tep_href_link((DIR_WS_MODULES . 'product_shipping_estimator.php')) . '\')">' . '<img src="images/icons/shipcost.gif" border="0"> ' . TEXT_SHIPPING_COST . '</a>';}

 

else {};

$cart->remove($product_info['products_id']); //lets remove current product from cart

?>

 

 

 

send-me this error below:

 

Forbidden

You don't have permission to access /loja/includes/modules/product_shipping_estimator_pop.php on this server.

 

 

--------------------------------------------------------------------------------

 

Apache/1.3.31 Server at localhost Port 80

 

tks,

 

Jesus loves you

Link to comment
Share on other sites

  • 2 weeks later...

Hi Hope someone can help, I have searched the forum but no joy, when the user is logged in contrib works perfect all shipping modes etc, shipping by postal code or royal mail, but if user not logged in they get the royal mail shipping options but not the ship by post code, entering the post code and selecting update the page refreshes but still no joy.

 

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

Searched the forum for this but have not found any info.

The contribution works great...Thanks!!

 

But a couple of problems we are having is.

1) FedEx is sending us a XML error every time someone gets a quote even though it's giving the quote just fine?

 

FedEx Freight returned an error or invalid
response.http://www.fedexfreight.fedex.com/XMLRating.jsp?as_shipterms=prepaid&as_shzip=44301&as_shcntry=US&as_cnzip=&as_cncntry=US&as_iamthe=shipper&as_acctnbr=(account number removed)&as_class1=150&as_weight1=6&as_pcs1=1&as_haz1=0&as_freezable1=0

 

2) I've seen this problem mentioned, but never answered. When we add the contribution to the products_info.php page it shows up fine, but when you input your information and hit "update" it returns a 404 error with w url like this: http://mystore.com/_ I did check and the same url is being queried from the shopping cart, except is actually reloads the page with the updated info when the "update" button.

 

Thanks for any help you may have.

 

Ron

Edited by rdracing
Link to comment
Share on other sites

  • 4 weeks later...
2) I've seen this problem mentioned, but never answered. When we add the contribution to the products_info.php page it shows up fine, but when you input your information and hit "update" it returns a 404 error with w url like this: http://mystore.com/_ I did check and the same url is being queried from the shopping cart, except is actually reloads the page with the updated info when the "update" button.

 

I'm having the same problem. The URL construction is on line 187:

  $ShipTxt= tep_draw_form('estimator', tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id']), 'post'); //'onSubmit="return check_form();"'

But I don't know how to fix it.

 

Somebody please help?? :blush:

Patty

Link to comment
Share on other sites

  • 1 month later...

just recently installed this, but had some problems with IE.

The cart update button did not work in IE but was fine in Firefox. Once an item was placed into the cart it could not be removed agian.

 

This is a excellant mod, that I really would like to use in our store www.scootssuitsandboots.com but can not afford to put people off if the cart is malfunctioning.

 

I have look through the mod in case it was a load error that I have done - but can not see anything, has anybody else had the same problem, or know where to look?

 

Jimmy

Link to comment
Share on other sites

  • 2 weeks later...

Hello, I just installed this module and so far most of it works great. The only problem i got so far on rc2a is that if no items are in my cart and I try to calculate shipping on the product_info.php page, it throws an error. Also when an Item is added to cart, it cannot be removed. Anyone got any recommendations on what files I should modify to fix this??

 

Much thanks in advanced!

 

-kenz

Edited by kenz
Link to comment
Share on other sites

Hello, I just installed this module and so far most of it works great. The only problem i got so far on rc2a is that if no items are in my cart and I try to calculate shipping on the product_info.php page, it throws an error. Also when an Item is added to cart, it cannot be removed. Anyone got any recommendations on what files I should modify to fix this??

 

Much thanks in advanced!

 

-kenz

 

Hi Kenz, I had the same problem with the cart as yourself. When using Firefox the cart update button worked fine but in IE it did not.

All I did was move the line

 

<td><br><?php if (CARTSHIP_ONOFF == 'Enabled') { require(DIR_WS_MODULES . 'shipping_estimator.php'); } else {}; ?></td>

 

from the table that contained the original cart update button.

 

In essance I changed it from line 185 to 239 (in shopping_cart.php - the line ref may be different for you as my site has quite a few mods attached.

 

My code now looks like the following

 

<td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

</tr>

</table> </td>

</tr>

</table></form><tr>

<td><br><?php if (CARTSHIP_ONOFF == 'Enabled') { require(DIR_WS_MODULES . 'shipping_estimator.php'); } else {}; ?></td>

</tr></td>

</tr>

<?php

$initialize_checkout_methods = $payment_modules->checkout_initialization_method();

 

if (!empty($initialize_checkout_methods)) {

?>

 

You can see it at http://www.scootssuitsandboots.com

 

I do not have your other error as when my cart is empty the shipping estimate turns off - do you have CARTSHIP_ONOFF == 'Enabled' - I do not know if this is the right bit of code, just guessing - unfortunatly I not as good as a lot of the people on this forum, just trying to help.

 

Hope all goes well

 

Jimmy

Link to comment
Share on other sites

  • 3 weeks later...

Nice contrib, been a customer request for quite some time.

 

I discovered a bug and dealt with it in IE when used with ms2.2

 

When using the catalog/product_info.php code, it cannot be placed "where you want it"

It MUST be placed after the add to cart button or it will not function (no hyperlink, no add)

 

I suggest it be placed near line 260 - look for:

			  </table>
			</td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>

then place

			<!-- BOE Ship in Cart Estimator 2.2.2 //-->
					<tr>
						<td>
					<br>
					<?php
						$cart->add_cart($product_info['products_id']); //add current to cart for estimator

					 if (CARTSHIP_ONOFF == 'Enabled') { require(DIR_WS_MODULES . 'product_shipping_estimator.php'); } else {};
						$cart->remove($product_info['products_id']);   //lets remove current product from cart
					?>
						</td>
					</tr>
		<!-- EOE Ship in Cart Estimator 2.2.2 //-->

Between:

			  </table>
			</td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>

and:

	  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>

This will restore the add to cart functionality

Link to comment
Share on other sites

Wow is this contrib buggy!

 

1st - the non logged in quote (in shoping cart) runs never ending once you enter a zip code yet the zip code is not present.

We have customers who ship to different locations (movie shoots, US vs Canada , etc)

The invisible postal code and never ending quote is first confusing, second a bug.

 

I had to remove the product_info.php code since the zip was carrying over.

If you then tried to update the zip in a product info window (for a correct weight based quote) you get the 2nd.

 

2nd - in IE OR firefox if you are not logged in, in a product page (based on product_info.php) and try to get an estimate based on country/postal code it throws a 404 error.

 

A nice attempt, but there are issues.

As it is our busy season I do not have time to address there problems.

I think folks should be aware of the shortcomings.

Link to comment
Share on other sites

  • 3 months later...

Hi Guys

 

I am using Ship In Cart v2.2.2a+product info with OSC rca2.2

 

I have some prob with the Product info page.

 

Problem 1: For user that not log in, i have enabled the state selector option and the shown "update" button option.

The prob is when a state is selected and update button hit the url will come to something like: "wwww.xxx/catalog/_", and no such address page will be shown.

 

Problem 2: If user log in with more than an address to be selected, the update button doesn't shown and i can't refresh it after selecting one of the address in the profile.

 

 

Anyone facing the same prob and got the solution??

 

Many thanks

Link to comment
Share on other sites

  • 6 months later...

my issue is the same as Marcos_kfir...

 

Does anyone have any idea of how to work as a contribution in the pop-up product_info.php?

 

 

my code gives error :wacko:

 

 

 

<?php

$cart->add_cart($product_info['products_id']); //add current to cart for estimator

 

if (CARTSHIP_ONOFF == 'Enabled')

 

 

{echo '<a href="java script:popupWindow(\'' . tep_href_link((DIR_WS_MODULES . 'product_shipping_estimator.php')) . '\')">' . '<img src="images/icons/shipcost.gif" border="0"> ' . TEXT_SHIPPING_COST . '</a>';}

 

else {};

$cart->remove($product_info['products_id']); //lets remove current product from cart

?>

 

 

 

send-me this error below:

 

Forbidden

You don't have permission to access /loja/includes/modules/product_shipping_estimator_pop.php on this server

 

but mine says that the file cannot be found. the format as it is is very messy and doesnt suit the page so i am trying to get it as a popup instead (similar to popup shipping estimate 1.7b). as it is tidier.

 

any help on getting this as a popup is most appreciated.

Link to comment
Share on other sites

  • 3 weeks later...

Anyone fixed the bugs in this yet ? I'm getting the 404 error like most others with an underscore being added to the end of the URL when using the estimator on the product info page. I'm a big fan of this contribution and so will be a lot of my customers if we get it working on the product info page.

 

Thanks guys.

 

Hilly

Link to comment
Share on other sites

  • 2 months later...

I finally fixed the problem with the Shipping Calculator. Optional updates caused a problem with the module. However, I've got another problem now. I have 4 shipping modules installed: FedEx, UPS, USPS, and Pickup. Estimate Shipping shows correct shipping rates but when any of UPS or FedEx methods are selected, the Order Total Estimate shows UPS or FedEx rates x2. For example:

 

There is also a problem with FedEx shipping rates. Doesn't matter what FedEx method I select it always shows FedEx Ground Service selected and Order Total Estimate also shows only FedEx Ground rate. Is there any solution to the problem?

 

Thanks in advance.

 

I am also having this same problem and cant seem to find an answer. Can anyone help please?

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...

Hello,

 

sorry for my bad english. I'm a german user.

 

Thanks for this great contribution, but I've a big problem with this...

 

The contrib works fine if user NOT logged in!

If user logged in the Contrib not shown the shipping cost, drop down menu...

Screenshot:

shipincart.th.jpg

 

Can help me anybody?

 

Thx & cu atom

Link to comment
Share on other sites

Been using ship in cart for quite a while now - suddenly noticed that the correct postal option is not appearing when not logged in. Not sure when this started to happen.

I am getting the error message (my stylesheet changes error to white so they can not be seen by uesers - but sometimes makes it hard to spot when things start to go astray)

Any ways the error is

 

Warning: Attempt to assign property of non-object in \includes\modules\shipping_estimator.php on line 91

 

This is sometimes line 97 and 86. Can not think of any changes that I have done recently that could cause the problem - any idea's

 

Jimmy

Link to comment
Share on other sites

Hello,

 

sorry for my bad english. I'm a german user.

 

Thanks for this great contribution, but I've a big problem with this...

 

The contrib works fine if user NOT logged in!

If user logged in the Contrib not shown the shipping cost, drop down menu...

Screenshot:

shipincart.th.jpg

 

Can help me anybody?

 

Thx & cu atom

 

I solved my problem. I reinstalled this contrib and now works fine. :)

Link to comment
Share on other sites

  • 5 weeks later...

Great contribution.

 

I like how this mod is displayed on the pricelessweddings.com.au website.

 

I have it displaying the same for our website, which also uses the Australia Post Shipping Module.

 

I have one small problem though. Above the Estimates box, an array appears all the time, which is really annoying. It looks like it is something do to with the output from each Australia Post method that we have active (regular, registered, express), but I can't figure out what piece of code puts it on the page as text.

 

If you have any ideas I would greatly appreciate your help.

 

Please see the screenshot attached.

 

Picture12.png

Link to comment
Share on other sites

  • 2 months later...

I have noticed today that it will show my free shipping module if it is over the set amount but it won't show the actual UPS or USPS if you are not logged in. If I hit update after entering in the zip code I get...

 

404

Not Found

 

The requested URL /_ was not found on this server.

any ideas?

 

I also have this issue................

 

I think this code have some issue:

 

 

if(CARTSHIP_SHOWUB == 'true'){

$ShipTxt.=' <td><a href="_" onclick="return shipincart_submit(\'\');">'. tep_image_button('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART) . ' </a></td></td></tr>';

}

 

 

 

 

Link to comment
Share on other sites

  • 2 months later...

Hello,

 

I've installed the latest version of ship in cart and I have the contribution MultiGeoZone MultiTable Shipping as well. My problem is that in my case ship in cart only works if you are logged in. Is there any solution it works without log in with MZMT?

 

Thanks

Link to comment
Share on other sites

hello i need some help to make this contribution works, ive installed it on Os 2.2 RC2 and i used ship in cart v2.2.2b and the update botton in cart dont works and its impossible to remove the items of the cart i really need help with this. Thanks in advance. :thumbsup:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...