Active
Project:
Ubercart Sub-Product
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
26 Jul 2010 at 23:25 UTC
Updated:
23 Aug 2011 at 21:15 UTC
Add config option to facilitate showing only one add to cart button instead of one per row
Comments
Comment #1
SeedTreeLLC commentedDude, that was what I was going to say.
+1
Comment #2
larowlanFor those interested in this feature, you can do it at the theme layer by overriding theme_uc_subproduct_cart_table_form as follows:
Put this in template.php in your theme folder (create the file if not there), change YOURTHEMENAME to your theme's machine name, then flush your theme registry.
This wraps the cart button in a div with class uc-subproduct-cart-wrap so you can target it with css for position and styling.
Comment #3
sfontes commentedthank you thank you thank you thank you thank you thank you thank you thank you thank you thank you!!
Comment #4
jdln commentedIs there a way of having an 'add to cart' text button rather than an image? Basically I want this to look the same as the default ubercart product add to cart button.
Thanks
Comment #5
larowlanHi
Please refer to the instructions on the project page regarding changing the button.
It is a standard button that has been themed to look like an image with css.
If you remove the text indent, add the borders back, remove the background image etc etc, it will return to normal.
If you have firebug or chrome or safari with the developer tools, you can inspect the button element to see which css rules cause it to appear that way.
Lee
Comment #6
larowlanComment #7
boboss commented@larowlan
Many many thanks
Comment #8
2dogrc commentedThank you! Got it working very Nicely in tab for my products!
2dogrc
Comment #9
summit commentedSubscribing, greetings, Martijn
Comment #10
ipark88 commentedHello, I'm a bit of a Drupal newb, and I can't seem to get this to work. I am using acquia_prosper theme, so I went to the theme folder and changed the template.php file as stated above, and changed "YOURTHEMEMNAME" to acquia_prosper, but after saving and refreshing nothing seems to have changed. Am I doing something wrong?
Comment #11
larowlanDid you flush your cache?
At the very least you need to flush the theme registry.