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

freiserk

Well-known member
Pro
Master
Diamond
Elite
Joined
Jan 24, 2019
Messages
3,463
Reaction score
6,455
Points
113
NullCash
35,084
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?
 

FloverLion

Active member
Elite
XNullUser
Joined
Sep 30, 2022
Messages
655
Reaction score
215
Points
43
NullCash
339
Thanks alot nice work , nice update Bro.
 

freiserk

Well-known member
Pro
Master
Diamond
Elite
Joined
Jan 24, 2019
Messages
3,463
Reaction score
6,455
Points
113
NullCash
35,084
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
620
Reaction score
2
Points
18
NullCash
279
Thanks a lot for this module. very useful.
 

mo1373

Member
XNullUser
Joined
Aug 29, 2020
Messages
938
Reaction score
0
Points
18
NullCash
1
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
744
Points
113
NullCash
5,960
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
143
Reaction score
0
Points
16
Location
pl
NullCash
2
спасибо за информацию о проблеме исправили
 

7nachik

Member
XNullUser
Joined
May 14, 2022
Messages
147
Reaction score
0
Points
16
NullCash
5
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