News:

Looking for documentation? Take a look on our wiki

Main Menu

Override Price with Custom Field Price

Started by hk, January 01, 2019, 08:02:47 AM

Previous topic - Next topic

hk

Hi,

Happy New Year 2019 !!

I am using VM 3.2.14

I have a product of price 1999, with Custom Fields of values 0 amount and 100 amount.
If customer chooses a second option, the total price is 1999 + 100 = 2099. It works fine.

I want to override the price for base product to 1499, the custom field values remain same.
Now if customer chooses second option, the total price should be 1499 + 100 = 1599. But the price doesn't change, it shows 1499 only.

How can I get it corrected.


Thanks.

jenkinhill

I have lost track of the number of time we have had to explain that an override price is exactly that - it overrides the final product price. So your customs will be ignored.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

In other words don't use final price over rides ..use discounts etc to achieve what you want
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

hk

I tried to use Taxes and Calculation feature.
Created a dummy (unpublished) Category. Created a Calculation Rule of 25-% for this dummy category. Added the product to dummy category.

With this approach, the Custom Field price is also discounted.

Without Custom Field or zero amount:
Sale Price = 1999
Discount = 25% = 500
Final Price = 1499

With Custom filed of amount 100 selected:
Sale Price = 1999 + 100
Discount = 25% = 500
Final Price = 1499 + 100 = 1599
but it shows 1574 providing discount to 100 also.

I need to retain the custom field charges and provide discount only to main product. Is there a way to do this?

GJC Web Design

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

hk

I can add 25% to custom field amount, but I would have to update custom field amount for each products. I don't think this is a good practice if I have plenty of products to be edited.

jenkinhill

There are quick ways to edit a lot of products/fields in one go. You can do it direct in the database with some sql or use one of the third party tools available, such as https://shop.st42.fr/en/products/vm-be-pro-batch-product-edit.htm
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum