Coding Extension installations
$2-8 USD / hora
Hello,
I need a proffesional coder who can make special extensions for me.
If you already have some extensions, then its just a plus, because I want as many extensions as I can get.
But the following job is to fix n fit and install this extension at my Magento multistore, which I found on the internet:
I solved this issue to my satisfaction, using a combination of existing
backend Admin features, and a bit of a “hack” on cart.phtml. This method is free, but
requires some familiarity with Magento files to modify in the future.
The end result is that:
1. The store displays and uses retail prices for all users not logged in, or
logged in but not a member of the Wholesale customer group.
2. Once the Wholesale user logs in, the store displays both wholesale and
retail prices (for reference), but uses the wholesale price.
3. The Wholesale user can view their cart, but, unless their order is above a
specified amount (e.g. $1000), cannot checkout because the checkout buttons
will not render, and an an error message will appear on the page.
Steps:
1. ASSIGN USER TO WHOLESALE CUSTOMER GROUP
a) Admin->Customers->Manage Customers
b) Pick a customer and select “Assign to Customer Group” in the Actions
dropdown, then choose the Wholesale customer group.
2. SET PRICING FOR WHOLESALE CUSTOMER GROUP
a) Admin->Catalog->Manage Products->(any product)->Prices->Tier Prices
b) Create a tier price with the settings: Customer Group: Wholesale, Qty: 1
and above, Price: [your wholesale price]
(The price in the “Price” field at the top of the page will be used for all
non-Wholesale customers)
At this point, if the Wholesale customer logs into their account, and browses
the catalog, they will see the both the default and the Wholesale price, but
the wholesale price will be used for all intents and purposes.
3. SET MINIMUM ORDER AMOUNT FOR WHOLESALE CUSTOMER GROUP
This is the tricky bit.
Open your app/design/frontend/default/[your
theme]/template/checkout/[url removed, login to view]
1. Add the following code to the beginning of the file, right above <div
class="cart">
<?php
$logged_in = Mage::getSingleton( 'customer/session' )->isLoggedIn();
if ($logged_in) {
$group = Mage::getSingleton('customer/session')->getCustomerGroupId();
$grand_total = Mage::helper('checkout')->getQuote()->getGrandTotal();
$minimum_order = 1000;
}
?>
This code checks if the user is logged in, and if so, finds out which Customer
Group they are in, their cart total, and creates a variable to store what you
want the minimum order amount to be.
2. Find the following code on your page (it will appear twice):
<ul class="checkout-types">
<?php foreach ($this->getMethods('top_methods') as $method): ?>
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
<li><?php echo $methodHtml; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
This is the code that renders the checkout buttons.
Replace the first instance of that code with:
<?php if (($group == 2 && $grand_total > $minimum_order) || $group != 2): ?>
<ul class="checkout-types">
<?php foreach ($this->getMethods('top_methods') as $method): ?>
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
<li><?php echo $methodHtml; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if ($group == 2 && $grand_total < $minimum_order): ?>
<span style="color: red">Note: The minimum order amount for Wholesale
customers is $1000. Please add more items to your cart.</span><br /><br />
<?php endif; ?>
and the second instance with:
<?php if (($group == 2 && $grand_total > $minimum_order) || $group != 2): ?>
<ul class="checkout-types">
<?php foreach ($this->getMethods('top_methods') as $method): ?>
<?php if ($methodHtml = $this->getMethodHtml($method)): ?>
<li><?php echo $methodHtml; ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
What this does is prevent the checkout buttons from rendering if the customer
is a wholesale customer ($group == 2) and their cart to
ID do Projeto: #1665011
Sobre o projeto
5 freelancers estão ofertando em média $13/hora nesse trabalho
Hi Gympharma I will be very happy to make special extensions for you. Because in return I will be getting money and good feedbacks from you . Please refer to PM for links of extension done by me. Thanks
Here are Magento Experts , please check Our Latest Magento work and Let me start your work , Thanks
Dear Project Owner, Kindly check PMB for further details and proceedings. Best Regards Team B24 e Solutions Pvt. Ltd.
Hi, We are an exclusive magento development team. Expertised in Full custom magento store design, Magento theme design, Magento integration, Magento customization, Magento modules, Magento shopping cart, Magento store Mais