We use an admin theme on our site which the option 'use admin theme for content editing' - this means that when adding a product / uc_node_checkout to cart we get a theme switch as the node creation form uses the admin theme.

Is there a way to override this behavour in this module, or can someone suggest another module that will force my uc checkout node to use my public facing theme.

Comments

hixster’s picture

bumping - I've tried using theme key , but this can override the theme settings as set in /admin/settings/admin

Anyone have a solution to this?

aidanlis’s picture

Assigned: Unassigned » aidanlis

Something like this:

/**
 * Implementation of hook_init().
 */
function hook_init() {
  if (arg(0) === 'node' && arg(1) === 'add' && arg(2) === 'node governed by node checkout') {
    $GLOBALS['custom_theme'] = 'the default theme';
  }
}

I will think about implementing this in uc_node_checkout

aidanlis’s picture

Status: Active » Postponed

If you'd like to sponsor this development, please reopen the issue.

aidanlis’s picture

Assigned: aidanlis » Unassigned

(remove me from assigned)