GuidePedia

0
Have you ever questioned how to set up decimal products for Magento, or you just don’t know what is this option for?
This tutorial will provide detailed explanation to you.
I was looking to solve a problem which has appeared when I was working on one project here at the company. So as usually, I headed to the Magento forum for answers. There I found simple solutions for my problem, and worked out on my karma by providing answers for few other guys. Question was rather simple, but frequently asked, so I have decided to write about it here.
As you already understood from name of the article, I will talk about decimal products.
Decimal Products is a very helpful option in magento for people who are going to sell divisible quantities of products, for example: vegetables by pounds, fabric by yards, items which are usually sold in packs, but could be splitted out etc…
How to set it up?
For adding this type of products you have
to click on the inventory tab, inventory must be enable for this product , some more choices will appear, one of these choices will be decimal products. You have to set yes for decimal products.How to setup Decimal products in magentoNow customers are able to enter desirable quantity. You just have to remind them somewhere that this product is  sold by pounds/yards/boxes…
For that reminder you just have to set up new attribute. Click on “add new attribute” in catalog tab. Let’s say we need pounds. We can text it so we can add whatever we want there: pounds/yards/boxes…
Modify it :
\app\design\frontend\{interface}\{theme}\template\catalog\product\view\addtocart.phtml
After the qty input:
1
2
3
<input type=text name=qty id=qty maxlength=12 value=<?php echo $this->getMinimalQty($_product) ?> title=<?php echo $this->__(Qty) ?> class=input-text qty />
<?php echo $_product->getpound();?>

Post a Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks

Visitors

Cloud Power For You

Website Hosting At Low Price

Contatc

Empire Views
 
Top