Author Topic: how to add custom field with price to checkout process  (Read 8619 times)

binarix

  • Jr. Member
  • **
  • Posts: 73
how to add custom field with price to checkout process
« 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

Please help

binarix

  • Jr. Member
  • **
  • Posts: 73
Re: how to add custom field with price to checkout process
« Reply #1 on: February 28, 2013, 06:58:10 am »
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

  • Jr. Member
  • **
  • Posts: 73
Re: how to add custom field with price to checkout process
« Reply #2 on: February 28, 2013, 12:38:44 pm »
is there anyone who can help me out here..

I dont know how to achieve this.

PolishedGeek

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 263
  • Joomla! Innovation Refined.
    • Polished Geek, LLC - Joomla! extensions, web development & custom integrations
Re: how to add custom field with price to checkout process
« Reply #3 on: March 04, 2013, 18:16:06 pm »
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

  • Beginner
  • *
  • Posts: 16
    • UnitechWorld Services
Re: how to add custom field with price to checkout process
« Reply #4 on: February 04, 2015, 11:24:19 am »
Have you got the solution ???
is there anyone who can help me out here..

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

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: how to add custom field with price to checkout process
« Reply #5 on: February 04, 2015, 11:47:48 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
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Los Angeles immigration lawyers
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: how to add custom field with price to checkout process
« Reply #6 on: October 18, 2015, 12:29:21 pm »
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.


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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9819
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: how to add custom field with price to checkout process
« Reply #7 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Los Angeles immigration lawyers
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: how to add custom field with price to checkout process
« Reply #8 on: October 19, 2015, 09:17:19 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9819
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: how to add custom field with price to checkout process
« Reply #9 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Los Angeles immigration lawyers
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: how to add custom field with price to checkout process
« Reply #10 on: October 20, 2015, 10:58:36 am »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9819
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: how to add custom field with price to checkout process
« Reply #11 on: October 20, 2015, 12:44:43 pm »
Quote
In 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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Los Angeles immigration lawyers
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: how to add custom field with price to checkout process
« Reply #12 on: November 04, 2015, 11:19:53 am »
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

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3280
  • VirtueMart Version: 3.8.4
Re: how to add custom field with price to checkout process
« Reply #13 on: November 04, 2015, 11:44:15 am »
Quote
but 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 3.9.20
php 7.3

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Los Angeles immigration lawyers
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: how to add custom field with price to checkout process
« Reply #14 on: November 04, 2015, 12:39:20 pm »
Quote
but 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