v1.7-v8x Category Quantity Discount V2.0.0 FIXED VERSION FOR PS 8.0.3

freiserk

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Master
Joined
Jan 24, 2019
Messages
3,497
Reaction score
6,557
Points
113
NullCash
33,251
Want to apply quantity discounts across multiple products?

With this module, it is easy to do that!

Demo: https://www.presto-changeo.com/prestashop/prestashop-17-modules/171-category-quantity-discount.html

category-quantity-discount.png

It works correctly applying the discounts in the selected categories but it is missing a detail.

REQUEST FOR XPERT, MASTER !!! @d-shilko and company...

Is it possible that when the discount is applied in combination of products in the cart and in the summary, a notice of the discount applied is shown?

Thank you.

Grettings.
Post automatically merged:

NEW DOWNLOAD !!!

Fixed file override "Product.php" code for PS 803.

Test and report iusues !!!


Grettings.
 

Attachments

  • categoryquantitydiscount_PS803.zip
    251.6 KB · Views: 8
Last edited:

Gekko

Member
XNullUser
Joined
Jan 28, 2021
Messages
60
Reaction score
1
Points
8
NullCash
2
Non capisco bene a cosa serve questo modulo, non è disponibile un link demo?
 

freiserk

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Master
Joined
Jan 24, 2019
Messages
3,497
Reaction score
6,557
Points
113
NullCash
33,251
Non capisco bene a cosa serve questo modulo, non è disponibile un link demo?

I test final process and adapt.

Patience...

Grettings.
 

FloverLion

Well-known member
Diamond
Elite
XNullUser
Joined
Sep 30, 2022
Messages
888
Reaction score
250
Points
63
NullCash
607
Thanks alot nice work , nice update Bro.
 

freiserk

Well-known member
☆☆ Special ☆☆
☆ Pro ☆
Master
Joined
Jan 24, 2019
Messages
3,497
Reaction score
6,557
Points
113
NullCash
33,251
FOR TEST !!!

DOWNLOAD

Fix override Product.php


INSTALL AND CONFIG MODDED MODULE

- Do not forget to assign the volume discount ranges in the product/s price sheet.

- Create category for volume discount, hide and add code to module config.

- Asociate products to new category.

- Edit file: themes/classic/templates/catalog/_partials/miniatures/product.tpl

Add code at line 113:


PHP:
    {if in_array(10,Product::getProductCategories($product->id|intval))}
      <p>Discount volume</p>
    {/if}

This causes the message to only appear when the product is of the assigned category.

(Edit css for design).

- Edit file: themes/classic/templates/checkout/_partials/cart-detailed-product-line.tpl

Add code at line 65:

PHP:
    {if in_array(10,Product::getProductCategories($product->id|intval))}
      <p>Discount volume</p>
    {/if}

This causes the message to only appear when the product is of the assigned category.

(Edit css for design).

- Edit html/themes/classic/templates/checkout/_partials/cart-detailed-product-line.tpl

Add code at line 180:


PHP:
    {if in_array(10,Product::getProductCategories($product->id|intval))}
      <p>Discount volume</p>
    {/if}

This causes the message to only appear when the product is of the assigned category.

(Edit css for design).

Change "10" in code "{if in_array(10," for number of categry volume discount.

Grettings.
 

solange

Member
XNullUser
Joined
Jul 9, 2022
Messages
624
Reaction score
2
Points
18
NullCash
244
Thanks a lot for this module. very useful.
 

mo1373

Member
XNullUser
Joined
Aug 29, 2020
Messages
990
Reaction score
1
Points
18
NullCash
9
Thank you for the update. Have a good one.
 

Sillumin

Well-known member
☆ Pro ☆
Master
Diamond
Elite
Joined
Jun 18, 2021
Messages
3,620
Reaction score
764
Points
113
NullCash
6,100
That was only module for older versions of Prestashop that really apply quantity discounts for products in different categories. All other numerous PAID modules couldn't do this despite their advertising of this!!! All of them finally gave discounts only within a category< not among of all listed by admin.

If you know other modules with similar REALLY WORKING feature, please mention here. And inform did you really test this feature.

This module work perfect as announced on older versions of Prestashop. Please test it on last versions of Prestashop and inform does it do this job really?
 

diamond-ua

Member
XNullUser
Joined
Jan 4, 2022
Messages
134
Reaction score
1
Points
18
NullCash
11
спасибо за информацию о проблеме исправили
 

lilmagnum

Member
XNullUser
Joined
Jan 16, 2023
Messages
164
Reaction score
0
Points
16
Location
pl
NullCash
0
спасибо за информацию о проблеме исправили
 

7nachik

Member
XNullUser
Joined
May 14, 2022
Messages
184
Reaction score
0
Points
16
NullCash
17
Thank you very much! This is very useful moduleis very good
 

7nachikk

Member
XNullUser
Joined
Jul 17, 2022
Messages
77
Reaction score
0
Points
6
NullCash
0
Thank you very much! This is very useful moduleis very good
 
Top