Ryan

Further to this issue, this is still working wierd for me.

If I am logged in, I can click the "Add to cart" button on a product node and it works fine.

For an anonymous user, when they click "Add to cart", they are redirected to a login page. Great. After logging in though, they are then taken to the View. Not great.

Also, I have a link on my node view page to "Add another". The code for this link is:

<?php
$node->content['add_another'] = array(
          '#type' => 'markup',
          '#value' => '<a href="node/add/tournament_registration&product_nid='. $nid .'&qty=1"><img src="sites/default/files/another.jpg" alt="Register another player"/></a><br/>',
          '#weight' => -20,
        );
?>

Clicking this link takes a user to the View... Not great.

You can see it working at http://203.118.157.191/chess4life

Thanks

Glenn

Comments

glennnz’s picture

Priority: Normal » Critical

Ryan

Bump. Sorry for being pushy, this bug is causing enormous headaches for us. We need to get this resolved so the site we are working on can get out the door before the deadline.

Thanks heaps in advance.

Glenn

glennnz’s picture

Bump

glennnz’s picture

Bump

Thanks

Glenn

glennnz’s picture

Priority: Critical » Normal
Status: Active » Closed (fixed)

S#$*!!!!!!

I'm a moron, my code was wrong.

I had

<a href="node/add/tournament_registration&product_nid='. $nid .'&qty=1">

Needed to be

<a href="node/add/tournament-registration?product_nid='. $nid .'&qty=1">

Works perfectly.

Sorry....

Glenn