Code

Discussion on Shop Limits - Product and Cart limit

Discussion on Shop Limits - Product and Cart limit

Cart 24 sales

danielpatilea does not currently provide support for this item.

7 comments found.

Hello, this is working with each product individually? And its working with newest presta? Thanks.

Nice job, glws.

Thanks alot!

Hi, I’d just purchased your module, and I’ve a few questions:

1) Is there a way to add line breaks or format to the error messages?

2) Some of the errors are in English, my shop is in Spanish, how should I do to change them to Spanish?

3) In the Shopping Cart Page, once you reach the shopping cart products limit (only limit set), no matter when I press the (-) Button the limit error shows and doesn’t discount the unit.

Regards, David

Hello David,

Thanks for choosing my module!

Please send me the link of your website to have a look and an email address so I can contact you. You can use the form on this page: https://codecanyon.net/user/danielpatilea

Regards, Daniel

hi hello, it works with the last version of prestashop? can i limit the maximum quantity from only one specific product? thanks

Hello,

Yes, the module works with the latest version of Prestashop. Also you can limit the quantity for a specific product.

Regards, Daniel

Hi I bought the module, limiting the product’m 10 but when I got in the summary cart just let me put 9 and tells me the maximum is 10 but really there 9 is no solution?

Hi,

Thanks for choosing my module!

To solve this issue you have to edit this file: /override/controllers/front/CartController.php and around line 88 you will find this code:

if (($cart_product[‘cart_quantity’] + $this->qty) >= $product_limit_value &&

replace this line with this one:

if (($cart_product[‘cart_quantity’] + $this->qty) > $product_limit_value &&

Let me know if you need further assistance.

Regards, Daniel

thanks!!

Hi,

I’m willing to buy this plugin, but before that i need some clarification on how it’s working.

1. We have product bundle (pack) of 3 products and we have limit in prestashop cart also of 3 products, but prestashop understands product bundle only as one single product. So do your plugin could solve our problem with cart limit and product bundles?

Hello Bandonis,

So, what you need from the module is to be able to limit a product that’s in the bundle and also is available outside of it. Is that so? Or you want that a visitor to be able to add a bundle of 3 products and also 2 more products in the cart?

Thanks, Daniel

Hi Daniel,

Thanks for quick reply!

Not quite, Right now i have e-commerce shop with Bundles. Each bundle contains 3 products. And i have also policy that customers can checkout if they are ordering more than 3 products. But when you add this Bundle in cart prestashop don’t understand that there are 3 products under this bundle. Bundle acts like single product.

And that’s why i’m looking at your plugin do you have possibility to limit each product seperatly, but still if i add 3 differente products i could buy them.

Hello Bandonis,

At the moment, this module doesn’t do what you need. With some small changes you can have the functionality you need on your shop.

Regards, Daniel

Hi,

I bought the module but Prestashop tells me that it’s not compatible with my version.

I have prestashop 1.5.5 Thanks

Hi, can you comment that line please? It should work without it.

Hi, i did it

But when i install the module i have this message :

[PrestaShopException]

Property Configuration->name length (35) must be between 0 and 32 at line 837 in file classes/ObjectModel.php

831. 832. $message = $this->validateField($field, $this->$field); 833. if ($message !== true) 834. { 835. if ($die) 836. throw new PrestaShopException($message); 837. return $error_return ? $message : false; 838. } 839. } 840. 841. return true;

ObjectModelCore->validateFields - [line 255 - classes/ObjectModel.php] - [0 Argument]
ObjectModelCore->getFields - [line 455 - classes/ObjectModel.php] - [0 Argument]
ObjectModelCore->add - [line 360 - classes/Configuration.php] - [2 Arguments]
ConfigurationCore::updateValue - [line 68 - modules/shoplimits/shoplimits.php] - [2 Arguments]
ShopLimits->install - [line 675 - controllers/admin/AdminModulesController.php] - [0 Argument]
AdminModulesControllerCore->postProcessCallback - [line 801 - controllers/admin/AdminModulesController.php] - [0 Argument]
AdminModulesControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument]
ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument]
DispatcherCore->dispatch - [line 50 - admin8911/index.php] - [0 Argument]

???---

When i come back, and go to catalog > Product, i have a blank page. In debug, it tells me this

Strict Standards: Declaration of Dispatcher::loadRoutes() should be compatible with DispatcherCore::loadRoutes($id_shop = NULL) in /Applications/MAMP/htdocs/shop/override/classes/Dispatcher.php on line 24

Fatal error: Undefined class constant ‘WebserviceRequest::HTTP_POST’ in /Applications/MAMP/htdocs/shop/classes/controller/AdminController.php on line 1159 ????

Hi, Please send me the login details using the contact form: http://codecanyon.net/user/danielpatilea#contact and will take a look. Regards, Daniel

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey