Đã Đóng

Coding Extension installations

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

Kỹ năng: eCommerce, HTML, Magento, PHP, Thiết lập Bản thảo

Xem thêm: tricky product design, top coding, session 13, retail catalog design, red point, pricing template free, php hack code, get coding, free php coding, free coding, fix hack, first bit set, find proffesional app, find magento theme coder, find coding job, echo design, design helper, coding free, beginning coding, find coder app, find helper, coding job, catalog template free, retail catalog, product render

Về Bên Thuê:
( 0 nhận xét ) Amsterdam, Netherlands

Mã Dự Án: #1665011

5 freelancer đang chào giá trung bình $13/giờ cho công việc này

designcreative1

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

$8 USD / giờ
(163 Đánh Giá)
8.7
p4provider

Here are Magento Experts , please check Our Latest Magento work and Let me start your work , Thanks

$10 USD / giờ
(151 Đánh Giá)
7.9
CreativeB24

Dear Project Owner, Kindly check PMB for further details and proceedings. Best Regards Team B24 e Solutions Pvt. Ltd.

$8 USD / giờ
(24 Đánh Giá)
6.5
itmyprofession

Please let me handle the job. I am damn sure that you will like my work. Regards

$8 USD / giờ
(17 Đánh Giá)
5.1
webindiainc

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 Thêm

$9 USD / giờ
(2 Đánh Giá)
2.7
XO9cdBZ61

Custom Software Development - <b><i>Removed by Admin</i></b>

$33 USD / giờ
(0 Đánh Giá)
0.0