5 replies [Last post]
venkat-rk@drupal.org's picture
Offline
Joined: 03/19/2008
Juice: 205
Was this information Helpful?

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

venkat-rk@drupal.org's picture
Offline
Joined: 03/19/2008
Juice: 205
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 Sad

Why doesn't Ubercart do this by default just like it prints out the rest of the stuff like weight, price etc?

kulvik's picture
Offline
Uber DonorBug FinderEarly adopter... addicted to alphas.Cool profile pic award.Internationalizationizer
Joined: 08/14/2007
Juice: 336
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,
Thomas Kulvik

Ny Media AS
www.nymedia.no
+47 4000 7955

venkat-rk@drupal.org's picture
Offline
Joined: 03/19/2008
Juice: 205
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.

yanku's picture
Offline
Joined: 08/25/2009
Juice: 55
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:
http://drupal.org/project/stringoverrides

But it does not work though.

selinav's picture
Offline
Joined: 08/17/2009
Juice: 148
Re: Hi! If you have some skills

Where I can find a correlation map of attributes to $node like $node->model ?

Thanks in advance