News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Purchase Quantity Steps not rounding as expected

Started by Picklehead, January 10, 2023, 15:53:14 PM

Previous topic - Next topic

Picklehead

Hi,
I have products that can only be ordered in quantities of 6 so I have set 6 in Purchase Quantity Steps for these products.

However on the product details page if I enter a quantity of 7, the quantity is rounded down to 6 and not up to 12. (Presume standard rounding rules are applied)

Is there a way I can force Purchase Quantity Steps to round up?

Also

The update of the Quantity value to the Purchase Quantity Steps only appears to happen when the quantity box losses focus, where can this be changed?

Hopefully someone can point me in the right direction.

Thanks

Joomla! 3.10.11 and VirtueMart 3.8.7

GJC Web Design

all done in components/com_virtuemart/assets/js/vmprices.js
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Picklehead

GJC thanks that's brilliant..

I'm getting there with Virtuemart slowly but surely!

Picklehead


GJC Web Design

remember u can over ride by /templates/YOUR_TEMPLATE/js/vmprices.js
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Picklehead

Quote from: GJC Web Design on January 10, 2023, 18:06:40 PM
remember u can over ride by /templates/YOUR_TEMPLATE/js/vmprices.js

Thanks and yes, I created an over ride file  ;)

T.A. Garrison, LLC

@Picklehead - were you able to get the Quantity Discount to display the table in the products?!

I've been trying to ask for help since February and have never had a response. I've still got an open ticket and several messages that I've sent asking for someone to respond and nothing.

The plugin works to provide the discounts, but the user will never know the discounts because the table with the price breakdown does not appear in any product.

I'd appreciate "anybody" who can fix this since the only alternative requires adding each of the price breaks to each product manually - and we have literally thousands of products.
T.A. Garrison, LLC
3150 Orleans St. # 28261
Bellingham, WA 98228