Jump to content

Disable OPC module on mobile theme


spk
 Share

Recommended Posts

Hey!

 

Using Prestashop 1.4.8.2.

 

I'm looking for a way to disable a OPC-module from the mobile-theme (its not the original OPC).

A global smarty variable like {if $isMobile} code code code {/if} is not the right way, I need to catch this before it actually shows the OPC-template.

 

I've looked into "mobile.config.inc.php"-file, where I can find these lines:

/* Do not allow One-page Checkout and Guest Checkout with Mobile template */
Configuration::set('PS_ORDER_PROCESS_TYPE', 0);
Configuration::set('PS_GUEST_CHECKOUT_ENABLED', 0);

Is it possible to some how add the module to this and set it's value to 0? Or how do I actually do this? I don't have that much experience from fixing with mobile themes in Prestashop.

 

 

Regards,

Spk

 

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More