When removing an item from the cart, Magento redirects to store home page instead of /checkout/cart/

I’m setting up a Magento 1.4.2 cart to replace an older version (1.1.6). I’m currently working on a development machine, and when I have multiple items in my cart and use the “delete” button on one of the products the item is removed and I am redirected via a 302 response code to the base URL of the store, instead of to ‘/checkout/cart/’ (which is how the older version cart works).

I’m stuck trying to figure out what is different between the two carts that is causing this redirect. Some notes on my setup that may or may not be relevant:

  • There are 2 websites/stores/store views
  • The store view I’m currently working with is accessed via a sub-URL and separate index.php file. The main store URL is https://www.thestore.com/ and the store I’m working with is accessed at https://www.thestore.com/second-store/index.php/. If you’re unfamiliar with this approach, here is how it is done: Store views by index.php
  • The old cart (running 1.1.6) is running on a slightly different server setup, and you can safely assume anything is possible in the setup – modifications of core Mage code is possible, for example.

I’m looking for any hints on where to look – Magento configurations via the admin panel, local.xml changes, Apache rewrite rules…any tips on how to find out WHY this new cart isn’t redirecting to /store/checkout/cart/ when I delete a product from my cart.

If you need more details, I’d be happy to provide them. We have a kinda funky setup that has been truly hacked together, and I’m also open to suggestions on how to set things up if it sounds like we’re doing something wrong. Thanks!

How to set different shipping methodes in Magento

I don’t know if this is a program question or a option in Magento.

When I sell 1 product I want to charge €8 for shipping costs.
When I sell 2-3 products the shipping costs must be €11.

Is this possible as a setting in the Magento admin area or does this need to be programmed?

Now I only see the option to set shipping cost per product and that would be 3x€8 = €24.
This is way too much and people will not buy the product because of the high shipping costs.

Any help would be realy appreaciated!


Instant UPS tracking Number

I have a client that has a shopping cart. She wants to implement a module that allows the end user to receive a tracking number immediately after purchase.

I am not too sure if this is possible. My concept is that after the store owner ships the purchase, that’s when the store owner receives a tracking number that he/she can give to the purchaser. And the purchaser then can start tracking their package.

I guess my question is… “Is it possible to generate a tracking number to give to the purchaser before the store owner even bothers to wrap up the order and send it out.This is so the purchaser can automatically start tracking their purchase and the store owner doesn’t have to manually give them a tracking number.” ?

I know this would have to require the api. I just need to know if this is possible before I start investing alot of time in trying to build it.

She is using Magento for her shopping cart service.

Building a rewards shop using Magento [closed]

I’ve been tasked to create a shop that uses “reward points” instead of “real money” as currency. Access to the shop including viewing catalog and purchasing items is restricted to a group of people as this is an internal shop. The administrator can ideally give each member “reward points” through Magento admin.

I’ve read that Magento Enterprise has a built-in rewards point system, however, it’s still different from what I need to do.

Is my project feasible to do using Magento? How much code needs to be rewritten? Any advice will be greatly appreciated.

Magento – Add additional selectable fee's in shopping cart (not products)

We have a situation where we are looking to allow the user to select specific fee based options they can add to their order, in the shopping cart.

These need to just be additional fee’s either percentage based fee’s or potentially a fixed rate fee.

We have tried a module that aims to do this, but the functionality is not as well implemented as we had hoped and the code is rather buggy. I feel this may be something that can be done with out the need of a third party module.

The concept could be described as the following:

A user purchases a number of items, they wish to then add priority processing to their order, or priority picking of their products, the main thing is that we may wish to have this based on the total price of the order and based on a percentage if this is possible.

A best case scenario would be to have a piece of code to handle the math and have some arguments to allow the percentages to have switch / case options that way if the the cart total is very low, the percentage would choose a fee based on set criteria and if the cart total is very expensive the same.

We aim to avoid having a static fee as of scenarios where a user picks a small item with a low cost versus a high cost item that requires a great deal more work to process.

Then of course the final potential issue here would be to have this fee added and then labeled in the cart as a line item.

We just rather avoid using simple products to handle this solution.

If any one has any ideas or potential solutions I would greatly appreciate any direction or data you could share.

Thanks in advance!


Change how magento calculates “”

i have a shop where quantities of cards are sold in 25, 50, 75, 100, 125, 150, 175 and 200. when i add a card, with a quantity of 175 to my basket, the cart total at the top of Magento displays “MY Cart (175 Items)”. Obvoulsy it’s adding up the quantities, rather than the actual product count.

How would i edit this? What templates is this read from?

Here’s a picture to show you what i mean.

enter image description here

Magento howto fetch / change / overwrite the totals.phtml calculation?

i had added a product that is calculated by two attributes and uses a own calculated price.
the problem is that i had to rewrite the grandtotal and subtotal calculation… for example with overwritting the stuff.

i hope here @stackoverflow is a magento guru that had solved my problem 🙂

i had changed the /app/design/frontend/default/gutlauf/template/checkout/cart/item/default.phtml where the layout of the cart items is done.

but now i have a problem with /app/design/frontend/default/gutlauf/template/checkout/cart/totals.phtml

<table id="shopping-cart-totals-table">
    <col />
    <col width="1" />
        <?php echo $this->renderTotals('footer'); ?>
        <?php echo $this->renderTotals(); ?>

how can i get my own calculation ?
i figured out that the blocks


for example /app/design/frontend/default/gutlauf/template/tax/checkout/grandtotal.phtml

<?php echo $this->helper('checkout')->formatPrice($this->getTotal()->getValue()) ?>

according to the source code file there is a mentation of “Mage_Tax_Block_Checkout_Grandtotal”

i looked at /app/code/core/Mage/Tax/Block/Checkout/Grandtotal.php commented some lines out… but nothing changed…

i hope someone could explain to me where the shopping-cart calculation is “hidden”, i need a foreach where the totals are build.

i also looked at /app/code/core/Mage/Checkout/Block/Cart/Totals.php

i found the renderTotal … no nowhere the solution of getting the foreach loop of the items, where i wanna use something like

            $productIds = array(); 
            $productIds[] = $_item['product_id'];

            $products = Mage::getModel('catalog/product')->getCollection() 

            $product = $products->getItemById($_item['product_id']);
            $bBerechnet = $product->getData('gl_special');

$childProducts = Mage::getModel('catalog/product_type_configurable')->getUsedProducts(null, $product);

to get the simple products which i load with

public function renderTotal($total, $area = null, $colspan = 1)
    $code = $total->getCode();

    if ($total->getAs()) {
        $code = $total->getAs();
    return $this->_getTotalRenderer($code)
        ->setRenderingArea(is_null($area) ? -1 : $area)