Jump to content
rpdesign

[SSPP] Separate Shipping Per Product----Support Forum

Recommended Posts

@

 

I've found one issue. The flate rate shipping isn't applied to the total in checkout_shipping AND it doesn't populate in the database. If you fix that bug, I believe you would be good to go.

 

Thanks again

Share this post


Link to post
Share on other sites

@@discxpress

 

What settings are you using?

 

You have to personally apply the flat rate by the enable flat rate? setting to yes in the individual products/ categories configuration in the separate Shipping box .

 

Or if you have the setting set to all you need to put a value in the default flat rate instead of 0 [which by the way is entered in the configuration table not the separate_rate table ] ;)

 

This module works on both the modules->shipping->separate shipping configuration and the Separate Shipping box working together. Please look at my first video at the top of this thread for the main modules->shipping->separate shipping configuration

 

Another side note the troubleshooting.txt file should have an answer for you as well.

Edited by rpetet

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

@@discxpress

Ok I found it lol on line 185 change 'yes' to 'Yes' in catalog/includes/modules/shipping/separate.php I will upload the fix! Thankyou

Edited by rpetet

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

@

 

Now I have a real issue. This module doesn't work with Paypal Express payment module. When I attempt to checkout with Paypal on checkout_payment.php I get this error:

Fatal error: Class 'objectInfo' not found in /home/elgxvqtc/public_html/includes/modules/shipping/separate.php on line 116

 

That line in separate.php reads:

$sInfo = new objectInfo($sRate);

 

I hope this help you track down the bug.

 

Thanks again

Edited by discxpress

Share this post


Link to post
Share on other sites

ok this is simply using line 30 for your pages just change it to

