Line 387 of uc_node_checkout.module:

 // If enabled, alter the submit button to say "Add to cart".
if (variable_get('uc_node_checkout_alter_node_submit_button', TRUE)) {
  $form['buttons']['submit']['#value'] = t('Add to cart');

This statically sets the submit text of the form to 'Add to cart' - overwriting the configurations in
"Home » Administer » Store administration » Configuration » Product settings" where you can set the name of the submit value to anything you want.

It seems UC Node Checkout should reference whatever is in this field in product settings page, then pull that instead of just setting it to 'Add to cart'.

I'd do it, but don't know how.


zacho’s picture

Little patch to change static "Add to cart" text to whatever is defined in the UC product settings.
OK, I can't see to attach a patch right now, so here it is as <code>:

<           $form['buttons']['submit']['#value'] = t('Add to cart');
>           $form['buttons']['submit']['#value'] = t(variable_get('uc_product_add_to_cart_text','Add to cart'));
aidanlis’s picture

Assigned: Unassigned » aidanlis
Status: Active » Needs review
Issue tags: -add to cart

Cool looks good.

aidanlis’s picture

Assigned: aidanlis » Unassigned
Status: Needs review » Fixed


Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.