News:

Looking for documentation? Take a look on our wiki

Main Menu

how to add custom field with price to checkout process

Started by binarix, February 28, 2013, 00:56:06 AM

Previous topic - Next topic

binarix

I want to add custom field "Add your Custom Greeting Card" and if they select this they will enter their greeting card message and order will add $3 for this.

How can i achieve this. Please help

I have joomla 2.5.9 and virtuemart 2.0.18a

Please help

binarix

Is there anyway I can edit the Cart php and add text field and add extra price to the checkout process.

What I want to do is add Custom Greeting Card and when Customer select that option there will be addional cost which will be added to the order.

Please help

binarix

is there anyone who can help me out here..

I dont know how to achieve this.

PolishedGeek

Hello -

You can probably do what you want with the native VM2 custom fields, but keep in mind that you can't force the fields to be required, so that is a limitation.

If you need a bit more control over the custom fields, you may wish to consider our Breezing Forms Custom Fields extension, which gives you the ability to use any style of fields supported in one of the best form design components for Joomla, Breezing Forms by Crosstec.

Our Breezing Forms Custom Fields extension offers a viable approach for complex custom fields, as long as you don't need parent/child products or to track stock by each of the options. It does NOT track stock by each option selected.

This extension seamlessly integrates a completely custom Crosstec Breezing Form into the custom field area of a VirtueMart 2 product. Because BreezingForms is a fully featured form development component, this means that you can do all those great things you expect from best selling form design software (including checkboxes),  then use that form as the way to capture product options and attributes for a VM2 product.

If you think this sounds like it might help you, here's a link to our documentation to learn more: http://docs.polishedgeek.com/wiki/display/BFCUSTOM . There's a also a YouTube video there on the doc homepage that explains it a bit more.

You can learn more about the form component our extension integrates here: Crosstec BreezingForms http://crosstec.de/en/extensions/joomla-forms-download.html   (You have to have both VM2 and BreezingForms to use our extension).

The plugin has been vetted by the VirtueMart team and is available for sale on our website or here on VirtueMart.net (http://extensions.virtuemart.net/extensions-virtuemart-2/breezing-forms-custom-fields-plugin-detail)

I'm happy to answer any questions you have. Feel free to pose them in the forum here, or if you would prefer to discuss your requirements more privately, just open a ticket: https://polishedgeek.com/clients/contact.php
~ Deb Cinkus, CEO
Polished Geek, LLC   |    www.PolishedGeek.com

Creators of JoomLister - eBay Lister for Joomla!

Kashif Nawaid

Have you got the solution ???
Quote from: binarix on February 28, 2013, 12:38:44 PM
is there anyone who can help me out here..

I dont know how to achieve this.
UnitechWorld Services
http://www.unitechworld.in

Milbo

Quote from: binarix on February 28, 2013, 00:56:06 AM
I want to add custom field "Add your Custom Greeting Card" and if they select this they will enter their greeting card message and order will add $3 for this.

How can i achieve this. Please help

I have joomla 2.5.9 and virtuemart 2.0.18a

It is just the textinput plugin. The reason that no one really answers here is that it is standard and there are a lot tutorials about this http://forum.virtuemart.net/index.php?board=132.0
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lindapowers

#6
The user was talking about adding a custom field in checkout with price. He doesnt want a custom field in each product, just one at checkout.


Custom field cant be added simply to checkout so we tried shopper fields.

So you create a new shopper field. You have 3 types (text field, editor text area, text area ???).
None of those 3 give you an option to add a price.

Can you add price to the shopper field? doesn't seem posible.


Quote from: binarix on February 28, 2013, 00:56:06 AM
I want to add custom field "Add your Custom Greeting Card" and if they select this they will enter their greeting card message and order will add $3 for this.


That is exactly what we need but this seems impossible to achieve even in VM 3.0.11.


Please tell me if we are doing something wrong, there is no documentation on this matter and the posts related have no replies.


Regards

GJC Web Design

I don't know if it is possible with shopper fields etc..

what we do is add some custom code to the checkout template to provide a add to cart button for a specific product (Giftwrap - whatever)

I guess this idea perhaps could be extended to provide a text field for a message

see ->  http://test2.gjcwebdesign.com/fish/index.php?option=com_virtuemart&view=cart
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

lindapowers

#8
Quote from: GJC Web Design on October 18, 2015, 23:13:22 PM
I don't know if it is possible with shopper fields etc..

what we do is add some custom code to the checkout template to provide a add to cart button for a specific product (Giftwrap - whatever)

I guess this idea perhaps could be extended to provide a text field for a message

see ->  http://test2.gjcwebdesign.com/fish/index.php?option=com_virtuemart&view=cart

Thanks that looks good indeed and the idea is quite similar.

This doesn't seem possible with core VM and I can't even find a plugin that does it.

Sounds something very basic adding a "greeting card" or a custom (or shopper) field with price in checkout.

So you understand the example we want to add an optional "christmas card", a textbox so customers can write their message in the card and price cause it requires extra cost. I guess something similar to the guys that talked about it.


If you think about it, if we could add price to shopper fields this would be possible.

GJC Web Design

my example is just done with a small change to the pricelist.php template and an additional cart template over ride called which contains the required code

no core changes  .. as I say -- just haven't had time to test further re text field etc
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

lindapowers

#10
Quote from: GJC Web Design on October 19, 2015, 16:47:30 PM
my example is just done with a small change to the pricelist.php template and an additional cart template over ride called which contains the required code

no core changes  .. as I say -- just haven't had time to test further re text field etc

Thanks, let me know if you ever check. I though of shopper fields cause those are rendered even in OPC.

How to add price to a shopper field.. thats the thing.

Or maybe they make an option so that custom fields are just rendered in checkout and not products.

In your example  "Gift Wrapping" is actually a product published which is a bit confusing but I guess it was the only way.


Ironically what we require is exactly a "gift wrapping" with a custom christmas card, thats why I though of the text field.


GJC Web Design

QuoteIn your example  "Gift Wrapping" is actually a product published which is a bit confusing but I guess it was the only way.

clients happy -- I'm happy..  :) - I see no down side to it being a product .. easy simple management for the client and can have more than 1
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

lindapowers

#12
Christmas is comming and we have a system where we can't add greeting cards.

Developers can you please add the option to add price to shopper fields?

Or a custom field just at checkout.

Or an option to display custom fields only at checkout, whatever option is easier we dont mind but this is currently not possible in VM.

Regards

AH

Quotebut this is currently not possible in VM.

As you noted this feature is not part of core code - If this is a "must have" feature for you, maybe you could see if someone will create it for you.

Alternatively - create a separate greeting card product with a standard customfield.

Then make this a related product for your items

I understand this is not the specific solution you require - but in the absence of anyone creating this feature - it might get you out of a hole.
Regards
A

Joomla 4.4.5
php 8.1

lindapowers

Quote from: AH on November 04, 2015, 11:44:15 AM
Quotebut this is currently not possible in VM.

As you noted this feature is not part of core code - If this is a "must have" feature for you, maybe you could see if someone will create it for you.

Alternatively - create a separate greeting card product with a standard customfield.

Then make this a related product for your items

I understand this is not the specific solution you require - but in the absence of anyone creating this feature - it might get you out of a hole.

Thanks Hutson, I guess instead of standard I should use a text field no? the idea is that customer writes the text in the greeting card.


I know is not part of the core but most code is there, if they just added optional price for "shopping fields" this already render in checkout.


Regards