VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Forum

IMPORTANT ANNOUNCEMENT: Plugin development ceased, all plugins made available freely (GPL)

With great sadness we have to announce that we are ceasing development of all our VirtueMart, WooCommerce and Joomla plugins. Effective immediately, all our plugins -- even those that were paid downloads -- are made available for free from our homepage (GPL license still applies), but we cannot and will not provide any support anymore.

It has been a great pleasure to be part of the thriving development communities of VirtueMart as well as WooCommerce. However, during the last year it became painstakingly clear that in addition to a full-time job, a young family and several other time-consuming hobbies at professional level (like being a professional singer) the plugin development and the support that it requires is not sustainable and is taking its toll. It has been an honor, but it is now time to say good bye!

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Custom price with no effect on purchase

Custom price with no effect on purchase 28 Apr 2016 00:54 #1

Hi Reinhold

I found this plugin when searching for a way to display a custom price in VM.

After reading documentation what we need is fairly simple in theory, show a price in each product with a value we enter and a custom label.

However we don't want this price to affect whatsoewer the purchase and we will use it as an information for customer.

This could be useful for us for showing product price + shipping costs.

I know I could use regular custom fields but your plugin seems to display in the price section for products. Is this possible?

Regards

Please Log in or Create an account to join the conversation.

Custom price with no effect on purchase 03 May 2016 15:19 #2

Dear Manuxx,
Our plugin allows the customer to add a certain amount to the default price, so by definition it modifies the price.

To just display a value without affecting the price you could just use a normal custom field on each product, where you enter the price as its value, but set 0 as the cost modification for the custom field...

Best regards,
Reinhold

Please Log in or Create an account to join the conversation.

Custom price with no effect on purchase 03 May 2016 15:24 #3

Thanks Reinhold, yes that was option 2 however your plugin shows in the product price dont know how you made that, cause there is no layout position for normal custom fields to be placed at the product prices layout.

Regards

Please Log in or Create an account to join the conversation.

Custom price with no effect on purchase 03 May 2016 23:21 #4

Dear Manuxx,
You can use the "addtocart" Layout position to place your custom field between the price display and the add to cart button.

The custom fields assigned to this layout position are printed out in the sublayout components/com_virtuemart/sublayouts/addtocart.php (line 30 sets the layout position to 'addtocart' and lines 53-55 print out the custom fields assigned to that layout position).

Best regards,
Reinhold

PS: Those line numbers and the sublayout refer to the latest VM version.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1

VM - Shopping cart

 x 

Cart empty

Login Formular