Skip to content

Commit

Permalink
add Limit Cart Quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
trungnguyenbss committed Dec 7, 2016
1 parent 8356be5 commit aa62be3
Show file tree
Hide file tree
Showing 12 changed files with 160 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ BSSCommerce Wiki latest documentation
magento_2/image_gallery_m2/index
magento_2/infinite_scroll_m2/index
magento_2/lazy_load_m2/index
magento_2/limit_cart_quantity_m2/index
magento_2/minimum_order_amount_m2/index
magento_2/minmax_order_quantity_m2/index
magento_2/multi_store_pricing_m2/index
Expand Down
9 changes: 9 additions & 0 deletions docs/magento_2/limit_cart_quantity_m2/changelog.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Changelog
=========

.. role:: red


.. raw:: html

<style>.red {font-size: 1.3333em; font-weight: bold; color: red;}</style>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
3rd-party extensions
====================


.. toctree::
:maxdepth: 1
:glob:

*
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Product Sliders
==================

In this guide, we will show you how to insert a specific products into Checkout page of `One Step Checkout extension <https://www.magecheckout.com/magento-one-step-checkout.html>`_
The product collection such as: product in category, featured products, new products, bestseller products, On sa_le products or random products from `Product slider extension <https://www.magentocommerce.com/magento-connect/product-sliders-new-featured-on-sale-most-view-best-seller-product.html>`_


Go to file::

app/design/frontend/base/default/template/magecheckout/securedcheckout/checkout/form.phtml:61



Insert the following code into end of form.phtml file::

$this->getLayout()->createBlock('productslider/productslider')->setTemplate('mageplaza/productslider/productslider.phtml')->setProductsliderId('1')->toHtml();




.. tip:: You should change Product Slider ID to your own ID in product slider list.

4 changes: 4 additions & 0 deletions docs/magento_2/limit_cart_quantity_m2/compatibility/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Compatibility
=================

Our Limit Cart Quantity for Magento 2 is compatible with all current versions of Community and Enterprise
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Themes
======

.. toctree::
:maxdepth: 1
:glob:

*
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Neoshop
============

`Neoshop`_ is a Premium Responsive and Retina Ready Magento theme that combines modern flat design and a very flexible backend functionality. It’s extremely customizable, easy to use and fully responsive. Suitable for every type of store, Neoshop comes with lots of awesome features like one page checkout, ajax price slider and ajax cart, revolution slider, google rich snippets, new products slider, bestseller products vertical scroller, onsale products slider and many other features that will help you improve your sales. All these amazing features are blended together in Neoshop – your powerful, stylish and attractive responsive Magento Theme.

In this guide, we will show you how to setup it look like demo in simple step.

Now you should go to admin panel **One Step Checkout > Settings > One Step Checkout > Design Configuration > Custom CSS** , paste the following CSS::
/** FLAMINGO design **/
#magecheckout-one-step-checkout .onestep-title{background-color:transparent!important; border-top:4px solid #2a3744; }
#magecheckout-one-step-checkout .one-step-checkout-wrapper .onestep-title h2{color:#2a3744!important;}
#magecheckout-one-step-checkout .col-wrapper{background-color:#fff!important;}
.one-step-checkout-review-terms-description-content .term-content{max-height:480px!important}

then click **Save Config**


Result
------

.. image:: https://lh5.googleusercontent.com/2WjHmB6dtrVZsNo4OwuD8-i8meXXYT7RZ7B9wsR0OIkpcI4AqbRb5q53ZQuICDRGuM0CYTZP-y76MoPvd-Ot_hux1-SklmR-r9GXwux8Xht3_JovIt7tJzJtS3IqQzfp-7kJ2B3W



Neoshop
----------

If you have not bought this theme, `get Neoshop now`_



.. toctree::
:maxdepth: 3
:glob:
:caption: FAQ

../../faq




Support
---------
.. include:: ../../../general/support.inc



.. _Neoshop: http://themeforest.net/item/neoshop-responsive-retina-ready-magento-theme/8256540
.. _get Neoshop now: http://themeforest.net/item/neoshop-responsive-retina-ready-magento-theme/8256540
2 changes: 2 additions & 0 deletions docs/magento_2/limit_cart_quantity_m2/faq.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FAQs
============================
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions docs/magento_2/limit_cart_quantity_m2/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Ajax Add To Cart
=================




.. toctree::
:maxdepth: 1
:glob:

user-guide
compatibility/index

*


38 changes: 38 additions & 0 deletions docs/magento_2/limit_cart_quantity_m2/user-guide.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
User Guide
=============

Limit Cart Quantity For Magento 2 Overview
------------------------------------------

Setting up a limit for order quantity is an essential need for many store owners as it has a remarkable effect on sales policy. However, the default Magento is
able to support few of those demands. Hence, BSSCommerce has developed `Limit Cart Quantity For Magento 2 <http://bsscommerce.com/limit-cart-quantity-for-magento-2.html>`_ with
the hope it will become a useful and effective solution for E-commerce business. The extension helps admin to set a minimum and maximum total quantity of all
products in a cart for specific customer groups before checking out successfully. Moreover, the content of message notifying about quantity error can be
customized with expressive choices of words to encourage customers to shop more pleasantly.

How does Limit Cart Quantity For Magento 2 work?
------------------------------------------------

You go to **Admin -> Store -> Configuration -> Catalog -> Inventory** and start configuration

.. image:: images/limit_cart_quantity_m2_1.jpg

In **Minimum Quantity Allowed for Entire Cart**, go to **Customer Group** column, each line has a drop down list showing all of your customer groups to select.

In **Minimum Qty** column, you can set any number you want for the minimum order quantity of all products in cart for each customer group.

In **Action** column, click to the trash bin icon to remove the minimum quantity required for any customer group.

Click **Add** to add more rows to set the minimum for more customer group.

In **Message Alert For Minimum Value**, add the message you want to show to your customer, insert “-conf-” for minimum quantity require and “-cart-” for
customer’s cart quantity to be displayed.

.. image:: images/limit_cart_quantity_m2_1.jpg

.. raw:: html

<style>
p {text-align: justify;}
</style>

0 comments on commit aa62be3

Please sign in to comment.