Post by Tamara_89 » Fri Oct 16, 2020 8:13 pm

I am developing a website in Opencart version 2.3. I have to change the price of the product based on user location and weight of the selected product. I am getting the User City from a popup in my home page. That stores the City name in session. I am storing the cities in a separate table. Every Product will have a weights of 250 grams, 500 grams and 1kg.

My requirement is to get the price of the item based on both location and weight. Each city will have different price for the same product.

Can someone suggest me how to achieve this. Explanation in a theoretical way is fine. I can code for that. I just need help with the approach.

provitalize reviews



Fri Oct 09, 2020 5:18 pm

Post by IP_CAM » Sat Oct 17, 2020 1:14 am

Well, you could use Customer Groups, where each City would consist out of a specific
Customer Group, that's about the only way, to achieve such. I did not find anything better ...
Live prices depends Region selected ... n_id=21330
Group price ( VQMOD ) ... on_id=7556
Basic Price In Customer Groups ... n_id=33047
Discount/Fee based on Amount, Group, GeoZone, Shipping, Payment ... n_id=14762

Please don't send me OC Forum Personal Messages, just contact:
OC LIGHT Test Site:
OC V-PRO Test Site:
My Github OC Site:
2'600+ FREE OC Extensions on the World's largest Github OC Repository Archive Site.

User avatar
Legendary Member


Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 23 guests