News:

Support the VirtueMart project and become a member

Main Menu

Shopper fields on cart

Started by jflash, May 16, 2020, 20:19:55 PM

Previous topic - Next topic

jflash

Hello all!
I have used Virtuemart over many years and this is very good project and i want to thank you for this!

I use VM 3.6.10 on J 3.9.18 and i want to change my shopping cart more compact. I want to put shopper info, shipment info and payment info together (done, see attached image). All is OK, but how to show shopper fields under Shopper data (i do not want to go to another page to fill them)?

GJC Web Design

echo $this->loadTemplate ('cartfields'); includes the shopper fields template

or do u mean address data?

it would be a similar method

something like

echo $this->loadTemplate ('address');

but these are forms that submit to different target urls .. thats the tricky bit
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

jflash

Quote from: GJC Web Design on May 16, 2020, 20:39:05 PM
echo $this->loadTemplate ('cartfields'); includes the shopper fields template
I have this and it shows 'add/edit billing details' and other text, i want to show fields (email, name, country, etc) here

Quote from: GJC Web Design on May 16, 2020, 20:39:05 PM
echo $this->loadTemplate ('address');
This does nothing when i tried.

GJC Web Design

you need to see what then happens when u call the template ..

it is never going to be as simple as just calling the file...
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

Studio 42

the shopper fields are in the user view, so this  trick do not work, you have to add the user edit layout in the cart view.
But then the form is inside the form and can have side effects, so you need to modify more codes and perhaps use own javascript to refresh correctly some cart informations. For eg. sihpment methods list, total cart price ....

jflash

OK, thank you, i try now to show user fields in modal window :)