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

Add price in product details

Started by sideways, November 26, 2014, 11:26:57 AM

Previous topic - Next topic

sideways

Hello

I sell CD print/press products and would like to show the salesprice multiplied with selected quantity in the product details page, in addition to the other prices. I have been looking at this for a while but can't figure out the best way to do it. I guess I need to override components/com_virtuemart/views/productdetails/tmpl/default_showprices.php to achieve this and I have made several attempts but failed. I would be very grateful for some pointers and tips so I can solve this once and for all.

GJC Web Design

very unusual behaviour IMHO - no online retailer I know does this.. surely this is what the mini-cart is for?

and it is complex - you have to do it thru ajax calls
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

sideways

Quote from: GJC Web Design on November 26, 2014, 11:31:38 AM
very unusual behaviour IMHO - no online retailer I know does this.. surely this is what the mini-cart is for?

and it is complex - you have to do it thru ajax calls

Unusual? Is it really?

I sell on-demand CD pressing and prints. My products are sold in bulk with prices changing depending on the selected quantity and selected product options/attributes. I want my customers to see the total product cost before adding it to the cart - a higher or lower quantity might mean a better deal. I'd say it's pretty much a requirement.

GJC Web Design

As I say - show me a major retailer site that does this...

also as i say - complex -

the "normal" approach is to show a price/quantity table e.g. as I did here http://www.shannon.be/nl/- probably spam --panelen-print-3-mm-detail

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

sideways

Okay, so we established you think it is a somewhat unusual behavior. Noted.  ;D

Would you mind we focus on my actual question? I was hoping someone would explain to me why it is so complicated, or at least give me a brief outline of what steps would be required? What parameters are involved?

GJC Web Design

if you don't know what this means
Quoteand it is complex - you have to do it thru ajax calls
then I really don't see the point in my continuing with an explanation

but here goes: the price updates via ajax/JS when you select a quantity/custom field - you have to use that same routine to multiply it by the quantity - core hack probably to 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

sideways

No worries. I know the inner workings of ajax and so do most web developers. Though it obviously seems complex (for you) I assure you it's not that hard to comprehend if you really apply yourself. About my question, never mind, I'll sort it out.

Quote from: GJC Web Design on November 26, 2014, 13:45:35 PM
if you don't know what this means
Quoteand it is complex - you have to do it thru ajax calls
then I really don't see the point in my continuing with an explanation

but here goes: the price updates via ajax/JS when you select a quantity/custom field - you have to use that same routine to multiply it by the quantity - core hack probably to vmprices.js

GJC Web Design

Clever chappie - really makes me wonder why you asked the question in the 1st place then..... seeing as you know..
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