home iconemail icon

Spokane Web Design - Web Hosting - Search Engine Optimization (SEO)

web design logotop edge

Archive for the ‘ecommerce’ Category

If you have an eCommerce website, here is something you should take note of: A proposed online sales tax has been offered as an amendment to the National Defense Authorization Act. Imagine having to file a set of taxes for every state you make a sale in! One of the people that offered the bill had this to say:

“It is not the job of small businesses to collect taxes to provide tax revenue relief for state and local governments outside their jurisdiction.”

This means that if this passes, all online retailers could very well have an entirely new set of expenses going forward and should plan accordingly.

Read more: http://dailycaller.com/2012/12/04/online-sales-tax-to-be-added-to-defense-authorization-bill/

magento ecommerceFor people using the Magento ecommerce framework (v.1.6.1 used in this example) you have seen that once you go to view your shopping cart and hit the continue shopping button, it takes you back to the last product you viewed, and not the last category, as would be logical.

To fix this issue find the file :
app/design/frontend/base/default/template/checkout/cart.phtml

If you have a theme installed, you should look here first:
app/design/frontend/default/YOUR THEME NAME/template/checkout/cart.phtml

Now that you have the file you need, look for this code that starts the loop for every item in the cart(line 109 on my version):

<?php foreach($this->getItems() as $_item): ?>

Below that input the following code that will change the path of the continue shopping button by setting the product url to the category url inside the loop:

<?php

$_categories = $_item->getProduct()->getCategoryIds();
$_category = Mage::getModel(‘catalog/category’)->load($_categories[0]);
$url = $this->getUrl($_category->getUrlPath());
Mage::getSingleton(‘checkout/session’)->setContinueShoppingUrl($url);

?>

If you have multiple products it will always set the url to the last product.

If you have need for a website designer, call us today 509-475-1177

bottom edge