Is there a way to do the following?
- Instead of displaying just the product SKU number in the teaser and node views, is it possible to show it as SKU:134098098?
- In the above, change the SKU label to something like ISBN
|
Ubercart |
|
|
|
||
|
Wed, 10/22/2008 - 04:03
Is there a way to do the following? - Instead of displaying just the product SKU number in the teaser and node views, is it possible to show it as SKU:134098098?
Re: Showing SKU and changing its label
I changed the label by using the stringoverrides module mentioned in this thread. Now, if I could only find a way to print out the label ISBN next to the number Why doesn't Ubercart do this by default just like it prints out the rest of the stuff like weight, price etc?
Hi!
If you have some skills
Hi! If you have some skills with Drupal themes it would be very easy show this information on your products. In a node-product.tpl.php or similar you could easily do what you want with the following code: ISBN: <?php print $node->model; ?>($node->model holds the SKU). Best regards, Ny Media AS
Re: Hi!
If you have some skills
Thank you for the tip and the code, kulvik. I had forgotten all about the ability to have custom tpl.php files.
Hi! @kulvik : Thats surely a
Hi! @kulvik : Thats surely a nice way for site developers. But it might confuse the shop maintainer, if he still sees the "old" SKU label on the administration page. There should be a way to enter an alternative name for SKU at the Store administration. How ever, as SKU seems to be passed through t() it should be able to be replaced with the "String Overrides" Module: But it does not work though. |
|