By hkvega01 on
These lines of code is change the add to cart button to out of stock, this is not working in drupal 7
$context['subject']['field'] = 'add_to_cart';
$context['class'] = array('add_to_cart');
$node->content['add_to_cart'] = array('#value' => '**Out of Stock', '#cell_attriubtes' => array('nowrap' => 'nowrap'));
Any one can give me hints to rewrite above code to drupal 7?
Comments
Hi, Can you indicatie in what
Hi,
Can you indicatie in what functions, modules they are called.
It's kind of hard to judge not seeing the variabeles in the function they are in.
As always, Ubercart is buggy
As always, Ubercart is buggy as hell. It's a horribly written set of modules.
Try this:
Contact me to contract me for D7 -> D10/11 migrations.
thanks~
thanks~