Closed (fixed)
Project:
UC Node Checkout
Version:
6.x-2.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2009 at 19:33 UTC
Updated:
19 May 2011 at 22:41 UTC
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.
Comments
Comment #1
zacho commentedLittle 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>:
uc_node_checkout.module.patch
Comment #2
aidanlis commentedCool looks good.
Comment #3
aidanlis commentedFixed