Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Shipping by Rules for VirtueMart

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!

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Custom attribute is selected to product 14 Feb 2016 14:28 #1

  • sutinse
  • sutinse's Avatar Topic Author
Hi.

How I can perform IF some cart attribute (e.g. Installation) is selected to cart.

In my custom plugin
function onVmShippingRulesGetCartValues(&$cartvals, $cart, $products, $method, $cart_prices) {

I make custom variable
$cartvals = false;

How I can loop products in cart and check if attribute is selected?

Custom attribute is selected to product 16 Feb 2016 17:23 #2

  • sutinse
  • sutinse's Avatar Topic Author
SOLVED my problem with taken selected custom attribute handling from VM customfields.php.

pastebin.com/kgNP4SG8

[SOLVED] Custom attribute is selected to product 21 Feb 2016 09:51 #3

Problem solved.
  • Page:
  • 1