Simple FB connect clears checkout cart contents summary

paradoxx's picture
paradoxx
Tue, 10/06/2015 - 16:49
#1
Simple FB connect clears checkout cart contents summary

Hi,

I have been experimenting with this module to allow anonymous users to easily login/register via Facebook during checkout:
https://www.drupal.org/project/simple_fb_connect

As the module suggested in readme.txt, i have implemented a ?destination=.current_path() redirect after succesfull login with this hook_form_alter:

function custom_couture_checkout_form_alter(&$form, &$form_state, $form_id) {
if ($form['#form_id']=='commerce_checkout_form_checkout') {
global $user;
if (!$user->uid && !empty($form['account'])) {
$form['account']['login']['fb_login'] = array(
'#type' => 'item',
'#title' => t('Or quickly connect with facebook to create your account or login'),
'#markup' => '<a href="/user/simple-fb-connect?destination=' . current_path() . '"><img src="/sites/default/files/Facebook-login.png"></a>',
);
$form['account']['login']['mail_confirm']['#description'] = t('Provide your e-mail address in the above fields to activate your account during this checkout.');
}
}
}

Now, what happens after facebook login redirect ?

The checkout cart contents summary, which has a collapsible fieldset, becomes for some reason cleared. Also on the checkout review pane near the end.
I believe this could have something to do with Orenmode customization inside /sites/all/themes/md_orenmode/template.php.

You can witness the behaviour on http://couture.artstanding.be.
I have sent login credentials to [email protected]

Thanks upfront for having a look at this issue!

cindy's picture
cindy
Wed, 10/07/2015 - 04:53

We received your information already

We will check and respond you asap

paradoxx's picture
paradoxx
Wed, 10/07/2015 - 05:14

Okay thanks!
Just adding some extra information about the cart contents:

Althought it shows empty, the selected products are still in the cart since the order completed successfully and is visible in backoffice admin.

paradoxx's picture
paradoxx
Wed, 10/07/2015 - 13:44

Hi, just want to inform you i fixed it by correcting a lacking permission on View products :

Image title

I found this when browsing as authenticated user on product catalog pages.

http://couture.artstanding.be/product-grid-sidebar did not show products either

http://couture.artstanding.be/all-products#search did show products since the view did not have any permission restriction attached.

Issue can be closed.

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.