Jump to content
ednique

[Contribution] Ship In Cart

Recommended Posts

HI,

@raiwa I installed this module (Ship In Cart 5.2 CE Phoenix) on Phoenix v1.0.7.12 (PHP 7.4.13) following the installation instructions, however there is one issue, when customer is not logged in (guest customer) on adding the product it goes to https://mysite.com//shopping_cart.php?ceid=57c6602bba76b4b4181caf6e61fed327, on a blank page with error  

This page isn’t working
mysite.uk is currently unable to handle this request.
HTTP ERROR 500

But When customer is logged in, there is not issue, all works well. 

Please advise how to fix this error. 
Thanks

Edited by zeeshop

Share this post


Link to post
Share on other sites

Hi @zeeshop,

Ship in cart requires an update for 1.0.7.12+ which will probably come for the 1.0.8.0 release.

I recommend you to stick with 1.0.7.11 for now, other apps will probably also break.

Merry christmas
Rainer

Share this post


Link to post
Share on other sites

Thanks,

Seasonal Greetings.

Unable to go back to previous version.

I will wait for your update for 1.0.7.12 +. Till then I will keep it disable.

 

Edited by zeeshop

Share this post


Link to post
Share on other sites
Just now, zeeshop said:

Thanks, unable to go back to previous version.

I will wait for your update for 1.0.7.12 +. Till then I will keep it disable.

 

You should always:

- have a backup to be able to roll back

- test an update on a separate sandbox store before updateing a live store

Share this post


Link to post
Share on other sites

@zeeshop,

Hotfix for Phoenix 1.0.7.12:

In includes/modules/content/cm_sc_shipping.php line 64 add this:

              public function get_country_id() {
                return null;
              }
              public function get_zone_id() {
                return null;
              }

so the whole snippet should look like this:

          if (!isset($GLOBALS['customer'])) {
            $GLOBALS['customer'] = new class {
              public function fetch_to_address($to = null) {
                return [];
              }
              public function get($key, $to = 0) {
                return null;
              }
              public function get_default_address_id() {
                return null;
              }
              public function get_country_id() {
                return null;
              }
              public function get_zone_id() {
                return null;
              }
           };
          }

or just use this file:

cm_sc_shipping.php

 

However there may appear other issues.

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

×