
Originally Posted by
mprough
Another one, sorry to double you up... It's a great mod. I am migrating a great deal of site from FEC, many of them have guest checkout only. I am trying to include the post for guest from the shopping cart page checkout button, so they go directly to checkout as a guest. I cannot redirect them because the checkout type is un-chosen, so I have to post the guest checkout selection.
So even if I bring in
Code:
zen_draw_hidden_field('guest_checkout', 1)
I am still directed to the login page. I have tried a bunch of things and I am certainly missing something, but no idea what. Any ideas?
So I figured this out.
V1.5.5F
In tpl_shopping_cart_default.php
find
Code:
<!-- Finished loop through all products /-->
</table>
<div id="cartSubTotal"><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal; ?></div>
And make it
Code:
<!-- Finished loop through all products /-->
</table>
</form>
<div id="cartSubTotal"><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal; ?></div>
then find:
Code:
<!--bof shopping cart buttons-->
<div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_CHECKOUT, BUTTON_CHECKOUT_ALT) . '</a>'; ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
and make it:
Code:
<!--bof shopping cart buttons-->
<?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?><?php echo zen_draw_form('guest', zen_href_link(FILENAME_CHECKOUT_ONE, '', 'SSL'), 'post') . zen_draw_hidden_field('guest_checkout', 1); ?>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_CONTINUE_SHOPPING, BUTTON_CONTINUE_SHOPPING_ALT) . '</a>'; ?></div>
</form>
Then a few lines down (146ish)
find
and remove it.
This change makes people always be a guest and continue right in to checkout from the shopping cart page.
My testing so far is minimal, but if I find any issues I'll report here.
~Melanie