callenords Posted October 5, 2008 Posted October 5, 2008 Hello! 1. How do I change the link in the "Add to Cart" button? :blink: Now it transfers you to the Shopping Cart. I want the client to be transfered directly to "create_account.php". My clients are only supposed to buy one product and therefore there is no need of looking at a cart... 2. Is it possible to have a maximum of one product per client? Thanks! Carl
L!mit Posted October 6, 2008 Posted October 6, 2008 You can put a tep_redirect into shopping_cart.php which would forward them to login.php (some customer may already have an account). Login would be a better page to forward them to. if ($cart->count_contents() > 0) { tep_redirect(tep_href_link(FILENAME_LOGIN)); } or you can try changing this in application_top.php (untested) if (DISPLAY_CART == 'true') { $goto = FILENAME_SHOPPING_CART; $parameters = array('action', 'cPath', 'products_id', 'pid'); } else { to if (DISPLAY_CART == 'true') { $goto = FILENAME_LOGIN; $parameters = array('action', 'cPath', 'products_id', 'pid'); } else { ^ not sure on this, but backup and give it a try. Search the contributions for a maximum quantity contribution. BACKUP FIRST!!!!!!!!
callenords Posted October 11, 2008 Author Posted October 11, 2008 Thanks! It worked perfect! Another problem: in the checkout_confirmation.php I've made som changes. I have moved "totlal price" to the same part of the table as where all the the products in the shopping cart is. How do i move the total price to the right? It is stuck to the left. It doesnt help if I write: <td class="main" align="right" valign="bottom"> <?php if (MODULE_ORDER_TOTAL_INSTALLED) { echo $order_total_modules->output(); } ?></td> Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.