[Zen Cart] No MSU for some pages

Magic SEO URLs for Zen Cart.
wirefram
Posts: 23
Joined: Sat Oct 15, 2011 1:49 am

[Zen Cart] No MSU for some pages

Postby wirefram » Wed Oct 19, 2011 5:55 pm

I am on Zencart 1.3.9h php5.3.3, I have this to application_top.php:

Code: Select all

require('includes/autoload_func.php');

if(!in_array(basename($_SERVER['SCRIPT_NAME']), array('shopping_cart.php', 'login.php', 'create_account.php', 'checkout_shipping.php', 'checkout_payment.php', 'checkout_confirmation.php', 'checkout_process.php', 'checkout_success.php'))) include(DIR_WS_INCLUDES . 'magic_seo_url.php');


BUT it doesn't stop MSU from rewriting all those files....and also i have to integrate Fast Easy checkout code:

Code: Select all

require('includes/autoload_func.php');
if ($_GET['main_page'] != 'checkout') {
  include(DIR_WS_INCLUDES . 'magic_seo_url.php');
}

therefore, in case the code to stop rewriting some urls decided to work, how do i integrate with the FeC?

Thanks

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] No MSU for some pages

Postby inveo » Wed Oct 19, 2011 6:53 pm

In case of Zen Cart file excluding code should look like:

Code: Select all

require('includes/autoload_func.php');

if(!in_array($_GET['main_page'], array('shopping_cart', 'login', 'create_account', 'checkout_shipping', 'checkout_payment', 'checkout_confirmation', 'checkout_process', 'checkout_success'))) include(DIR_WS_INCLUDES . 'magic_seo_url.php');

wirefram
Posts: 23
Joined: Sat Oct 15, 2011 1:49 am

Re: [Zen Cart] No MSU for some pages

Postby wirefram » Wed Oct 19, 2011 7:27 pm

ok, how do i include the code for Fec?

Code: Select all

if ($_GET['main_page'] != 'checkout') {
  include(DIR_WS_INCLUDES . 'magic_seo_url.php');
}

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] No MSU for some pages

Postby inveo » Thu Oct 20, 2011 8:20 am

Code: Select all

require('includes/autoload_func.php');

if(!in_array($_GET['main_page'], array('shopping_cart', 'login', 'create_account', 'checkout_shipping', 'checkout_payment', 'checkout_confirmation', 'checkout_process', 'checkout_success', 'checkout'))) include(DIR_WS_INCLUDES . 'magic_seo_url.php');

wirefram
Posts: 23
Joined: Sat Oct 15, 2011 1:49 am

Re: [Zen Cart] No MSU for some pages

Postby wirefram » Sun Oct 23, 2011 1:01 pm

Thanks

:|