if ( $page == '/checkout_shipping.php' xor $page == '/checkout_payment.php' ){

in catalog/includes/modules/shipping/seperate.php file

 

or try this

if ( $page == '/checkout_shipping.php' or $page == '/checkout_payment.php' ){

 

Please reply if this works. If it does I'll include it

 

Or it might be better to rename the class. hmmm....

Edited by rpetet

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

ok this is simply using line 30 for your pages just change it to

if ( $page == '/checkout_shipping.php' xor $page == '/checkout_payment.php' ){

in catalog/includes/modules/shipping/seperate.php file

 

Please reply if this works. If it does I'll include it

 

Or it might be better to rename the class. hmmm....

 

@

 

I'm sorry it didn't work. You can try looking at these 2 files:

includes/classes/shipping.php

and

includes/modules/payment/paypal_express.php

 

It works fine on regular flat rate shipping and free shipping. I hope that helps narrow down the issue.

Share this post


Link to post
Share on other sites

Fatal error: Class 'objectInfo' not found in /home/elgxvqtc/public_html/includes/modules/shipping/separate.php on line 116

 

That line in separate.php reads:

$sInfo = new objectInfo($sRate);

 

@@discxpress

this simply means that separate.php is not calling up the class objectInfo therefore, the if statement has to be the problem on line 30 or you can try to remove the if statement and change the class name for all instances in separate.php to ObjectInfo If you do this delete out lines 30 and 43 for the if statement and replace all instances of objectInfo with ObjectInfo

 

Also, are you trying table rates and again what are your settings? send a screenshot [with the address bar cropped out!] if you could of admin and your error [with everything but the page cropped out of the address bar] or it could be as simple as the $page value is wrong. just uncomment out line 27 to find out hte $page value as seen by your server when you are on checkout_shipping.php

Edited by rpetet

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

@@discxpress

well I've installed paypal express and with the default install i don't have a problem with the error messages that you mention


Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

ok going to bed will take a look at it tomorrow about 10:30am PST [Los Angeles, CA]

 

@@burt

 

You have some hardcoded filenames in the addon. These would be better like FILENAME_CHECKOUT_SHIPPING (against basename($PHP_SELF)

 

You are so right! Thankyou!

Edited by rpetet

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

@

 

Here's the screen shot:

post-58379-0-77352300-1372761541_thumb.png

 

I will see what you think about my setting before I edit the file. I'm using OSC version 2.3.3

 

Thank you

Edited by discxpress

Share this post


Link to post
Share on other sites

@@discxpress

 

Ok now that this is straitened out i think i can explain.

 

First of all this module was made for OsCommerce v2.2 in mind

 

Second I think that a slight modification to the column_left.php file is all that is needed to allow the separate_rate.php file and box to show up on the left hand side.

 

Third the Enable Flat Rate is only for the all setting below and you have the module set to products. :-

 

Forth and I think this is what you want is you want $6.00 shipping per product in the shopping cart using the default rate.

 

To make this work you need to set the module to all and qty and turn enable flat rate off and set the table rate to some god awful high number such as 100000:6.00

for your entry in the Default Flat Rate. :shifty:

 

If you want to set up different rates per product such as tbl rates, flat rates, etc... I'll need to produce an OsCommerce ver 2.3.3 compatible box array (w00t) for the left column.

 

$cl_box_groups[] = array(
'heading' => BOX_HEADING_SEPARATE_SHIPPING,
'apps' => array(
 array(
 'code' => FILENAME_SEPARATE_RATE,
 'title' => BOX_SEPARATE_SHIPPING_RATE,
 'link' => tep_href_link(FILENAME_SEPARATE_RATE)
 )
)
);

 

put this in a file called separate_rate.php in admin/includes/boxes

 

now put the following lines in admin/includes/column_left.php

//SSPP Begin
include(DIR_WS_BOXES . 'separate_rate.php');
 //SSPP End

after

include(DIR_WS_BOXES . 'modules.php');

 

This should have my module up and running for v2.3.3

Edited by rpetet

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

Ok so I built the file needed for the v2.3.3 box here. This will be included in v1.2 of my module! If you can't wait until latter this morning

just follow the instructions above for the column_left.php edits. After you place the file as directed below

 

Place this file in catalog/admin/includes/boxes folder:

 

 

Edited by rpetet

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

@

 

Flat rate shipping is the method that I wish to use. It works perfectly it's just Paypal doesn't accept that class on line 116 in the separate.php file. If that issue can be resolved, then this contribution would be awesome.

 

Thank you for working with me on this issue

Share this post


Link to post
Share on other sites

@@discxpress

Like I said before, please recreate the error and send me a screenshot. and please follow the Third step

 

Third the Enable Flat Rate is only for the all setting below and you have the module set to products. :-

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

Ok I've made two figures the first figure is of your settings

 

 

 

The Second is how your settings should look.

 

 

 

Third is without seeing the error message on the page that the error is showing on i'm left in the dark.

 

Not only that, but Paypal is not the problem it is the page you are on that i need!

 

I just thought of something try this for line 30 in catalog/includes/modules/shipping/separate.php

 

if ( $page == DIR_WS_HTTP_CATALOG . FILENAME_CHECKOUT_SHIPPING ){

Edited by rpetet

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

@@discxpress

 

Ok I just installed a vanilla install of OsCommerce v2.3.3 on my live site and paypal works fine with the all setting as seen by my screenshot below

 

 

 

So now knowing this I will upload the new version of SSPP v1.2 with OsCommerce v2.3.3 install instructions and have you modified your shop and what other addons are you using?

Edited by rpetet

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

@

 

Here's a screenshot of the error with those settings in place that you suggested:

 

post-58379-0-39896100-1372795822_thumb.png

 

Thanks for your support

Share this post


Link to post
Share on other sites

@@discxpress

ummm where is the address bar? and have you downloaded the latest version of SSPP or are you still using v1.0? it is now at v1.25 with install instructions for OsCommerce v2.3.3

Edited by rpetet

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

Ok i can not for the life of me recreate your issue/error on a vanilla install of OsComm v2.3.3, [to do this I deliberately tried to make my module fail! ]so I suggest removing sspp from your shop and reinstalling with the new version


Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

Ok i can not for the life of me recreate your issue/error on a vanilla install of OsComm v2.3.3, [to do this I deliberately tried to make my module fail! ]so I suggest removing sspp from your shop and reinstalling with the new version

 

Is it possible for you to let me use your file for 2.3.3 so I can see if there's a difference?

Share this post


Link to post
Share on other sites

@@discxpress

 

Just download it from the addons area! or from my signature. Or from the link below!

 

http://addons.oscommerce.com/info/8849

 

If you want just look at r-pdesign.com/demo2/catalog and set up a customer acct to see it in action!


Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

I figured it out (I think). It does work until I set individual shipping for an individual product is when the error occurs. Keep your settings as you suggested then pick a random product and set a shipping price for that one item.

Share this post


Link to post
Share on other sites

Ok does your admin look similar to the pic bellow? If not this is your problem!

 

 

 

This is the separate shipping box and this is where you apply different rates per products/ category. the per category is a known bug where you have to apply the rates to the sub categories it doesn't work on the main categorys the solution is in troubleshooting.txt file

 

This module uses a combination of BOTH the one that you have been using and the separate shipping box you see in the pic!

 

If you notice the screenshot is of the live site.

 

I think I should make a video of the configuration parts 2 and three in order to explain everything a little better B)

 

Ok i have recreated your problem! now to find out what is going on.

 

Ok so the file as is should work remember when I said I tried to break my module, Well I forgot to re-edit it and was testing with only the all setting in mind

Edited by rpetet

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

weird the forum said i don't have permittion to edit my own post hmmm...

 

Anyhow, line 17 in catalog/includes/modules/shipping/shipping.php should read

$page = htmlentities($_SERVER['PHP_SELF']);

 

And line 30 should read

if ( $page == DIR_WS_HTTP_CATALOG . FILENAME_CHECKOUT_SHIPPING ){

 

This will correct the problem :thumbsup:

Edited by rpetet

Always backup your files! You will be glad you did

My add-ons :

SSPP Seperate Shipping Per Product v2.5| Support
Gift vouchers for SPPC 4.22 v2.1 | Support |
Catalog Infobox v1.0 | Sorry no support for Catalog Infobox |
HTML Mail v2.0 | Support |




Upcoming Add ons:

Addon Manager |
Separate Pricing Per Product Qty |
Coupon Populate |
EZ-PDF Catalog

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×